Python SDK
ML training loops, scripts, and Python agents.
PreviewSDKchirp login
Source implementation only. Registry, marketplace, hosted installer, and publisher provenance remain unverified until the release checklist records a clean-machine receipt. Use the reviewed source under `python-sdk/`.
Setup
- 1Review and pin
python-sdk/; do not assume its package-manager name is published. - 2Pair this interactive host with a verified
chirp loginbuild. Review the matching code, host, provider, capabilities, and expiry in the browser. - 3Use
~/.chirp/config.json(0700 directory, 0600 file).~/.chirprcis a user-level read-only fallback; repository-local credentials are ignored. - 4Verify provider acceptance and the phone's delivery acknowledgement separately. Never call an accepted event delivered.
train.py
from chirp import ChirpAgent
with ChirpAgent(name="training", status="starting") as agent:
agent.update("epoch 1/10")
train_one_epoch()
agent.done("complete")