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-0.1.0b8.tar.gz
(64.3 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.0b8.tar.gz.
File metadata
- Download URL: latitude_sdk-0.1.0b8.tar.gz
- Upload date:
- Size: 64.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2364f59349c0bcec388c9a78bae43b3a0e1947d0f7d3af4f84772132da4030b4
|
|
| MD5 |
35f931f1945b0d68015b3d69da414c6d
|
|
| BLAKE2b-256 |
89f316e524b979e2ee4ff83c09e0cd75d1287d69b9446b3daaa1e85b922808b7
|
File details
Details for the file latitude_sdk-0.1.0b8-py3-none-any.whl.
File metadata
- Download URL: latitude_sdk-0.1.0b8-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afe8a9d94c235fa4cd15feae68ae1c261431e0db5d0902b66d1a35175bc97677
|
|
| MD5 |
2d0e45e6ca2641c29ca59c6793219df3
|
|
| BLAKE2b-256 |
f0e58af30896d2549f22f7183dc82fd9f09cb38fe13692a2525e8ec3cd5b7ba1
|