Skip to main content

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.

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.0b4.tar.gz (37.2 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.0b4-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for latitude_sdk-0.1.0b4.tar.gz
Algorithm Hash digest
SHA256 d3b47fa76c4259ce20129922c80efe25b2266f29bbd55c7cdc4c02098b5ed998
MD5 3e8832870fca59ff3b473048d1871313
BLAKE2b-256 c70db11eb2ae215b8e4c4f2f2fcd9cd1acb879bb8c8586ffc6e5bb563e30e858

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for latitude_sdk-0.1.0b4-py3-none-any.whl
Algorithm Hash digest
SHA256 c0ae56183d5cf86d00e6fc313c3562fcc6bd5fc6ac0cfa2f886722e9b6596ac9
MD5 db37a2eff9c42611f9f694219eeb1ec1
BLAKE2b-256 97005d538f759a1bc289970ede482fde87a7b46b6aad47a965fa7671fe5ee91d

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