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.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 mailtruss 0.1.0
File Size Uploaded Provenance Actions
mailtruss-0.1.0.tar.gz 7.3 kB Without provenance Details for mailtruss-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 13.3 kB

Release files / mailtruss-0.1.0.tar.gz

Download URL mailtruss-0.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
247121acb3db2d6a5c163225fc2fb356a29534239976de70cd30ff6705ccc710
BLAKE2b-256 checksum
How to use checksums
2cdb891bd5fea94932cad2cd7e6d8291cfd0db41a0e62c2c002e97b6a38bfb58
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.1.0-py3-none-any.whl

Download URL mailtruss-0.1.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4fc20ea2690c305103efaa6a5c83ee43d30a24c90cb651d6b87b05b64288219
BLAKE2b-256 checksum
How to use checksums
5637b7a98d4d2651a29d0553cc40d2a2fca7e73211b7272d219cd482c733a5c7
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.1.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