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.13.4.tar.gz (240.7 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.13.4-py3-none-any.whl (185.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: claritty_sdk-2.13.4.tar.gz
  • Upload date:
  • Size: 240.7 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.13.4.tar.gz
Algorithm Hash digest
SHA256 48fb9d2e02b5f2d4088a7c6777ca91cb3910d15678c2eaef6d9f6830ccc71656
MD5 0012213a862bc0dc1674a9a4d74d6b52
BLAKE2b-256 c365c54b44da44db4bae29c997c448d934cb079403db5a2e7172c6137a14da8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: claritty_sdk-2.13.4-py3-none-any.whl
  • Upload date:
  • Size: 185.0 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.13.4-py3-none-any.whl
Algorithm Hash digest
SHA256 24f19c55ce2f129d80a94cbd5f3a00a8a743d4639091ceb6c0dc35ffcba97c20
MD5 3d262d9cdce00f380b7cb3a82cb9d679
BLAKE2b-256 307b0b2c56e154415a8578a039db86dfb3f8f0b61c4015b424552c473b9de51c

See more details on using hashes here.

Release history Release notifications | RSS feed

2.20.0

2 files

2.13.5

2 files

This release

2.13.4 This release

2 files

2.13.2

2 files

2.13.1

2 files

2.13.0

2 files

2.12.1

2 files

2.12.0

2 files

2.11.2

2 files

2.11.1

2 files

2.11.0

2 files

2.10.1

2 files

2.10.0

2 files

2.9.8

2 files

2.9.7

2 files

2.9.6

2 files

2.9.5

2 files

2.9.4

2 files

2.9.3

2 files

2.9.2

2 files

2.9.1

2 files

2.9.0

2 files

2.8.9

2 files

2.8.8

2 files

2.8.7

2 files

2.8.6

2 files

2.8.5

2 files

2.8.4

2 files

2.8.3

2 files

2.8.1

2 files

2.7.0

2 files

2.5.0

2 files

2.4.0

2 files

2.2.0

2 files

2.1.0

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.2.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page