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.0.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.0.0
File Size Uploaded Provenance Actions
mailrith_sdk-2.0.0.tar.gz 28.7 kB With provenance Details for mailrith_sdk-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 55.4 kB

Release files / mailrith_sdk-2.0.0.tar.gz

Download URL mailrith_sdk-2.0.0.tar.gz
Size 28.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fa241307824aa0f489d7c122075803bb943f26d065834193605edc06a6cdfdf8
BLAKE2b-256 checksum
How to use checksums
fa2341bf29879de47d00d58846e5b0a54338d57e429baae1708630c8f1b22612
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 4, 2026.

Transparency log

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

Download URL mailrith_sdk-2.0.0-py3-none-any.whl
Size 26.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a696b41b1f6f6143625b79e674c391a8f3819668893e2986161924f4c799e96f
BLAKE2b-256 checksum
How to use checksums
79ae6e454de37dfff5a1b748673b731a8bf777d56d339ca5987c7f0583afe78d
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 4, 2026.

Transparency log

Security for mailrith-sdk 2.0.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.0.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 4, 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