Titlani
Misfin(C) mail protocol client and server library for Python.
Titlani is a complete implementation of the Misfin(C) mail transport protocol -- a lightweight, privacy-focused mail protocol influenced by Gemini that uses mandatory TLS with self-signed identity certificates and Trust-On-First-Use (TOFU) validation.
Features
- Full Misfin(C) protocol -- Wire format parsing, status codes, gemmail message format
- Async client and server -- Built on
asyncio.Protocolwith TLS, TOFU, redirect handling, and middleware - Identity certificates -- Generate and manage Misfin identity certs with custom layout (USER_ID, CN, SAN DNS)
- At-rest encryption -- Per-mailbox X25519 ECDH + AES-256-GCM encryption for stored messages
- Sender verification -- Probe-based and SPKI-based verification with SQLite caching
- GMAP -- Gemini Mailbox Access Protocol for remote mailbox access with tag management
- Mailing lists -- Server-side mailing list support with subscriber management and message forwarding
- Rate limiting and access control -- Token bucket rate limiting and IP allow/deny lists via tlacacoca
- Contact blocking -- Per-mailbox sender block lists
- Auto-reply -- Server-side out-of-office automatic replies with loop prevention
- CLI tool -- Full-featured
titlanicommand for sending, serving, reading mail, and administration
Installation
With uv (preferred):
uv tool install titlani
Or with pip:
pip install titlani
Requires Python 3.13+.
Quick Start
Generate an identity, send a message, and start a server:
# Generate an identity certificate
titlani identity generate alice example.com --blurb "Alice Smith"
# Send a message
titlani send bob@remote.host "Hello from Misfin!" \
--cert alice.pem --key alice.key --subject "Greetings"
# Generate server and client config interactively
titlani init
# Start a server (auto-discovers config from ~/.config/titlani/)
titlani serve
# List and read your mail
titlani mail list
titlani mail read 1
Or use the Python API:
import asyncio
from titlani import MisfinClient
async def main():
async with MisfinClient(
client_cert="alice.pem",
client_key="alice.key",
) as client:
response = await client.send(
to="bob@remote.host",
body="Hello from Misfin!",
subject="Greetings",
)
print(f"{response.status} {response.meta}")
asyncio.run(main())
Documentation
Full documentation is available at titlani.readthedocs.io:
- Quick Start -- Core workflow in 6 steps
- Tutorials -- Step-by-step guides for sending messages, running servers, and building clients
- How-To Guides -- Recipes for encryption, verification, GMAP, mailing lists, and more
- CLI Reference -- All
titlanicommands and options - Configuration Reference -- Server and client TOML config
- API Reference -- Python API documentation
License
See LICENSE for details.
Metadata
Release files for titlani 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| titlani-0.4.1.tar.gz | 64.0 kB | With provenance | Details for titlani-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| titlani-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for titlani-0.4.1-py3-none-any.whl |
Total release size: 146.9 kB
Release files / titlani-0.4.1.tar.gz
| Download URL | titlani-0.4.1.tar.gz |
|---|---|
| Size | 64.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18a1be2442b600f348e346a48fd969e93a7302fe32f1a930530f990eafa634d8
|
|
BLAKE2b-256 checksum How to use checksums |
79fd09e850ac2797589c82991aa7d541ab080445564cea3302e43182b2c5901e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 25, 2026.
Transparency logRelease files / titlani-0.4.1-py3-none-any.whl
| Download URL | titlani-0.4.1-py3-none-any.whl |
|---|---|
| Size | 83.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d36eed20c8037c476a1e052452401eb6a568d9530b533ab9b1465343521beea
|
|
BLAKE2b-256 checksum How to use checksums |
e605aea2ea8885772b3f575e6b26165d8015ae7595286cc641e50f8f8d3eeca8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 25, 2026.
Transparency logSecurity for titlani 0.4.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for titlani-0.4.1.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 Oct 25, 2026.
Transparency logA 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.