Latitude SDK for Python
Project description
Latitude SDK for Python
pip install latitude-sdk
Requires Python 3.8 or higher.
Go to the documentation to learn more.
Usage
from latitude_sdk import Latitude, LatitudeOptions, RunPromptOptions
sdk = Latitude("my-api-key", LatitudeOptions(
project_id="my-project-id",
version_uuid="my-version-uuid",
))
await sdk.prompts.run("joke-teller", RunPromptOptions(
parameters={"topic": "Python"},
on_event=lambda event: print(event),
on_finished=lambda event: print(event),
on_error=lambda error: print(error),
stream=True,
))
Find more examples here.
Development
Requires uv 0.5.10 or higher.
- Install dependencies:
uv venv && uv sync --all-extras --all-groups - Add [dev] dependencies:
uv add [--dev] <package> - Run linter:
uv run scripts/lint.py - Run formatter:
uv run scripts/format.py - Run tests:
uv run scripts/test.py - Build package:
uv build - Publish package:
uv publish
License
The SDK is licensed under the LGPL-3.0 License - read the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
latitude_sdk-0.1.0b1.tar.gz
(32.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file latitude_sdk-0.1.0b1.tar.gz.
File metadata
- Download URL: latitude_sdk-0.1.0b1.tar.gz
- Upload date:
- Size: 32.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
943d48c791e3c51e8409028b17e80926bdeff7d341900a2c0326a0c82f3b6edd
|
|
| MD5 |
8bb88cba5e1019f5bec35061515df62a
|
|
| BLAKE2b-256 |
1cf5f4f7270b2d4baa0f0f063ab28164111a5b8b8603f5c5739fb0fab0a2de32
|
File details
Details for the file latitude_sdk-0.1.0b1-py3-none-any.whl.
File metadata
- Download URL: latitude_sdk-0.1.0b1-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
008bfab4bb83d1e7dc196607f12a2d614c0a76bf5cb2245f12379611c3b94222
|
|
| MD5 |
6db7841ab0108398cbfa4201ac519529
|
|
| BLAKE2b-256 |
1f3f6dd1e982c5915e68d387782f2905cfe88225eb72777eb9030031b5a2bd1f
|