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
Metadata
Release files for quantiles 0.1.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 |
|---|---|---|---|---|
| quantiles-0.1.0.tar.gz | 16.4 kB | Without provenance | Details for quantiles-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quantiles-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for quantiles-0.1.0-py3-none-any.whl |
Total release size: 36.4 kB
Release files / quantiles-0.1.0.tar.gz
| Download URL | quantiles-0.1.0.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8cd9ee9979fd569f924da9daaf007f7a1c69df9fb11a26229d48e27a02e909a
|
|
BLAKE2b-256 checksum How to use checksums |
1ce1979839f47b6040c8a968b4bcc7e745e4cc1a09bb9458c29ac17a9767ccd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / quantiles-0.1.0-py3-none-any.whl
| Download URL | quantiles-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2035873257be0359f6b202f90d5ec4772af9172251010c8422c5a41e686d2c7
|
|
BLAKE2b-256 checksum How to use checksums |
c2e16b76f5afa7935e388c9da19112a49623e2bda8ae6c0d41f812c7e804f22e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for quantiles 0.1.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.