Epistole
Epistole takes a message you have already composed as HTML and sends it through whichever backend you have configured. The interface is the same each time. Supported backends are SMTP, Microsoft Graph, and Google. The design allows more. Switching providers means changing configuration, not rewriting your code.
This is an early project and the API is not yet stable.
Epistole (ἐπιστολή, epistolē) is the Greek word for a letter or written message sent from one person to another.
Install
uv add epistole
Example
from pathlib import Path
from epistole import Message, SMTPBackend, smtp
backend = SMTPBackend(
host="mail.corp.example",
port=587,
from_address="reports@corp.example",
credential=smtp.Password(username="reports", password=...),
)
backend.send(
Message(html=Path("kpis.html").read_text(encoding="utf-8"))
.subject("Daily KPIs")
.to("boss@corp.example")
)
The backend opens a connection, authenticates, submits, and closes, all inside that one call.
With a wrong password, that line raises AuthenticationError.
The user guide walks through sending, writing HTML for email, choosing a backend and the tested mail services. The API reference lists every public name.
Credit
Epistole is inspired by blastula, an R package for composing and sending email. It is not a port. Its API does not copy blastula's.
Metadata
Release files for epistole 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| epistole-0.0.6.tar.gz | 39.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| epistole-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 89.9 kB
Release files / epistole-0.0.6.tar.gz
| Download URL | epistole-0.0.6.tar.gz |
|---|---|
| Size | 39.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a69facc4e8ab798cfa2bcd6c1ba3a329b319c8998b6e15ef7755603410d2e7e4
|
|
BLAKE2b-256 checksum How to use checksums |
2753aad8ce97640c73c3a1976756ac53a341a839d8ab1fe6e7f42001d0a034dc
|
| 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 Sep 30, 2026.
Transparency logRelease files / epistole-0.0.6-py3-none-any.whl
| Download URL | epistole-0.0.6-py3-none-any.whl |
|---|---|
| Size | 50.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0386e6dcef96fd68a2a44d4d0511992e9595035f61a256648b2b4e00bfda6280
|
|
BLAKE2b-256 checksum How to use checksums |
2faa65fbfaeafce2ee43e93729fbf49865349438431181e1cfe1a299ee07ec5f
|
| 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 Sep 30, 2026.
Transparency log