cairn-client
The typed Python client for the cairn control-plane API (#1194, ADR-0085 D7).
Every method maps 1:1 onto a route in the committed contract
(console/openapi.json) — a test fails if the client and the spec drift.
It imports nothing from cairn.core (CI-enforced): this package is the
boundary that lets the CLI's user commands (#1195) and the ask agent (#1196)
work against a cairn deployment without engine internals.
from cairn_client import CairnClient
c = CairnClient("http://localhost:8000")
c.login("dev", "dev") # cairn dev's seeded login
c.healthz()
c.launch_pipeline("training/e2e-finetune", {"dataset": "…"})
c.advance_step(pid, "promote-model", approver="me")
Auth: pass token= directly, call login(), or neither (an auth-disabled
dev engine accepts bare requests). The generic request() door covers any
route a typed method doesn't wrap yet.
Metadata
Release files for cairn-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cairn_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / cairn_client-0.1.0-py3-none-any.whl
| Download URL | cairn_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7e47489a8ee32bd648719b0beb22c952a8f1f50e431a8d2dbee46dc7cb87889
|
|
BLAKE2b-256 checksum How to use checksums |
e6224ea3b74ff7eece7f37089fdeed99bdce26959f587962e309e2ff3e5a460f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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}
|