Python SDK
Installation
Usage
Simply import MultiOn and start making calls to our API.
Async Client
The SDK also exports an async client so that you can make non-blocking calls to our API.
Exception Handling
All errors thrown by the SDK will be subclasses of ApiError
.
Advanced
Retries
The MultiOn SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long as the request is deemed retriable and the number of retry attempts has not grown larger than the configured retry limit.
A request is deemed retriable when any of the following HTTP status codes is returned:
Use the max_retries
request option to configure this behavior.
Timeouts
By default, requests time out after 60 seconds. You can configure this with a timeout option at the client or request level.
Custom HTTP client
You can override the httpx client to customize it for your use-case. Some common use-cases include support for proxies and transports.