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.3.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.3.0
File Size Uploaded Provenance Actions
mailtruss-0.3.0.tar.gz 9.3 kB Without provenance Details for mailtruss-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 16.4 kB

Release files / mailtruss-0.3.0.tar.gz

Download URL mailtruss-0.3.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e0befb499da570af7a112b664243e9777ed61caaa0830e1e973aa00cc7d5c339
BLAKE2b-256 checksum
How to use checksums
4dc81156508acc2125de0081fa28decc24797b280e25796be4f33e2b4e6e8e6a
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.3.0-py3-none-any.whl

Download URL mailtruss-0.3.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42193defe7a0a520dde4bede02a6f4ede703c67ad97182d308746bab739a3683
BLAKE2b-256 checksum
How to use checksums
3008d5b2c7aa5a31f58e8521f2d23e432377b9c91d18d2b81144106c86ca83d3
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.3.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