🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cybertemp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cybertemp

A Python wrapper for the CyberTemp temporary email service API

0.0.4
Source
PyPI
Maintainers
1

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, optional debug mode)
client = CyberTemp(debug=True)

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

# Get available domains
domains = client.get_domains()

# Check mailbox with retry settings (optional parameters: max_retries, delay_between_retries)
emails = client.get_email_content("test@cybertemp.xyz", max_retries=3, delay_between_retries=2.0)

You can purchase an API key here: CyberTemp Pricing

📚 API Reference

Initialization

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

Available Methods

  • Get Email Content
emails = client.get_email_content("test@cybertemp.xyz", max_retries=3, delay_between_retries=2.0)  # Optional: max_retries, delay_between_retries
  • Get Email by ID
email = client.get_email_content_by_id("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,                # 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 (Premium, requires API key)
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.1 ⋮ 2025-03-05
+ Added configurable retry and delay options for email checking functions
+ Indicated optional parameters in documentation

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

Keywords

email

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts