Mailinator Python SDK
The official Mailinator Python SDK. This REST API client is implemented as a thin wrapper around the Mailinator API. The OpenAPI specification is the source of truth.
API Reference
See Mailinator's API Reference for all of the currently available API endpoints.
Documentation
- OpenAPI spec: https://github.com/manybrain/mailinatordocs/blob/main/openapi/mailinator-api.yaml
- SDK examples:
EXAMPLE.md - SDK architecture and OpenAPI alignment workflow:
OPENAPI_ALIGNMENT.md - Current modernization and alignment work:
ROADMAP.md
Installation
pip install mailinator-python-client-2
Quick Start
from mailinator import Mailinator
client = Mailinator("YOUR_API_TOKEN")
For request examples (inbox, messages, domains, rules, webhooks, and stats), see EXAMPLE.md.
Tests
Run the mocked tests with:
python -m pytest tests/test_mailinator_mocked.py
These tests do not make network requests and do not require Mailinator credentials.
Run the integration tests with:
python -m pytest tests/test_mailinator.py -s
Integration tests require valid environment values and will skip when required settings are missing.
Use either:
.env(recommended): copy.env.exampleto.envand fill in values.tests/localsettings.py: copytests/localsettings.py.templatetotests/localsettings.py(it also loads.envif present).
Run the full suite with:
python -m pytest
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mailinator_python_client_2-1.0.9.tar.gz.
File metadata
- Download URL: mailinator_python_client_2-1.0.9.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0c6a38857f929272088695fcc9ff9308ed668bd602f5b5c2108149e8349b053
|
|
| MD5 |
3da6f2aa5c3f2f1ef05b67b9697303cf
|
|
| BLAKE2b-256 |
27358292c86d608847a5b5772f69fe6a88a67b2ca6edbbb0729438e2151c1229
|
File details
Details for the file mailinator_python_client_2-1.0.9-py3-none-any.whl.
File metadata
- Download URL: mailinator_python_client_2-1.0.9-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0798a85d118d24c30ff767382e18d2897db41be45ce83cdf12f5d078e4a7de2b
|
|
| MD5 |
9fbb3c724b636ea9d3532f477c02a96d
|
|
| BLAKE2b-256 |
4774b24f6cb3156a54a182f1ac55e27611076aca6efc031e40f6d14469c7fac2
|