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
MPL-2.0
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.3.tar.gz
(23.4 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.3.tar.gz.
File metadata
- Download URL: to11ai_sdk-0.0.3.tar.gz
- Upload date:
- Size: 23.4 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 |
9ee5643efd7db201bbb8748073da4974caaad279986f070a9927823962f27d4b
|
|
| MD5 |
359206ad518b45cccac037a2b02f4274
|
|
| BLAKE2b-256 |
862a88ac56df79d7954d7be6ee0e6102e40f6ea4ddb9a52fcc090cd541ec1163
|
File details
Details for the file to11ai_sdk-0.0.3-py3-none-any.whl.
File metadata
- Download URL: to11ai_sdk-0.0.3-py3-none-any.whl
- Upload date:
- Size: 14.4 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 |
afa86c0e81fc24c8b0baa3d9161be17e13afc973f6953ad24e7a62cded7ab36d
|
|
| MD5 |
294f04b2a5413fdc20e3d5167f36b915
|
|
| BLAKE2b-256 |
28ddb91b8a7bdfd5162d56b5d85909f24c489c59467e914d85ed0bfee9d5e06a
|