Skip to main content

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)

Source distribution for mailflow 0.1.0
File Size Uploaded Provenance Actions
mailflow-0.1.0.tar.gz 6.6 kB Without provenance Details for mailflow-0.1.0.tar.gz

Built distribution (wheel)

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

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}

Security for mailflow 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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