temp-mails
A basic wrapper around various temp mail sites, aiming to provide an almost identical api for every site. The main purpose of this is to provide an easy way to quickly register an account on various sites and then discard the email.
What it is and what it does
temp-mails is a wrapper library that unifies access to temporary email services across multiple providers. Instead of learning separate APIs for each disposable email site, you instantiate a provider class (e.g., Tenminemail_com, Byom_de) and call consistent methods like get_inbox(), wait_for_new_email(), and get_mail_content() to manage temporary inboxes.
The library supports around 76 different temp mail sites. It handles HTTP requests, HTML parsing, and WebSocket communication needed to interact with each provider's backend. Error handling is minimal by design—the library assumes that if something breaks, it's due to a third-party site change and cannot be recovered automatically. This makes it suitable for scripted account registration and email verification workflows where you control the flow and can retry or switch providers if needed.
Use it for:
- Automated account registration and email verification testing where you need a fresh inbox for each test run
- Bulk user signup testing across multiple services to verify email confirmation workflows
- Temporary email collection for services requiring email verification without exposing a permanent address
- Integration testing of email-dependent features in CI/CD pipelines using disposable addresses
- Switching between multiple temp mail providers in a single script if one provider becomes unavailable
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a unified Python API to generate temporary email addresses and retrieve messages from multiple disposable email services, abstracting away the differences between individual provider implementations.
Yes, if you need to automate temporary email workflows and can tolerate maintenance risk. The library is permissively licensed, has no external dependencies, and covers a broad range of providers. However, it depends entirely on third-party sites remaining accessible and unchanged. The aging maintenance status and minimal error handling mean you should expect to debug provider-specific failures yourself.
Install
temp-mails on PyPI
pip
pip install temp-mailsuv
uv add temp-mailspoetry
poetry add temp-mailsInstalling temp-mails
Before you install
Low install friction with no runtime dependencies. Maintenance is aging—last commit was 2025-05-19 with 51 stars, suggesting modest adoption and limited active development.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions.
Quickstart
pip install temp-mails
from temp_mails import Tenminemail_com
mail = Tenminemail_com()
print(mail.email)
print(mail.get_inbox())
data = mail.wait_for_new_email(timeout=120)
if data:
print(mail.get_mail_content(message_id=data["id"]))
Requires Python >=3.8; websocket-client==1.7.0 may conflict with other websocket packages—you may need to uninstall conflicting versions first.
Verify before relying
- Whether all supported providers remain functional given dependence on third-party sites that may change or block access
- Performance and reliability when handling high-volume email polling across different providers
- Whether websocket-client==1.7.0 remains compatible with current Python versions and other installed packages
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 452 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 95,918/month — #13,244 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: temp_mails-2.2.0-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
mailslurp-clientMailSlurp provides a Python client for an email…
unclear · top 15,000 on PyPI
django-templated-mailSends Django emails using template files…
permissive · top 15,000 on PyPI
redmailRedmail simplifies sending emails with Python…
permissive · top 15,000 on PyPI
django-post_officeDjango Post Office queues and sends emails…
permissive · top 15,000 on PyPI
mailtrapOfficial Python client for Mailtrap's email…
permissive · top 15,000 on PyPI
email-validatorValidates email address syntax and optionally…
permissive · top 1,000 on PyPI
shortzyShortzy wraps the Adlinkfly API and alternative…
permissive · top 15,000 on PyPI
disposable-email-domainsProvides a Python set of known disposable email…
permissive · top 5,000 on PyPI
Flask-MailFlask-Mail adds email-sending functionality to…
permissive · top 5,000 on PyPI
django-sesA Django email backend that routes outgoing…
permissive · top 5,000 on PyPI