Skip to main content

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)

Source distribution for quantiles 0.1.0
File Size Uploaded
quantiles-0.1.0.tar.gz 16.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quantiles 0.1.0
File Interpreter ABI Platform
quantiles-0.1.0-py3-none-any.whl Python 3 none any Details

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}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page