Skip to main content

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 (only supported for 1secmail)

Installation

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

Usage

  1. Import the MinutesMail class:
from minutes_mail import MinutesMail
  1. Create an instance of the MinutesMail class, specifying the email_type, rapid_api_key, and proxy_url as 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 (1SecMail)
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 OnesecMail based on the provided email_type and whether a rapid_api_key is supplied.

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

# Get available domains
domains = mail.get_domains()

# Read emails and extract activation code
code = mail.get_activation_code(max_wait_minutes=3)

# Delete the email (only supported for 1SecMail)
mail.delete_email(email=email)

Code Structure

  • base_class.py: Contains the BaseClass, defining common interfaces and properties for email services.
  • inboxes_mail.py: Implements the OnesecMail class to interact with the 1secmail.com API.
  • rapid_mail.py: Implements the RapidMail class to interact with the privatix-temp-mail-v1.p.rapidapi.com API.
  • mail.py: Provides the factory method create_instance to create an instance of RapidMail or OnesecMail.

Dependencies

  • loguru: For logging.
  • httpx: For making HTTP requests.

Contributing

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

Release files for minutes-mail 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for minutes-mail 1.0.3
File Size Uploaded
minutes_mail-1.0.3.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for minutes-mail 1.0.3
File Interpreter ABI Platform
minutes_mail-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 kB

Release files / minutes_mail-1.0.3.tar.gz

Download URL minutes_mail-1.0.3.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
671219cd2b56017afab77a010aff36a96f15ca6deb949a4395964520d2275c9d
BLAKE2b-256 checksum
How to use checksums
5d38a9f919960f4e28f9cdea295937f21223931917845fb30c3d0fe1458159fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / minutes_mail-1.0.3-py3-none-any.whl

Download URL minutes_mail-1.0.3-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3cc1a09d20395b570fd9bca9249765c0e228affbc124cb8090e6bd4c6764d00
BLAKE2b-256 checksum
How to use checksums
439c6a90b9403394ec9fa5eccbe79b83aa7d2eed75ff8eb8cfee73b1cf2b6907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page