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-0.1.0b9.tar.gz (66.8 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-0.1.0b9-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file latitude_sdk-0.1.0b9.tar.gz.

File metadata

  • Download URL: latitude_sdk-0.1.0b9.tar.gz
  • Upload date:
  • Size: 66.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.21

File hashes

Hashes for latitude_sdk-0.1.0b9.tar.gz
Algorithm Hash digest
SHA256 5beba3c9c21a0f7c294988f99d4b0731f9d8620957679e01dc585286a796c94a
MD5 52c0da0a5ae68f0093be70dc8baca137
BLAKE2b-256 bd9931d757412690e8d28f13b88109516846715a850156e91f7f6691a1b5fe5a

See more details on using hashes here.

File details

Details for the file latitude_sdk-0.1.0b9-py3-none-any.whl.

File metadata

File hashes

Hashes for latitude_sdk-0.1.0b9-py3-none-any.whl
Algorithm Hash digest
SHA256 d6aa47b921d17cbe376816ecbf1e32a562ea637807ae21befc85f548f4421e36
MD5 9164ad86f17fca44fc8e5447991d5d16
BLAKE2b-256 e2d699619239a2e34e7f447a82f31b1b07c11c02e81d31a521655dee89a4c53c

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