Data API
2 min
cellario_cloud_data — the core Cellario OS data service client.
Covers users, workflows, work orders, labware, protocols, lab locations, plates, calendars, and more (~50 endpoint groups).
Client
from cellario_cloud_data import AuthenticatedClient, DataAPI
client = AuthenticatedClient(base_url="https://your-instance", token="TOKEN")
api = DataAPI(client)The DataAPI wrapper handles retries (3 attempts, exponential backoff) and raises typed exceptions:
- ServerError — 5xx after all retries
- RateLimitError — 429 after all retries
- ClientError — 4xx (excluding 429)
For direct endpoint access, use the api/ submodules. Each endpoint module exposes four variants:
Function | Description |
|---|---|
sync(...) | Synchronous, returns parsed response body |
sync_detailed(...) | Synchronous, returns full Response with headers and status |
asyncio(...) | Async, returns parsed response body |
asyncio_detailed(...) | Async, returns full Response |