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
- Clone the repository or download the source code.
- Install the required dependencies:
pip install minutes-mail
Usage
- Import the
MinutesMailclass:
from minutes_mail import MinutesMail
- Create an instance of the
MinutesMailclass, specifying theemail_type,rapid_api_key, andproxy_urlas 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.
- 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 theBaseClass, defining common interfaces and properties for email services.inboxes_mail.py: Implements theOnesecMailclass to interact with the1secmail.comAPI.rapid_mail.py: Implements theRapidMailclass to interact with theprivatix-temp-mail-v1.p.rapidapi.comAPI.mail.py: Provides the factory methodcreate_instanceto create an instance ofRapidMailorOnesecMail.
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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| minutes_mail-1.0.3.tar.gz | 2.2 kB | Without provenance | Details for minutes_mail-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| minutes_mail-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for minutes_mail-1.0.3-py3-none-any.whl |
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
|
Security for minutes-mail 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.