Skip to content

A Python client for interacting with the CyberTemp temporary email service API.

License

Notifications You must be signed in to change notification settings

sexfrance/Cybertemp-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CyberTemp API Client

A Python client for interacting with the CyberTemp temporary email service API.

🌐 Website · 📜 ChangeLog · ⚠️ Report Bug


⚙️ Installation

pip install cybertemp

🚀 Quick Start

from cybertemp import CyberTemp

# Initialize (free tier)
client = CyberTemp()

# Or with API key (premium)
client = CyberTemp(api_key="your_api_key_here")

# Get available domains
domains = client.get_domains()

# Check mailbox
emails = client.get_email_content("test@cybertemp.xyz")

You can purchase an api key here: https://cybertemp.xyz/pricing

📚 API Reference

Initialization

client = CyberTemp(
    debug=True,           # Enable debug logging
    api_key=None,         # Optional API key for premium features
)

Available Methods

  1. Get Email Content
emails = client.get_email_content("test@cybertemp.xyz")
  1. Get Email by ID
email = client.get_email_content_by_id("email_id_here")
  1. Get Available Domains
domains = client.get_domains()
  1. Search Email by Subject
mail_id = client.get_mail_by_subject(
    email="test@cybertemp.xyz",
    subject_contains="Verification",
    max_attempts=10
)
  1. Extract URL from Email
url = client.extract_url_from_message(
    email="test@cybertemp.xyz",
    subject_contains="Verification",
    url_pattern=r'https://[^\s<>"]+'
)
  1. Check API Balance (Premium)
balance = client.get_balance()

💳 Premium Features

  • No rate limiting
  • API key support
  • Credit system
  • Priority support

⚠️ Rate Limits

  • Free tier: 1-second delay between requests
  • Premium tier: No delays, pay-per-use

📜 ChangeLog

v1.0.0 ⋮ 202-02-14
! Initial release

PyPI - Downloads