Deutero is synchronous and AsyncDeutero is its asyncio counterpart. They expose the same resources, and every method takes the same arguments; on AsyncDeutero each method is a coroutine.
Constructor
Your Deutero API key. Falls back to the
DEUTERO_API_KEY environment variable. Raises ValueError if neither is set.A preconfigured client.
AsyncDeutero takes an httpx.AsyncClient. The SDK adds the API key header and, if the client has no base_url, its own.Resources
Methods
health()
GET /health). Doesn’t require a valid API key. Returns the raw JSON body.
close()
AsyncDeutero, await client.close(). A client you passed as http_client is left open.
Context manager
Conventions
- IDs accept
stroruuid.UUID. - Keyword arguments left as
Nonearen’t sent, so the server default applies, and on updates the field is unchanged. - Enum arguments accept the enum member or its string value.
- Responses are Pydantic models. Errors raise exceptions.
.png?fit=max&auto=format&n=G_hwo_L4hZsQ93vT&q=85&s=c00b6042d4688a9b776bae65a530206a)