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.12.0.tar.gz (195.9 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.12.0-py3-none-any.whl (167.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claritty_sdk-2.12.0.tar.gz
  • Upload date:
  • Size: 195.9 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.12.0.tar.gz
Algorithm Hash digest
SHA256 296e3c4f5c7006ac053c5e9ef24c1e329bca21c272b4a3fdfacec976b2bee86c
MD5 af98e076a38956856f325ae41a89cee8
BLAKE2b-256 ef7a05d48fc5f0bb7cef3da8e6dde00cc1a86bfcff20b5bf009e883f3e2ca2e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: claritty_sdk-2.12.0-py3-none-any.whl
  • Upload date:
  • Size: 167.8 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.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c33847779b302406c09ae37d68071d96810dae1b72f103d5594df1866df76ae0
MD5 0f3b0c28b93969781f770a20394f865f
BLAKE2b-256 6d39c3611f5dd54bd01fa63c6800e04f756916a00eeb4e267c1864f2b0d31406

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