Skip to main content

async-temp-email

PyPI version Python Version

Overview

async-temp-email is an asynchronous Python library for working with temporary email services. It allows you to easily generate disposable email addresses, fetch messages, and poll for incoming emails in real-time.

This library supports a modular design, enabling integration with multiple temporary email providers. Currently supported provider:

  • Emailnator

Features

  • Asynchronous API for generating temporary email addresses
  • Fetch messages for a given mailbox
  • Retrieve individual message content
  • Real-time polling of incoming emails
  • Easy integration with multiple providers via a registry-based client system

Installation

pip install async-temp-email

Usage

Create a client

from async_temp_email import TempEmailClient

# Initialize a provider client
client = TempEmailClient.create("emailnator", timeout=30, retries=3)

async with TempEmailClient.create("emailnator", timeout=30, retries=3) as client: # Recommended
    ...

Generate a temporary email

from pydantic import EmailStr

email: EmailStr = await client.service.get_email()
print(email)

Fetch messages

messages = await client.service.get_messages(email)
for msg in messages:
    print(msg.message_subject, msg.message_content)

Poll for new messages

async with client.polling(email=email, poll_interval=5, skip_existing=False) as poller:
    async for message in poller:
        print(message.message_subject, message.message_content)

License

Code and documentation copyright 2025-2026. Code released under the MIT License.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to fork the repository and submit a pull request.

Links

Metadata

Release files for async-temp-email 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 async-temp-email 0.1.0
File Size Uploaded Provenance
async_temp_email-0.1.0.tar.gz 10.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for async-temp-email 0.1.0
File Interpreter ABI Platform
async_temp_email-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.0 kB

Release files / async_temp_email-0.1.0.tar.gz

Download URL async_temp_email-0.1.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
72e0ef9ee325bc71c42ee470ed12b7793de7d14815d4cffe61e88f08b97f753f
BLAKE2b-256 checksum
How to use checksums
3e960b45d285e940b072d4ea7fdf86ca621023f3777437c40c9f05be9eeca226
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / async_temp_email-0.1.0-py3-none-any.whl

Download URL async_temp_email-0.1.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11a8643cc0678dcb31d66a6ee16f5d32e6985a19f3e9264f1a5e75c67f432a06
BLAKE2b-256 checksum
How to use checksums
7fbab62b0a205f64e8836ad3c70409c68c6f33d8cf5001df1cbf89bd5d92cac1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for async-temp-email 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.

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