Skip to main content

claritty-sdk

Official Python SDK for building apps on the Claritty Platform.

Generated apps deployed on Claritty automatically get a CLARITTY_PLATFORM_URL and CLARITTY_AUTH_TOKEN injected at runtime. The SDK reads those env vars and routes all LLM calls through the platform proxy — metering them against the app owner's plan, supporting BYOK (bring-your-own-key) when configured.

Installation

pip install claritty-sdk

Quick start

from claritty_sdk.llm import get_llm_client

client = get_llm_client("claude-sonnet-4-6")
result = client.chat([{"role": "user", "content": "Explain quantum computing"}])
print(result.content)

Streaming:

for delta in client.chat_stream(messages=[
    {"role": "user", "content": "Write me a haiku about kubernetes"}
]):
    print(delta, end="", flush=True)

Wire format

The proxy speaks OpenAI Chat Completions, so you can also point the official openai Python package at ${CLARITTY_PLATFORM_URL}/api/v1 if you want a drop-in replacement. The surface here just gives you sensible Python defaults (env-var auto-config, dict messages, generator-based streaming).

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claritty_sdk-2.9.0.tar.gz (132.2 kB view details)

Uploaded Source

Built Distribution

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

claritty_sdk-2.9.0-py3-none-any.whl (138.2 kB view details)

Uploaded Python 3

File details

Details for the file claritty_sdk-2.9.0.tar.gz.

File metadata

  • Download URL: claritty_sdk-2.9.0.tar.gz
  • Upload date:
  • Size: 132.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for claritty_sdk-2.9.0.tar.gz
Algorithm Hash digest
SHA256 70ddd632d499a8cc66ffe5e6b0614f59f68b0d030db2aee3b0bc51ce10a7116a
MD5 ff19db31a754811bb8077d91b193dbec
BLAKE2b-256 498df2b0e0544893784c5b668a5a4a7233d74b584a97ed4559d9f9ee7ca59d88

See more details on using hashes here.

File details

Details for the file claritty_sdk-2.9.0-py3-none-any.whl.

File metadata

  • Download URL: claritty_sdk-2.9.0-py3-none-any.whl
  • Upload date:
  • Size: 138.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for claritty_sdk-2.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c75c1c41597d46d490556ab96996dfea1178514c5a0670f1d993c598b4ae4d7c
MD5 f3de1c00379f6c305b33de28d478e97b
BLAKE2b-256 57089bcec58e50b40780871fd95a7e11620741e8bfcc0a61aae5d4dbaec59a4b

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 Sentry Error logging StatusPage Status page