Skip to main content

Python SDK

Cohort support is available in colabhive 0.7.0 as an additive, opt-in API.

Install the immutable production wheel:

python -m pip install \
https://colabhive.com/artifacts/cohort-latent-fabric/c6da894b473c/colabhive-0.7.0-py3-none-any.whl

SHA-256: 7dd0f1ea5dc03a8976ea9234df4ca09f2b7b3823d54b2e5e129bbbc704bbef54.

The additive namespace is client.cohorts. Existing calls without execution retain their exact Classic request body.

  • capabilities(endpoint_id=None); endpoint-scoped preflight is recommended.
  • plan(...), run(...), get(task_id).
  • events(task_id, cursor=None, limit=100) and finite iter_events(...).
  • iter_events(..., follow=True, timeout=..., cancel_event=...) resumes from the last event ID, deduplicates overlap and retries transient 429/5xx responses.
  • explanation(task_id), cancel(task_id), and bounded/cancellable wait(task_id, timeout=..., cancel_event=...).
  • client.endpoints.infer(..., execution={...}) performs endpoint-scoped capability preflight so an old/off server cannot silently run Classic.

Classic inference remains the default when execution is omitted.