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
Metadata
Release files for claritty-sdk 2.20.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| claritty_sdk-2.20.0.tar.gz | 269.0 kB | Without provenance | Details for claritty_sdk-2.20.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| claritty_sdk-2.20.0-py3-none-any.whl | Python 3 | none | any | Details for claritty_sdk-2.20.0-py3-none-any.whl |
Total release size: 464.0 kB
Release files / claritty_sdk-2.20.0.tar.gz
| Download URL | claritty_sdk-2.20.0.tar.gz |
|---|---|
| Size | 269.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58bfb735c2dee9441c11d622bd5b52bdde73208996a4d8d9fa42ca9d10f4094a
|
|
BLAKE2b-256 checksum How to use checksums |
7d03ee90d2f98a1f08b6840470b21ee351ad4ff562e08c95ff3aecc0ba8a2b65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / claritty_sdk-2.20.0-py3-none-any.whl
| Download URL | claritty_sdk-2.20.0-py3-none-any.whl |
|---|---|
| Size | 195.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
769f895a818c66181b5fd70bf91ef8a70904b0f53be5af9bb4ba2b8bf8206a77
|
|
BLAKE2b-256 checksum How to use checksums |
90a53077437595590dc532debfe74aa7465702e2003b11726c446fd96c8c1189
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for claritty-sdk 2.20.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.