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: inboxes.com and privatix-temp-mail-v1.p.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.1.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.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: minutes_mail-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6f4f4367e2e20ff2900a786e4ee18fb7df15a48082bd9aa2bf18003a3ab4d0c8
MD5 2c42b1c3c488934aaaacd2f2c815b15b
BLAKE2b-256 4a17d7f992285baa1b088f7ffe371fc91677feb5a5b46b960408e16ffd47eaad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: minutes_mail-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a7b77443208f6d6d19b26e0b1a104ce50d01d64cfd3a4389ab769ec44f6d0a6
MD5 a739e7bdb268cb61c0bfa8860e54abd4
BLAKE2b-256 d0299a19187ffb1f14587bfab59d15e362b969005906c2e733e5ea7989b16f3a

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