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.5.tar.gz (147.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.5-py3-none-any.whl (145.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claritty_sdk-2.9.5.tar.gz
  • Upload date:
  • Size: 147.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.5.tar.gz
Algorithm Hash digest
SHA256 05a1784e3595272e133daceb353637446a713036cc1efa1155cf565559a09a67
MD5 55100642b1f49250bbeeb9b7d6729260
BLAKE2b-256 8bb1fa0e40d2ba59ce7dd4f4e62a2be71412644969962a6c61a74fd011a396a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: claritty_sdk-2.9.5-py3-none-any.whl
  • Upload date:
  • Size: 145.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.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 baec4dbae640593e1c002e1d5275259aa748e9f40583b06ef64904c5bc2747c1
MD5 595447e0f32bbd1e54300f420ec62aa0
BLAKE2b-256 f8ea25ecd53ff5f944549971562816b967a4a92903289295efe29d13d4073cee

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