Skip to main content

mailtruss (Python)

Python client for the Mailtruss email API. pip install mailtruss.

No dependencies. Python 3.9+.

from mailtruss import Mailtruss
m = Mailtruss(api_key="ms_live_…")          # or set MAILTRUSS_API_KEY
m.emails.send(from_="Ada <ada@yourdomain.com>", to="you@example.com", subject="Hi", html="<p>Hello</p>", idempotency_key="order-42")
m.contacts.create(email="ann@example.com", first_name="Ann", tags=["beta"])
m.broadcasts.create(name="News", from_="news@yourdomain.com", subject="Hello", html="<p>…</p>")

Every resource of the HTTP API is covered (see /api/v1/openapi.json). from_ is sent as from. A send is retried only when you pass an idempotency_key; reads and deletes retry on 429 and 5xx.

Run the tests: python3 -m unittest discover -s tests from this folder.

Metadata

Release files for mailtruss 0.2.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 mailtruss 0.2.0
File Size Uploaded Provenance Actions
mailtruss-0.2.0.tar.gz 7.5 kB Without provenance Details for mailtruss-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mailtruss 0.2.0
File Interpreter ABI Platform Actions
mailtruss-0.2.0-py3-none-any.whl Python 3 none any Details for mailtruss-0.2.0-py3-none-any.whl

Total release size: 13.6 kB

Release files / mailtruss-0.2.0.tar.gz

Download URL mailtruss-0.2.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2aad61121cf7d0b311d17c7bbaf2c24ea9a1e0ebc3ed06cd9e4b5041858e7fff
BLAKE2b-256 checksum
How to use checksums
c99c15f826b9b6ca4fadb26cb0664ee1f986dda5ffcc5409440fd40b2727014b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / mailtruss-0.2.0-py3-none-any.whl

Download URL mailtruss-0.2.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0377579f92ad123f6b8fc246db79647a055628df2927bd7168df8822391f1b67
BLAKE2b-256 checksum
How to use checksums
8c494bfec768115cb528d5ac73f28dfd850494e71de843ad22225027f37a1059
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Security for mailtruss 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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