Skip to main content

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


⚙️ 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

  1. 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
  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=5,                # Optional
    delay_between_retries=1.5       # Optional
)
  1. 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
)
  1. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cybertemp-0.0.4.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cybertemp-0.0.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file cybertemp-0.0.4.tar.gz.

File metadata

  • Download URL: cybertemp-0.0.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for cybertemp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6ad54c52998cbb678654f006537efe3c1d1f64976f7c8f92d83d5917c4b4b828
MD5 d494252870a38e6fa671d527a6b62e8e
BLAKE2b-256 000622af78eec79136b686b6d9f70de5dcafb5bcd731f41f817af314adb19fec

See more details on using hashes here.

File details

Details for the file cybertemp-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cybertemp-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for cybertemp-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 554abb199a85e497039cd074d3d2c92d2d77c472a6b172b1af653f73ebfa5d49
MD5 c7fe86ea8e2d995d69e6778b7e456e3d
BLAKE2b-256 94d399b296deb8cdcaa35f23d288d67497a4a25aeba26bc14910fb1838bbdce1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page