Skip to main content

Mailbox Common

CI Coverage License Python

PyPI benethos-mailbox-service Container benethos-mailbox-service

PyPI benethos-mailbox-agents Container benethos-mailbox-agents

PyPI benethos-mailbox-mcp Container benethos-mailbox-mcp

PyPI benethos-mailbox-client

PyPI benethos-mailbox-common

Sponsor PayPal

benethos-mailbox-mcp on Glama

Beta, version 0.13.0. Usable with real accounts. A breaking change of the API or the configuration is announced in the changelog. Stored data is carried forward by migrations.

What mailbox-service, mailbox-mcp and mailbox-agents of Mailbox need alike, held once, on PyPI as benethos-mailbox-common. The MCP server and the agents cannot see the service, so what they all use lives here.

Mailbox is self-hosted and has five packages. This one is installed with the service, the MCP server and the agents and is not meant to be used on its own. To use Mailbox, start with the service: Install.

Package Its part How you get it
mailbox-service It holds the connections to your mail accounts and their credentials, encrypted. It offers one REST API for every provider and decides what a token may do. Getting started
mailbox-client The Python client of the REST API. It does not use this package. from PyPI: Install
mailbox-mcp The MCP server. It turns the REST API into tools for an AI assistant, on top of the client. after the service: Getting started
mailbox-common This package. What the service, the MCP server and the agents share. installed with each of them
mailbox-agents Small AI agents that sort and mark mail, on top of the client. installs this package

What the project is for: the repository's README.

Contents

What it holds

Six groups, one per concern. A group stands alone: a module imports only inside its group.

Group What it holds Needs
mail Mail itself, nothing of Mailbox. The visible text of an HTML body, as the mail page of the service shows it and the model of the MCP server reads it. Addresses in a readable form. The marks a person sees on a message, and their words. the standard library
log The line of a log: its format, its levels and its time, plain, in colour on a terminal or as JSON. Secrets are noted once and masked in every text. the standard library
paths Where a program keeps its files: the folders of the operating system for settings and data, and a settings file named on purpose. the extra paths, which brings platformdirs
settings A program's settings, from the command line, the environment, a settings file and the defaults. the extra settings, which brings pydantic-settings
storage The storage of a program: a file of SQLite or a schema on PostgreSQL, the steps of its schema, export and import, the move between the two, and an exclusive lock on a file. the extra storage, which brings SQLAlchemy and Alembic, and postgres for the driver of PostgreSQL
values Values written one way: JSON compact to send and canonical to hash, sizes, a pause that doubles up to a ceiling, ids, tokens and digests, and text on one line. the standard library

So the service, the MCP server and the agents turn an HTML mail into the same text, write the same log line and mask the same secrets.

It sees neither the service, nor the MCP server, nor the client, nor the agents.

Install

There is nothing to install. The service, the MCP server and the agents bring it, with the extras they need.

On its own it needs the standard library alone. An extra is named after its group, postgres brings the driver of PostgreSQL for the group storage, and all brings every extra:

uv add "benethos-mailbox-common[all]"      # or: pip install "benethos-mailbox-common[all]"

A module of a group that misses its extra says which one.

Versions

It is built for the packages of this repository. Its modules, groups and extras may change between versions without notice. It carries the version of the other packages, and the service, the MCP server and the agents pin it to their own. Its public interface is recorded in docs/mailbox-common/common-interface.json, which a test holds to the code.

Licence

MIT, see LICENSE.

Metadata

Release files for benethos-mailbox-common 0.13.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 benethos-mailbox-common 0.13.0
File Size Uploaded Provenance Actions
benethos_mailbox_common-0.13.0.tar.gz 79.8 kB Without provenance Details for benethos_mailbox_common-0.13.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for benethos-mailbox-common 0.13.0
File Interpreter ABI Platform Actions
benethos_mailbox_common-0.13.0-py3-none-any.whl Python 3 none any Details for benethos_mailbox_common-0.13.0-py3-none-any.whl

Total release size: 161.8 kB

Release files / benethos_mailbox_common-0.13.0.tar.gz

Download URL benethos_mailbox_common-0.13.0.tar.gz
Size 79.8 kB
Tags Source
SHA-256 checksum
How to use checksums
493d6a05f2027df394fc271444b99960afded56a2652f1402a99864e1935d4d5
BLAKE2b-256 checksum
How to use checksums
4b905d0b10db35b5606287e589c59b1f138504ed2213f3a56a3e58654e8b9dc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / benethos_mailbox_common-0.13.0-py3-none-any.whl

Download URL benethos_mailbox_common-0.13.0-py3-none-any.whl
Size 82.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee567805686fd42fdc51ba530a2bd087f3fb590b5d7bd0719e087a8452c0c0e1
BLAKE2b-256 checksum
How to use checksums
13698809c19e5013dd59995b567dcd6266eaa44a65ad7c09f7d812d5af5072b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for benethos-mailbox-common 0.13.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