Skip to main content

Installation

Requires Python 3.10+. Dependencies: httpx (HTTP client) and pydantic (type validation).

Initialize

The async client is recommended for production. The sync client wraps the async client for scripts, notebooks, and frameworks without native async support.

Configuration

RetryConfig

Override retry behavior:

Resources

Idempotency Keys

Keys starting with match- are reserved for keys KeyStone derives and are refused with 422. The default generator produces ks-{uuid4}, which is outside that prefix. A prefix you pass becomes the start of the key ({prefix}-{uuid4}), and any key starting with match- is refused: a prefix of match yields match-{uuid4} and is refused, while matcher yields matcher-{uuid4} and is not.

Pagination

All list methods return PaginatedResponse[T] with convenience properties: