TempInbox - Your Temporary Email Solution 📧
Welcome to TempInbox, a Python package designed to simplify your interaction with temporary email addresses. With TempInbox, you can effortlessly generate disposable email addresses and access their content.
Installation 🛠️
To get started, simply install TempInbox using pip:
pip install tempinbox
Usage Example 🚀
from tempinbox import TempEmail
# Create a TempEmail instance
client = TempEmail()
# Generate a temporary email address with specific options
email_address = client.generate_temp_email(domain=False, dot_gmail=True, plus_gmail=False)["email"][0]
# Get a list of emails for the generated address
email_list = client.get_mail_list(email_address)
# Get the content of a specific email (ID=2)
email_content = client.get_mail_content(email_address, id=2)
print(email_content)
This code snippet demonstrates how to generate a temporary email address with the following options:
domain: Generates an email address without an additional domain.( example@exampledomain.com )dot_gmail: Generates an email address with a dot and 'gmail.com' (as in the example). ( ex.ex.ex@gmail.com)plus_gmail: Generates an email address without a plus sign followed by 'gmail.com'. ( example+exam@gmail.com)
Sample Output 📋
Generated Email Address:
m.ar.io.sgl.ade@gmail.com
List of Received Emails:
{
'messageData': [
{
'messageID': 'ADSVPN',
'from': 'AI TOOLS',
'subject': 'Unleash the power of AI with our ultimate directory of online tools!',
'time': 'Just Now'
},
{
'messageID': 'MThiODcwYWI5Mzk3MDYwNg==',
'from': 'GPTDOS Access <hi@gptdos.com>',
'subject': 'GPTDOS Access Code',
'time': '14 hrs ago'
},
{
'messageID': 'MThiODZmNjlhNzhjYmI5Zg==',
'from': 'LOVO <hello@lovo.ai>',
'subject': 'LOVO Newsletter 👻',
'time': '19 hrs ago'
}
]
}
Email Content (ID=2):
<div id="subject-header">
<b>From: </b>GPTDOS Access <hi@gptdos.com><br/>
<b>Subject: </b>GPTDOS Access Code
</div>
<html>
<head>
<title></title>
</head>
<body>
您好,<br>
您在使用 GPTDOS, 请输入验证码:<br/>
<br/>
<b>81269658</b>
<br/>
GPTDOS<br/>
<img src="https://u13032898.ct.sendgrid.net/wf/open?upn=rqJJO9-2BJL8i62yHtdgY1cWouC7RdXlcfG3E73dU1e9bPvX1VDl-2BssK4tZTTDPVKiIzaKX2ZiEbmPYpW1BM32GVs-2FvWGiq0R-2BAvavNooikOlxpsMBCJehGSg33aHAZgfSpipfZ1gyuFsxIrfleaNTIuL8Nhu2y5on3fe6rpukhEi-2BHtezMLmZig6IHrWHV12TR94QgEhzPmLoXOHUXx76bqlGEZLGixTo6lCYGECJfgezt6vsLL78PtVSJpanSdYvdoPj-2BNgztK6xsXmw6ZhVWEBeMYBIBQ9BCW7od6JzUo6DaVoLj1iOQcexl-2BOC9COGhif32U42TOV04TnEnFNQ106dIjBtPU3VgTxEZA0cAR35d5AJUgCGRi4-2B-2FqqnPM2-2F" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body>
</html>
Features 🌟
- Quickly generate temporary email addresses.
- Retrieve a list of received emails with details.
- Access the content of specific emails.
Contribution 🤝
We welcome contributions! If you'd like to enhance TempInbox, feel free to open an issue or create a pull request.
License 📜
This project is licensed under the MIT License - see the LICENSE file for details.
Repository Views
For more information, visit our GitHub repository.
Happy Emailing! 📬🎉
Metadata
Release files for tempinbox 0.2.1
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 |
|---|---|---|---|---|
| tempinbox-0.2.1.tar.gz | 5.4 kB | Without provenance | Details for tempinbox-0.2.1.tar.gz |
Release files / tempinbox-0.2.1.tar.gz
| Download URL | tempinbox-0.2.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a428380bafd3a096751fe5ce7ecbca4ca85eb9e688c069e7318c18dbe9a5720b
|
|
BLAKE2b-256 checksum How to use checksums |
91de21521bcb7ee1ddd9873442b8c8d9be6176f93d8379a14dc8249af022ae88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for tempinbox 0.2.1
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.