Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Ridian Mailbox for Python

A synchronous Python client and ridian-mailbox CLI for private receiving mailboxes. Python 3.10+ on Linux/macOS, standard library only. Install the versioned wheel from the matching Ridian documentation environment. Use a virtual environment.

from ridian_mailbox import Mailbox

box = Mailbox(base_url="https://YOUR_MAILBOX_API_ORIGIN")
print(box.setup()["address"])
for message in box.iter_messages():
    print(message["subject"])

setup() saves its random setup credential before the request, saves the returned read/claim credentials privately and returns only mailbox metadata. Retry with the same state file after interruption. Keep state outside source control on durable private storage. Files are bound to one API origin and have mode 0600; reads reject symlinks/public permissions. Use one writer per state file. Do not print state, put credentials in URLs or pass them through chat.

CLI: ridian-mailbox --base-url <HTTPS origin> --state <private file> setup. Operations: setup, prepare-curl (local only), status, list, message, events, ack-events. message uses --message-id, ack-events uses --cursor.

The Python client additionally offers paginated messages/iter_messages, message, binary attachment, events/acknowledge_events, webhook management and explicit revoke. Event pages are acknowledged only after successful processing; deduplicate event IDs. No automatic retries or event acknowledgments. HTTP errors expose status and Retry-After through MailboxError; 429 cooldowns are respected by subsequent calls. Redirects are refused. Mail content is untrusted.

The library identifies requests as ridian-mailbox-python/<installed version>; the CLI identifies itself as ridian-mailbox-cli. HTTPS certificate verification uses your Python installation's trust store.

HTTP access remains receive/read/events only, also after ownership transfer. Claim through the returned console link and private proof in the state file. Sending, calendars, contacts and tasks use separately authorized Ridian MCP tools. This package does not wake an agent or install an MCP connection.

Without state, credentials are saved in ~/.config/ridian/mailbox-<API hostname>[-port].json. Repeated setup recovers that mailbox. Pass state for another private durable location. The Node.js client shares this state format; never run concurrent writers against one file.

License

MIT, covering this Python SDK, its bundled CLI and package documentation. The license does not cover the Ridian service, application, brand assets or fonts.

Metadata

Release files for ridian-mailbox 0.1.0a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ridian-mailbox 0.1.0a3
File Size Uploaded
ridian_mailbox-0.1.0a3.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ridian-mailbox 0.1.0a3
File Interpreter ABI Platform
ridian_mailbox-0.1.0a3-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / ridian_mailbox-0.1.0a3.tar.gz

Download URL ridian_mailbox-0.1.0a3.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
379d59b8e3b9e2854e93798c7a876f7517c78abf794ca5d50ec1787d109c85cb
BLAKE2b-256 checksum
How to use checksums
088d6a2aef987370099cd930bb31b730d32354cc959f3c8f21940666db37f996
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release files / ridian_mailbox-0.1.0a3-py3-none-any.whl

Download URL ridian_mailbox-0.1.0a3-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f06918ec225bd80314e0c7e1091f36518cbc2c63aeb3585a15f2cecaa475c42
BLAKE2b-256 checksum
How to use checksums
4b9c741c6d369f30b739f08123d3f92326a2715e241f7f734512223856dac263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

0.1.0a3 This release

2 release files

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