FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

manybrain/mailinator-python-client: Python SDK for the Mailinator REST API · GitHub

Repository files navigation

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

About

Python SDK for the Mailinator REST API

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL