Skip to main content

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)

Source distribution for epistole 0.0.6
File Size Uploaded
epistole-0.0.6.tar.gz 39.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for epistole 0.0.6
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

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