A Python SDK for TempMail.so temporary email service
Project description
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+
requests
library
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file temp-mail-so-1.0.2.tar.gz
.
File metadata
- Download URL: temp-mail-so-1.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
104d44d6280f8559f4d611814d96491ff7c0cac569d0090ebff1610afdc8f93c
|
|
MD5 |
3980fb38e67001331f5ee5925487c15d
|
|
BLAKE2b-256 |
8d588410e783e86d4033b31e5f2a878ff952c042033a9cc598443452afad78e9
|
File details
Details for the file temp_mail_so-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: temp_mail_so-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ced586f6536422fb4027f6459e79d583812443a1c8b7523dd1db91c5e3dafbd1
|
|
MD5 |
61e44a766f220d5085e999e75d4806ba
|
|
BLAKE2b-256 |
17cc570a014c02d3d3a8941fc300e15448853d35152dca7e8a28105d813a13e9
|