mailflow
Async email for Python.
Send, receive, and parse email with one simple async interface.
Install
pip install mailflow
Requires Python 3.12+.
Why mailflow?
- Send and receive email with one async client
- Works with Gmail and standard SMTP/IMAP providers
- Parse MIME messages into easy-to-use objects
- Handle replies with built-in helpers
from mailflow import EmailAccount, MailClient, OutboundEmail, SearchCriteria
async def main() -> None:
account = EmailAccount.gmail("support@example.com", password="app-password")
async with MailClient(account) as client:
messages = await client.fetch(SearchCriteria(unseen=True, limit=10))
for message in messages:
await client.reply(message, "Thanks, we are looking into this.")
await client.send(
OutboundEmail(
subject="Welcome",
text="Thanks for contacting support.",
to=["customer@example.com"],
)
)
Metadata
Release files for mailflow 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mailflow-0.1.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mailflow-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / mailflow-0.1.0.tar.gz
| Download URL | mailflow-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39f4a00de16423a53d19077083d440c42a1c624200af9914c0509a90f7235f38
|
|
BLAKE2b-256 checksum How to use checksums |
20a756d1671a8bf9efda3dc7df3adba6b88e6c88d25aea1e63c729fd07c11ca2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / mailflow-0.1.0-py3-none-any.whl
| Download URL | mailflow-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38230e22a7a6cfc1889a8ca7332ba36a7ce8127f07b5a01078987a2be58f204f
|
|
BLAKE2b-256 checksum How to use checksums |
d33b005284ed34109c538d23650fa57aa3fecc1c20cbca762b526db8d758f54e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|