temp-gmail-api
Features
- Create Temporary Emails: Generate disposable emails quickly.
- Fetch Messages: Retrieve emails for the created email account.
- Search by Keyword: Efficiently search through the inbox to find relevant messages.
- Session Management: Handles browser-like sessions and cookies automatically.
Installation
To use this module, ensure you have Python installed on your machine along with the curl_cffi package. You can install the required package using pip:
pip install curl-cffi temp-gmail
Usage
Here's a basic example of how to use the GMail class from the module:
from temp_gmail import GMail
# Creating an instance of the GMail class
gmail_instance = GMail()
# Creating a temporary email
email_address = gmail_instance.create_email()
print("Generated Email:", email_address)
# Loading the email list for the new email
emails = gmail_instance.load_list()
print("Emails:", emails)
# Example: Check for new items with a specific keyword
message_info = gmail_instance.check_new_item("welcome")
print("Message Details:", message_info)
Methods
Here is a brief overview of some of the methods included in the GMail class:
- create_email()
> No parameters required.
> Returns the generated email address.
- load_list()
> No parameters required.
> Fetches all messages for the current email account.
- load_item(message_id)
> message_id: ID of the message to retrieve.
> Returns the contents of the specified message.
- check_new_item(keyword)
> keyword: The keyword to search for in messages.
> Searches all messages for the keyword and returns the first message ID with a match.
Dependencies
curl_cffi: A Python package that provides a way to interact with curl via CFFI.
Metadata
Release files for temp-gmail 1.0.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 |
|---|---|---|---|---|
| temp-gmail-1.0.1.tar.gz | 3.0 kB | Without provenance | Details for temp-gmail-1.0.1.tar.gz |
Release files / temp-gmail-1.0.1.tar.gz
| Download URL | temp-gmail-1.0.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b8357753290d2bd419eeb1ae3c50c03b1fa159fcecfa2a4c379701a07d5deb8
|
|
BLAKE2b-256 checksum How to use checksums |
14418f1afc1c4faa1e8982cc03a99c9e24ba46c298d1f7177e016682f9bb6bea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.9
|
Security for temp-gmail 1.0.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.