Official SDK for building apps on the Claritty Platform
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claritty_sdk-2.0.0.tar.gz.
File metadata
- Download URL: claritty_sdk-2.0.0.tar.gz
- Upload date:
- Size: 71.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12342cfb07fbf209667e738f83d7f0cbef89deeaaa5a2512c0c790a4aa977d2d
|
|
| MD5 |
97f833647c4735a7ebbc94129d691135
|
|
| BLAKE2b-256 |
e239d89bb8f72b1dad32f4cc521a9376cb4b60ab6e9e8b62f12ad606940f8f88
|
File details
Details for the file claritty_sdk-2.0.0-py3-none-any.whl.
File metadata
- Download URL: claritty_sdk-2.0.0-py3-none-any.whl
- Upload date:
- Size: 97.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff3acd941ba9582ad05f963c82ab486f409926dd7e7ac3953150912c90c935a2
|
|
| MD5 |
0daae0e207b8d80587a93d3df06b8eb0
|
|
| BLAKE2b-256 |
b208b78487880aeb67adfcfd2e47bac7945c062effe06d2bf2d8197f801cfb6c
|