Python SDK
The SimJuno Python SDK provides typed synchronous and asynchronous access to the reseller and eSIM APIs. It includes authentication, retries, timeouts, API errors, and Pydantic request and response models.
The package is configured for publication as simjuno on PyPI, and its source repository is available on GitHub.
Install
The SDK requires Python 3.10 or later.
Create a client
Create an API key, store it in SIMJUNO_API_KEY, and initialize the client. Keep the key in server-side code; do not expose it in a browser or mobile application.
The SDK uses https://api.simjuno.com/v1 by default and sends the API key in the x-api-key header.
Work with eSIMs
The SDK follows the standard SimJuno integration flow. This example finds a plan, confirms its current details, and places an order:
Ordering eSIMs debits your reseller balance. If you retry the same order, reuse both its transaction_id and order_list.
After receiving the ORDER_STATUS webhook, retrieve the provisioning details for each returned eSIM ID:
Available methods
Handle errors
Non-success responses throw ApiError:
Configure retries and timeouts
Requests time out after 60 seconds and retry up to two times by default for 408, 409, 429, and 5xx responses. Retries count toward your rate limit.
Set defaults when creating the client:
Override them for one request with request_options:
Use the async client
AsyncSimjunoApi provides the same methods for asynchronous applications:
Access the raw response
Use with_raw_response when you need response headers or status metadata: