Skip to main content

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


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.2.tar.gz (69.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

latitude_sdk-1.0.2-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file latitude_sdk-1.0.2.tar.gz.

File metadata

  • Download URL: latitude_sdk-1.0.2.tar.gz
  • Upload date:
  • Size: 69.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for latitude_sdk-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c272275b99b3319ac818856405d940690bc6e38c7bc486faec7e0843663acf27
MD5 3f9beef46412f281b29dc9eb8a693583
BLAKE2b-256 32cb6210f4daa1b90f4d51a31a24dc3f5fdf8a19e3ba6f3d5fc4358f50703097

See more details on using hashes here.

File details

Details for the file latitude_sdk-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for latitude_sdk-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b9a96adc58ecf5f15d917c123363ac2707af166a349acb4f262d3231145d2488
MD5 5396393a7e0725c1e6c931d9c8f46dbd
BLAKE2b-256 acd172065754d27e629ab2bca6bacae4685179c4570389619f1efe6fea6335ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page