Python SDK for the to11.ai platform
Project description
to11ai-sdk
Python SDK for to11.ai — the AI engineering platform for prompt management, tracing, and evals.
Installation
pip install to11ai-sdk
# or with uv
uv add to11ai-sdk
Getting started
from to11ai_sdk import create_client
client = create_client(
base_url="https://api.to11.ai",
api_key="...",
)
result = client.prompts.resolve(
project_id="proj_abc123",
slug="chat-system-prompt",
labels=["production"],
variables={"user_name": "Alice"},
)
print(result.rendered.text) # "Hello, Alice!"
Features
- Prompt resolution with label-based version selection and Liquid template rendering
- Typed errors for auth, rate limiting, validation, and network failures
- Compatible with Python 3.10+
Documentation
Full API reference and guides: https://docs.to11.ai
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
to11ai_sdk-0.0.2.tar.gz
(17.9 kB
view details)
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 to11ai_sdk-0.0.2.tar.gz.
File metadata
- Download URL: to11ai_sdk-0.0.2.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b60555cf63e6802c2767b1e4a8ca603d7c5f7aebe92c2abca81aa4c6cf9c0f5
|
|
| MD5 |
cbf5f01865630c43a195c6cdee8c5b9f
|
|
| BLAKE2b-256 |
69a18542fc17d38fe97713291ccfa5c9195c4a2942a42d8a433cceeabca14920
|
File details
Details for the file to11ai_sdk-0.0.2-py3-none-any.whl.
File metadata
- Download URL: to11ai_sdk-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0703986c6cbc9ed2c5bb1b603cd4805d93301b0c6356cb9e100c8cd0dfcbdbf9
|
|
| MD5 |
5a46f22e9d0bcc9aa5b704d097fd718a
|
|
| BLAKE2b-256 |
241f3fcf8c8219df538316baa2d0349dceca81e68c48b143272b7e2ee26bbcdd
|