Skip to main content

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

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.example to .env and fill in values.
  • tests/localsettings.py: copy tests/localsettings.py.template to tests/localsettings.py (it also loads .env if 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

mailinator_python_client_2-1.0.9.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mailinator_python_client_2-1.0.9-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file mailinator_python_client_2-1.0.9.tar.gz.

File metadata

File hashes

Hashes for mailinator_python_client_2-1.0.9.tar.gz
Algorithm Hash digest
SHA256 d0c6a38857f929272088695fcc9ff9308ed668bd602f5b5c2108149e8349b053
MD5 3da6f2aa5c3f2f1ef05b67b9697303cf
BLAKE2b-256 27358292c86d608847a5b5772f69fe6a88a67b2ca6edbbb0729438e2151c1229

See more details on using hashes here.

File details

Details for the file mailinator_python_client_2-1.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for mailinator_python_client_2-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0798a85d118d24c30ff767382e18d2897db41be45ce83cdf12f5d078e4a7de2b
MD5 9fbb3c724b636ea9d3532f477c02a96d
BLAKE2b-256 4774b24f6cb3156a54a182f1ac55e27611076aca6efc031e40f6d14469c7fac2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page