Skip to main content

Async email sending, receiving, and parsing for Python applications.

Project description

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"],
            )
        )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mailflow-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mailflow-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file mailflow-0.1.0.tar.gz.

File metadata

  • Download URL: mailflow-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for mailflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 39f4a00de16423a53d19077083d440c42a1c624200af9914c0509a90f7235f38
MD5 023db26827615c3db40d1e0f2271318c
BLAKE2b-256 20a756d1671a8bf9efda3dc7df3adba6b88e6c88d25aea1e63c729fd07c11ca2

See more details on using hashes here.

File details

Details for the file mailflow-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mailflow-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for mailflow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38230e22a7a6cfc1889a8ca7332ba36a7ce8127f07b5a01078987a2be58f204f
MD5 0393e22420de0863dffea94bcc5ceeb6
BLAKE2b-256 d33b005284ed34109c538d23650fa57aa3fecc1c20cbca762b526db8d758f54e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page