A Python SDK for interacting with the TempMail.so temporary email service API.
- 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
pip install temp-mail-sofrom 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")Initialize the TempMail client with your API credentials.
Get a list of available email domains.
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.
Get a list of all inboxes associated with the account.
Delete a specific inbox.
Get all emails in a specific inbox.
Get details of a specific email.
Delete a specific email.
- Python 3.6+
requestslibrary
This project is licensed under the MIT License - see the LICENSE file for details.
TempMail.so
1.0.0
Last updated: 2025-01-01