Python SDK
The Partner API, events and webhooks for Python, synchronous and asyncio.
Requirements
Install
Coming at general availability. Until then, this page shows the requirements and how the SDK is used.
Configure
client.py
ClientSecretPost sends the secret in the form body instead; PrivateKeyJwt signs a fresh assertion for every token
request (RS256 or ES256), so no shared secret leaves your infrastructure:
private_key_jwt
AsyncEvvaPartnerClient is the asyncio twin. Both are context managers.
First calls
first_calls.py
client.<resource>.list(...) returns one page; .iter(...) walks every page. client.operations reaches every
operation of the API reference.
Receive events and reply
bot.py
The checkpoint is saved only after your handler returns, so a crash re-delivers rather than loses. Implement
CheckpointStore and DedupStore on your own database to share state across instances; SQLiteStore is durable on
one host, the in-memory stores are for tests.
Errors
Each API error has .status, .code, .message, .details and .request_id.
Webhooks
webhooks.py
Polling statuses that have no event
waiters.py
