Pure-Python SDK for the Chio trust and receipt-control plane
Project description
chio-sdk
Stable Python SDK for Chio hosted MCP sessions, receipt queries, and invariant verification.
Installation
pip install chio-sdk
The distribution name is chio-sdk. The import package is chio.
Quickstart
from chio import ChioClient, ReceiptQueryClient
client = ChioClient.with_static_bearer("http://127.0.0.1:8931", "demo-token")
session = client.initialize()
try:
tools = session.list_tools()
print(tools)
receipts = ReceiptQueryClient("http://127.0.0.1:8940", "demo-token").query(
{"toolServer": "wrapped-http-mock", "limit": 5}
)
print(receipts["totalCount"])
finally:
session.close()
API Reference
ChioClientinitializes authenticated Chio MCP HTTP sessions.ChioSessionexposes typed helpers for tools, resources, prompts, logging, tasks, and explicit JSON-RPC envelopes.ReceiptQueryClientwrapsGET /v1/receipts/querywith typed parameters and pagination helpers.chio.invariantsprovides canonical JSON, hashing, signing, capability, receipt, and manifest verification helpers.
The full public reference lives in docs/reference/SDK_PYTHON_REFERENCE.md.
Official Example
The package-local governed example expects a running Chio hosted edge and trust service:
CHIO_BASE_URL=http://127.0.0.1:8931 \
CHIO_CONTROL_URL=http://127.0.0.1:8940 \
CHIO_AUTH_TOKEN=demo-token \
python packages/sdk/chio-py/examples/governed_hello.py
For a repo-local end-to-end verification run that boots those services automatically, use:
./scripts/check-sdk-publication-examples.sh
Canonical Example Links
../../../docs/guides/WEB_BACKEND_QUICKSTART.md../../../examples/hello-openapi-sidecar/README.md../../../examples/hello-fastapi/README.md
Release Checks
./scripts/check-chio-py.sh
./scripts/check-chio-py-release.sh
Release process details live in RELEASING.md.
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 Distributions
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 chio_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: chio_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61bd6433156e71b06ce991264f7e33e52058cdae0426ac3764a58f73c869043c
|
|
| MD5 |
b1bcc0b73f4cc0f7e80052f810941460
|
|
| BLAKE2b-256 |
6c8e04359f94531ccc09aaf6566b1d205828137c8450703c812f5d27d8a0345e
|