A Python wrapper for the CyberTemp temporary email service API
Project description
CyberTemp API Client
A Python client for interacting with the CyberTemp temporary email service API.
🌐 Website
·
📜 ChangeLog
·
⚠️ Report Bug
Available Methods
- Get Email Content
emails = client.get_email_content("test@cybertemp.xyz", max_retries=3, delay_between_retries=2.0)
- Get Email by ID
email = client.get_email_content_by_id("test@cybertemp.xyz", "email_id_here")
- Get Available Domains
domains = client.get_domains()
- Search Email by Subject
mail_id = client.get_mail_by_subject(
email="test@cybertemp.xyz",
subject_contains="Verification",
max_attempts=5,
delay_between_retries=1.5
)
- Extract URL from Email
url = client.extract_url_from_message(
email="test@cybertemp.xyz",
subject_contains="Verification",
url_pattern=r'https://[^\s<>"']+',
max_attempts=5,
delay_between_retries=1.5
)
- Get Plan Info
plan = client.get_plan()
- Delete Email
success = client.delete_email("email_id_here")
- Delete Inbox (Deprecated - use
delete_user_inboxinstead)
# This method now calls delete_user_inbox internally
success = client.delete_inbox("test@cybertemp.xyz")
- List User Inboxes
inboxes = client.list_user_inboxes()
- Delete User Inbox
success = client.delete_user_inbox("test@cybertemp.xyz")
- Get Private Emails (Bearer Token)
private_emails = client.get_private_emails(bearer_token="your_bearer_token", email="test@cybertemp.xyz")
- Check API Health
health = client.get_health()
# Returns: {"status": "ok"} on success
# Returns: {"error": "API unavailable", "reason": "..."} on error
1. **Get Available Domains**
```py
domains = client.get_domains()
- Search Email by Subject
mail_id = client.get_mail_by_subject(
email="test@cybertemp.xyz",
subject_contains="Verification",
max_attempts=5, # Optional
delay_between_retries=1.5 # Optional
)
- Extract URL from Email
url = client.extract_url_from_message(
email="test@cybertemp.xyz",
subject_contains="Verification",
url_pattern=r"""https://[^\s<>"']+""",
max_attempts=5, # Optional
delay_between_retries=1.5 # Optional
)
- Check API Balance
balance = client.get_balance()
💳 Pricing & Plans
CyberTemp offers several subscription plans:
- Free Tier: No API key required, 2-second delay, 10 req/sec
- Eco Plan: €1.99/month, no delay, 20 req/sec
- Core Plan: €2.99/month, no delay, 50 req/sec
- Elite Plan: €4.99/month, no delay, unlimited requests
All paid plans require an API key. See CyberTemp Pricing for details and to purchase a key.
⚠️ Rate Limits
- All requests require an API key (except Free tier)
- Free tier: 2-second delay between requests, 10 req/sec
- Paid tiers: No delay, higher rate limits
📜 ChangeLog
v0.1.0 ⋮ 2025-12-10
+ Added get_health() method for API health checks
! Fixed delete_inbox() - now correctly uses /api/user/inboxes endpoint
! Updated all API endpoints to use consistent base URL (api.cybertemp.xyz)
! Deprecated delete_inbox() - now calls delete_user_inbox() internally
v0.0.9 ⋮ 2025-03-05
+ Added configurable retry and delay options for email checking functions
+ Indicated optional parameters in documentation
v0.0.1 ⋮ 2025-02-14
! Initial release
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cybertemp-0.1.2.tar.gz.
File metadata
- Download URL: cybertemp-0.1.2.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa844c670c01b2a3266170123d80c37fe8ec5012ecd2d9993553b070f265e0cb
|
|
| MD5 |
623b28b6ab2813758ee040310253e24d
|
|
| BLAKE2b-256 |
410ac3f0c979732eb9fb6b6482466a0530e6ff0ebead4615154283e7fe69a87b
|
File details
Details for the file cybertemp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cybertemp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cc7d4898bcf2ca61a628f01564f6152e4f9282d3561f06a653b5dccec0c7990
|
|
| MD5 |
be3daa56ceea3c99b4e0c6b61da3384c
|
|
| BLAKE2b-256 |
18534633a0b6627786867b25b5f202d30a4d7f98bd524f9084df44cdbae4a449
|