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.7

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.7
File Size Uploaded
epistole-0.0.7.tar.gz 43.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for epistole 0.0.7
File Interpreter ABI Platform
epistole-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 98.5 kB

Release files / epistole-0.0.7.tar.gz

Download URL epistole-0.0.7.tar.gz
Size 43.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3decb3ac0702df08ebffa404a24ee747df3981118c13ee96f4bd6fd2a58f494b
BLAKE2b-256 checksum
How to use checksums
430bd4a623d849bbfc2500332bd692785af53ce6713d67fc51ed15c2753f24ba
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 15, 2026.

Transparency log

Release files / epistole-0.0.7-py3-none-any.whl

Download URL epistole-0.0.7-py3-none-any.whl
Size 55.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e54d8afdced122ed69ea7f01e28a08732e4f7bcdb992fa57827fa14dbd5856ad
BLAKE2b-256 checksum
How to use checksums
e25df9ea5b7098bda22dfc5c430bac633d6cbfe3fab1a8f56bfefd746cbbb8cb
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 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

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