latitude-sdk 0.1.0b1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,63 @@
1
+ Metadata-Version: 2.4
2
+ Name: latitude-sdk
3
+ Version: 0.1.0b1
4
+ Summary: Latitude SDK for Python
5
+ Project-URL: repository, https://github.com/latitude-dev/latitude-llm/tree/main/packages/sdks/python
6
+ Project-URL: homepage, https://github.com/latitude-dev/latitude-llm/tree/main/packages/sdks/python#readme
7
+ Project-URL: documentation, https://github.com/latitude-dev/latitude-llm/tree/main/packages/sdks/python#readme
8
+ Author-email: Latitude Data SL <hello@latitude.so>
9
+ Maintainer-email: Latitude Data SL <hello@latitude.so>
10
+ License-Expression: LGPL-3.0
11
+ Requires-Python: >=3.8
12
+ Requires-Dist: httpx-sse>=0.4.0
13
+ Requires-Dist: httpx>=0.28.1
14
+ Requires-Dist: pydantic>=2.10.3
15
+ Requires-Dist: typing-extensions>=4.12.2
16
+ Description-Content-Type: text/markdown
17
+
18
+ # Latitude SDK for Python
19
+
20
+ ```sh
21
+ pip install latitude-sdk
22
+ ```
23
+
24
+ Requires Python `3.8` or higher.
25
+
26
+ Go to the [documentation](https://docs.latitude.so/guides/sdk/python) to learn more.
27
+
28
+ ## Usage
29
+
30
+ ```python
31
+ from latitude_sdk import Latitude, LatitudeOptions, RunPromptOptions
32
+
33
+ sdk = Latitude("my-api-key", LatitudeOptions(
34
+ project_id="my-project-id",
35
+ version_uuid="my-version-uuid",
36
+ ))
37
+
38
+ await sdk.prompts.run("joke-teller", RunPromptOptions(
39
+ parameters={"topic": "Python"},
40
+ on_event=lambda event: print(event),
41
+ on_finished=lambda event: print(event),
42
+ on_error=lambda error: print(error),
43
+ stream=True,
44
+ ))
45
+ ```
46
+
47
+ Find more examples [here](https://github.com/latitude-dev/latitude-llm/tree/main/examples/sdks/python).
48
+
49
+ ## Development
50
+
51
+ Requires uv `0.5.10` or higher.
52
+
53
+ - Install dependencies: `uv venv && uv sync --all-extras --all-groups`
54
+ - Add [dev] dependencies: `uv add [--dev] <package>`
55
+ - Run linter: `uv run scripts/lint.py`
56
+ - Run formatter: `uv run scripts/format.py`
57
+ - Run tests: `uv run scripts/test.py`
58
+ - Build package: `uv build`
59
+ - Publish package: `uv publish`
60
+
61
+ ## License
62
+
63
+ The SDK is licensed under the [LGPL-3.0 License](https://opensource.org/licenses/LGPL-3.0) - read the [LICENSE](/LICENSE) file for details.
@@ -0,0 +1,20 @@
1
+ latitude_sdk/__init__.py,sha256=-AbNXLmzDZeGbRdDIOpNjdCbacOvLBflSJwQtLlZfgk,19
2
+ latitude_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ latitude_sdk/client/__init__.py,sha256=d8CnNB8UoGwcftiIeeC0twdg01qNvfpj-v7O40I7IiE,68
4
+ latitude_sdk/client/client.py,sha256=ff49AlX6hxfoAwKA4_c5B6zXuZMQwV588_XaD6A7K4E,4379
5
+ latitude_sdk/client/payloads.py,sha256=CwE_qn9OlLXWFO-h6tPeYxFvz-D4xAbH1-rBWX1vOCg,2672
6
+ latitude_sdk/client/router.py,sha256=XYi24oUKL1wHDLvydpwLWCjy9tDGSVPN-zhetuvaj8I,4038
7
+ latitude_sdk/env/__init__.py,sha256=66of5veJ-u1aNI025L65Rrj321AjrYevMqomTMYIrPQ,19
8
+ latitude_sdk/env/env.py,sha256=OSBVGHXJr_48plkVagCANNy5n5F3tb48Dug_r7uo0m4,456
9
+ latitude_sdk/sdk/__init__.py,sha256=C9LlIjfnrS7KOK3-ruXKmbT77nSQMm23nZ6-t8sO8ME,137
10
+ latitude_sdk/sdk/errors.py,sha256=cq5swDrRFYAZWtohR1Fz9aq0D17eSb2JUTa-FeTNOC8,1412
11
+ latitude_sdk/sdk/evaluations.py,sha256=ASWfNfH124qeahzhAn-gb2Ep4QIew5uDveY5NbNsNfk,2086
12
+ latitude_sdk/sdk/latitude.py,sha256=jmsbsthhuYNVUf55UyNL8Q8uLemEdc_bysUmM9QPTPo,2498
13
+ latitude_sdk/sdk/logs.py,sha256=BXo-SN-CarRmR_HHk7biutqyegA01UkjkIKN0Huz4Zc,2042
14
+ latitude_sdk/sdk/prompts.py,sha256=HiFlOl56YOwR_Kq9ce6o4fNsoQwJucFYY9DrtUqCjMo,10144
15
+ latitude_sdk/sdk/types.py,sha256=dOwY8ND4vD-XfilKn7DDb_lt02LhZ8jrSjfbKH3X8yY,7467
16
+ latitude_sdk/util/__init__.py,sha256=alIDGBnxWH4JvP-UW-7N99seBBi0r1GV1h8f1ERFBec,21
17
+ latitude_sdk/util/utils.py,sha256=WKm20UsceP352psbP8bmlgZ_IPTPYKXUIrXcesG_c08,2710
18
+ latitude_sdk-0.1.0b1.dist-info/METADATA,sha256=AaBOJNdLNyjLxOZNTxYzbyx5Fs_0hHZqeZDa5Gn9DFE,1987
19
+ latitude_sdk-0.1.0b1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
+ latitude_sdk-0.1.0b1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any