Skip to main content

Mailrith Python SDK

Official Python SDK for Mailrith's public API.

This package is generated from Mailrith's versioned OpenAPI-derived SDK manifest and provides resource namespaces such as client.subscribers.list() and client.broadcasts.send().

from mailrith_sdk import MailrithClient

client = MailrithClient(api_key="mrk_example_secret_key")

capabilities = client.discovery.get_capabilities()
subscribers = client.subscribers.list(query={"limit": 25})

Agents can discover a bounded set of operations from ordinary task language, then load the exact generated descriptor before acting:

result = client.search_operations("add the VIP tag to this subscriber", limit=3)
operation_id = result["selection"]["recommended_operation_id"]
operation = client.get_operation(operation_id)

Search reads the packaged operation catalog in memory, returns at most 25 matches, and does not send or store the query.

Python uses the same generated resource aliases, action vocabulary, relationship intents, plural handling, ranking, and ambiguity rules as the TypeScript SDK, MCP server, and CLI. Narrow a search with resource or with category="read", "write", "delete", or "live".

Safe Retries

The SDK automatically gives idempotent write operations one key and retries short network interruptions or an interrupted successful response body with that same key. It does not retry a confirmed server failure. The defaults are three attempts with a 0.25 second base delay and can be changed with idempotent_retry_max_attempts and idempotent_retry_delay_seconds.

Operations marked as resource-state are not retried automatically. If their response is lost, read the affected resource first and retry only when its current state shows that the requested change did not happen.

If your process may restart before it receives a response, save your own key and pass it as idempotency_key when retrying the same request. Do not reuse that key with different request data.

Official Builds And Forks

Modified public versions must use distinct package and service names and clearly say that they are unofficial. See the Mailrith Trademark And Unofficial Fork Policy.

Metadata

Release files for mailrith-sdk 2.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 mailrith-sdk 2.1.0
File Size Uploaded Provenance Actions
mailrith_sdk-2.1.0.tar.gz 28.8 kB With provenance Details for mailrith_sdk-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mailrith-sdk 2.1.0
File Interpreter ABI Platform Actions
mailrith_sdk-2.1.0-py3-none-any.whl Python 3 none any Details for mailrith_sdk-2.1.0-py3-none-any.whl

Total release size: 55.6 kB

Release files / mailrith_sdk-2.1.0.tar.gz

Download URL mailrith_sdk-2.1.0.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
efef92e0ff4565073edf8cf833da60860dd085cbfb083ab5d10b045f4949dd73
BLAKE2b-256 checksum
How to use checksums
a6a94992e43b13d995a9979bc9d86a3bde23727b003e9abd35c8a0ed3e4b808f
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 Nov 16, 2026.

Transparency log

Release files / mailrith_sdk-2.1.0-py3-none-any.whl

Download URL mailrith_sdk-2.1.0-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aaabe1a1288d51ad95ac7810735cf6f62008568284c83cac090d326ddd98eb8e
BLAKE2b-256 checksum
How to use checksums
07659a8957721a09a37e8312454ea1053f22ca85cbd93d778b1c27300424220a
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 Nov 16, 2026.

Transparency log

Security for mailrith-sdk 2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mailrith_sdk-2.1.0.tar.gz

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 Nov 16, 2026.

Transparency log

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