Skip to main content

Mailbox Common

CI Coverage License Python

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

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.9.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 and mailbox-mcp of Mailbox both need, held once, on PyPI as benethos-mailbox-common. The MCP server cannot see the service, so what both use lives here.

Mailbox is self-hosted and has four packages. This one is installed with the service and with the MCP server 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 and the MCP server share. installed with both

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

Contents

What it holds

Five 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 or in colour on a terminal. 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. 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
values Values written one way: JSON compact to send and canonical to hash, sizes, ids, tokens and digests, and text on one line. the standard library

So the service and the MCP server 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.

Install

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

On its own it needs the standard library alone. An extra is named after its group, 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 and the MCP server pin it to their own. Its public interface is recorded in docs/common-interface.json, which a test holds to the code.

Licence

MIT, see LICENSE.

Metadata

Release files for benethos-mailbox-common 0.9.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.9.0
File Size Uploaded Provenance Actions
benethos_mailbox_common-0.9.0.tar.gz 22.3 kB Without provenance Details for benethos_mailbox_common-0.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 42.5 kB

Release files / benethos_mailbox_common-0.9.0.tar.gz

Download URL benethos_mailbox_common-0.9.0.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2d234f2bdfb0e349c85aa94c7c2d729a6ead447a23bf03c65b26276436e57766
BLAKE2b-256 checksum
How to use checksums
1bf1ff2ae6d5c18f854d578bcabc27c8ba0f00b35cfb2e5457331225fc405883
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.9.0-py3-none-any.whl

Download URL benethos_mailbox_common-0.9.0-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81c194d8670793d771e97ddd3e3ecd2e0aff749b5a7f6cd4777ac7c5ff69c169
BLAKE2b-256 checksum
How to use checksums
7e694c0b9466e8954935a0693a75e3163a0b48698359ec16baf74c7fbf637de1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.9.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