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.1

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

Built distribution (wheel)

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

Total release size: 13.5 kB

Release files / mailtruss-0.1.1.tar.gz

Download URL mailtruss-0.1.1.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
95a064d3549d07c42d7f67a5fff40874a1df78f18f61fcf454f57b4595786d62
BLAKE2b-256 checksum
How to use checksums
12d78bdbdfe643403ba00d4a480d6ea0b48cd67168170ececc91bc02ec79769b
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.1-py3-none-any.whl

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

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