TempMail.so Python SDK
A Python SDK for interacting with the TempMail.so temporary email service API.
Features
- Create and manage temporary email inboxes
- List available email domains
- Retrieve and manage emails
- Full API coverage with simple interface
- Type hints support
- MIT licensed
Installation
pip install temp-mail-so
Quick Start
from temp_mail_so import TempMailSo
# Initialize client
client = TempMailSo(
rapid_api_key="your_rapid_api_key_here",
auth_token="your_auth_token_here"
)
# Create a temporary inbox
inbox = client.create_inbox(
address="test123", # Email prefix
domain="mailnuo.com", # Domain
lifespan=300 # Inbox lifespan in seconds (0 for permanent)
)
# List all emails in an inbox
emails = client.list_emails(inbox_id="your_inbox_id")
API Reference
TempMailSo Class
__init__(rapid_api_key: str, auth_token: str)
Initialize the TempMail client with your API credentials.
list_domains() -> Dict
Get a list of available email domains.
create_inbox(address: str, domain: str, lifespan: int = 0) -> Dict
Create a new temporary email inbox.
address: Custom email prefixdomain: Email domainlifespan: Inbox lifespan in seconds (0, 300, 600, 900, 1200, 1800). 0 means permanent.
list_inboxes() -> Dict
Get a list of all inboxes associated with the account.
delete_inbox(inbox_id: str) -> Dict
Delete a specific inbox.
list_emails(inbox_id: str) -> Dict
Get all emails in a specific inbox.
get_email(inbox_id: str, email_id: str) -> Dict
Get details of a specific email.
delete_email(inbox_id: str, email_id: str) -> Dict
Delete a specific email.
Requirements
- Python 3.6+
requestslibrary
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
TempMail.so
Version
1.0.0
Last updated: 2025-01-01
Release files for temp-mail-so 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| temp-mail-so-1.0.2.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| temp_mail_so-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / temp-mail-so-1.0.2.tar.gz
| Download URL | temp-mail-so-1.0.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
104d44d6280f8559f4d611814d96491ff7c0cac569d0090ebff1610afdc8f93c
|
|
BLAKE2b-256 checksum How to use checksums |
8d588410e783e86d4033b31e5f2a878ff952c042033a9cc598443452afad78e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.6
|
Release files / temp_mail_so-1.0.2-py3-none-any.whl
| Download URL | temp_mail_so-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ced586f6536422fb4027f6459e79d583812443a1c8b7523dd1db91c5e3dafbd1
|
|
BLAKE2b-256 checksum How to use checksums |
17cc570a014c02d3d3a8941fc300e15448853d35152dca7e8a28105d813a13e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.6
|