Python SDK for the Quantiles local AI workload observability server
Project description
Quantiles Python SDK
Python SDK for the quantiles local AI workload observability server.
Installation
uv pip install quantiles
Usage
To build a custom eval with Python, use the below code. To ensure this eval is runnable with qt run, set up a quantiles.toml configuration file. See ../CONFIG.md for details.
import asyncio
from quantiles import workflow, step, emit, entrypoint
async def handler(input_value, ctx):
result = await ctx.step(
"fetch-data",
{"url": "https://example.com"},
lambda: {"status": 200}
)
await ctx.emit("latency_ms", 50, "ms")
return result
my_workflow = workflow("demo", handler)
if __name__ == "__main__":
entrypoint(my_workflow)
In local development, the SDK executes user code locally. The qt server deduplicates steps, triggers workflows, owns durable state, stored outputs, observability records, and metrics.
Development
Run tests:
mise run test
Run linter:
mise run lint
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 quantiles-0.1.0.tar.gz.
File metadata
- Download URL: quantiles-0.1.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8cd9ee9979fd569f924da9daaf007f7a1c69df9fb11a26229d48e27a02e909a
|
|
| MD5 |
4bac11b26e04dad68802fc7228b28628
|
|
| BLAKE2b-256 |
1ce1979839f47b6040c8a968b4bcc7e745e4cc1a09bb9458c29ac17a9767ccd3
|
File details
Details for the file quantiles-0.1.0-py3-none-any.whl.
File metadata
- Download URL: quantiles-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2035873257be0359f6b202f90d5ec4772af9172251010c8422c5a41e686d2c7
|
|
| MD5 |
28effe47275436cdc84a5231aa94a0a5
|
|
| BLAKE2b-256 |
c2e16b76f5afa7935e388c9da19112a49623e2bda8ae6c0d41f812c7e804f22e
|