Skip to main content

Get temp mails and verification codes.

Project description

Minutes Mail - Temporary Email Manager

This is a Python library that provides a convenient way to create and manage temporary email addresses using two different services: 1secmail.com and rapidapi.com.

Features

  • Create temporary email addresses
  • Retrieve a list of available domains for email creation
  • Read emails received in the temporary inbox and extract activation codes
  • Delete temporary email addresses

Installation

  1. Clone the repository or download the source code.
  2. Install the required dependencies:
pip install minutes-mail

Usage

  1. Import the Mail class :
from minutes_mail import MinutesMail
  1. Create an instance of the Mail class, specifying the rapid_api_key and proxy_url if needed:
# With rapid_api_key
mail = MinutesMail.create_instance(email_type='rapid_api',rapid_api_key="your_rapid_api_key", proxy_url="http://your_proxy_url")

# Without rapid_api_key
mail = MinutesMail.create_instance(email_type='1secmail',proxy_url="http://your_proxy_url")

The create_instance method will automatically create an instance of either RapidMail or InboxesMail based on whether a rapid_api_key is provided or not.

  1. Use the available methods to manage the temporary email:
# Create a new email
email = MinutesMail.create_mail()

# Get available domains
domains = MinutesMail.get_domains()

# Read emails and get activation code
code = MinutesMail.get_activation_code(max_wait_minutes=3)

# Delete the email ONLY IN INBOXES CURRENT!
MinutesMail.delete_email(email=email)

Code Structure

  • base_class.py: Contains the base class BaseClass that defines the common interface and properties for the two email services.
  • inboxes_mail.py: Implements the InboxesMail class that interacts with the inboxes.com API.
  • rapid_mail.py: Implements the RapidMail class that interacts with the privatix-temp-mail-v1.p.rapidapi.com API.
  • mail.py: Provides a factory method create_instance to create an instance of either RapidMail or InboxesMail based on the provided rapid_api_key.

Dependencies

  • loguru: For logging purposes.
  • httpx: For making HTTP requests.
  • bs4 (BeautifulSoup): For parsing HTML content (used by InboxesMail).

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have any improvements or bug fixes.

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

minutes_mail-1.0.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

minutes_mail-1.0.2-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file minutes_mail-1.0.2.tar.gz.

File metadata

  • Download URL: minutes_mail-1.0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for minutes_mail-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8cf001102c2345e8feca112e22c1988a0812ad366ea343902e511954da09fee9
MD5 aaed61948507a4ca849ef7f53f476d84
BLAKE2b-256 c3d50a53aeca8c92bc1a8eabc5c5d2837e69276bc76281b2628ed39318faadcb

See more details on using hashes here.

File details

Details for the file minutes_mail-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: minutes_mail-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for minutes_mail-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e90c20fbbc848e4a1d5838b461f5fe419f5f465e7dfecca2e60bc1cc830b4bf
MD5 4dd15db3c51934bbe3e7ce47d5ec710b
BLAKE2b-256 13174a0f6436b119143578e4a477ca4f03df6465789162e2cccdb3971ab8625c

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