Skip to main content

Requirements

Python 3.11 or newer. The SDK uses tomllib from the standard library.

Core install

The core install is minimal: no pandas, no polars, no ML framework dependency. It gives you the profiler, scope tree, marks, loop wrappers, flush thread + local spool, @ci.inference, ci.env, ci.secret, and the Cirron configuration class.

Extras

Framework hooks and data-loader backends are opt-in extras so you only pull what you use.
Install multiple extras at once by comma-separating them inside the brackets.

Authentication

Authentication is optional; the SDK runs standalone without it. To sync traces to the Cirron platform, set an API key:
Inside a Cirron pipeline or deployment, the CIRRON_RUN_ID / CIRRON_PIPELINE_ID / CIRRON_DEPLOYMENT_ID / CIRRON_WORKSPACE_ID context is injected by the runner. You do not set these yourself. See Configuration for the full resolution order (explicit args → env vars → ~/.cirron/config.toml → defaults) and self-hosted endpoints.

Verify

You should see a dict roughly like this (exact keys and values depend on what’s installed and whether you have a CIRRON_API_KEY set):
A file will also appear under ./.cirron/spool/ containing the cirron.session root span.

Check which extras are installed

ci.deps() reports which optional extras the current environment has. Call it with no arguments for a full report, or with required names to fail fast at script startup if any are missing:
See ci.deps for the full surface.

Next step

Quickstart

Three 5-minute paths: zero-touch training, custom PyTorch loop, and inference.