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.9
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 |
|---|---|---|---|---|
| epistole-0.0.9.tar.gz | 44.0 kB | With provenance | Details for epistole-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| epistole-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for epistole-0.0.9-py3-none-any.whl |
Total release size: 100.2 kB
Release files / epistole-0.0.9.tar.gz
| Download URL | epistole-0.0.9.tar.gz |
|---|---|
| Size | 44.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56d0ec9074b20b7c2daa95512cc73aee5fd11cba0a71e6a00f13140cbb94eaea
|
|
BLAKE2b-256 checksum How to use checksums |
a92d07079bf1cb6e245f5f6f9a4f8200e7352e70e39b97b7d01f70e9fe52e6cd
|
| 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 Oct 19, 2026.
Transparency logRelease files / epistole-0.0.9-py3-none-any.whl
| Download URL | epistole-0.0.9-py3-none-any.whl |
|---|---|
| Size | 56.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa2db237cd78cbb6ceaf5875e425d958b46c4ac6f84b335d086d9e0ef906f175
|
|
BLAKE2b-256 checksum How to use checksums |
c581df18aa546fa443a9a8a2b4e8c99a3766db7ccb4ad0098f4f86416de32d17
|
| 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 Oct 19, 2026.
Transparency logSecurity for epistole 0.0.9
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
Both files in this release have been uploaded with provenance metadata.
Attestation for epistole-0.0.9.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 19, 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.