Skip to main content

mailx-sdk

Official Python client for the MailX API. Targets the OpenAPI spec as of internal/api/openapi.go at repo commit c05c751 (v0.43).

from mailx_sdk import MailXClient

client = MailXClient(api_key="mx_...", base_url="https://your-mailx-host/v1")

email = client.send_email(
    "you@yourdomain.com",
    ["someone@example.com"],
    subject="Hello",
    text="Hi there",
)

Retries automatically on 429/5xx (honoring Retry-After), up to max_retries (default 3). Errors raise MailXError with .status, .type, .code, .request_id.

Covers every resource in the OpenAPI spec (emails, domains, DKIM/SPF/ DMARC/BIMI, webhooks, templates, contacts, audiences, broadcasts, analytics, suppressions, events) — see mailx_sdk/client.py.

Test

pip install -e .
python3 tests/test_client.py

tests/test_contract.py runs against a real MailX server when MAILX_SDK_TEST_BASE_URL/MAILX_SDK_TEST_API_KEY are set; otherwise it skips.

Release files for mailx-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mailx-sdk 0.1.0
File Size Uploaded
mailx_sdk-0.1.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mailx-sdk 0.1.0
File Interpreter ABI Platform
mailx_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / mailx_sdk-0.1.0.tar.gz

Download URL mailx_sdk-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dae5d2ec00f1490860cc03b280bdb95e06dacc79784c1b04b7545b1327df5800
BLAKE2b-256 checksum
How to use checksums
4d21a883c71c471883879cbb0a9fbfea38ae75b088549a35c6631e0b33f8095d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / mailx_sdk-0.1.0-py3-none-any.whl

Download URL mailx_sdk-0.1.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aaf7f4811348306d47c9755728c33985dd94516101faf82b55a8c2549d92218f
BLAKE2b-256 checksum
How to use checksums
d1f0eef396453a98fa0b4b45e43fb31c31acadda2aea001ed5a40fe17229a4b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page