Latitude SDK for Python
Project description
Latitude SDK for Python
pip install latitude-sdk
Requires Python 3.9 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.
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-1.0.0.tar.gz
(69.7 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-1.0.0.tar.gz.
File metadata
- Download URL: latitude_sdk-1.0.0.tar.gz
- Upload date:
- Size: 69.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cffa0c619d50628dc78f699011672cb11754eb595d940a3d5e7c2024564783a
|
|
| MD5 |
348f4a1dee3324bd1e465bac8901a8e9
|
|
| BLAKE2b-256 |
bff993a526c0c8b93eb95794299e27f0073bd378c98df3e286db100dd2b30541
|
File details
Details for the file latitude_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: latitude_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2cb04c481017129ac40972846843f389b3024eb9aa71e412c9de2ac07255a42
|
|
| MD5 |
e8db27913548fb6a0d454eb50fdae4a6
|
|
| BLAKE2b-256 |
628023fad7737dbd6b80414a36f9364949b8f7b2d0108007077be9397a2cadb3
|