Skip to main content

A Python package for generating and interacting with temporary email addresses.

Installation

You can install the package via pip:

pip install temp_email_automa

Usage

Import the TempMail class from the package:

from temp_email_automa.main import TempMail

Create an instance of TempMail with optional parameters for login and domain. If not provided, a random email address will be generated:

temp_mail = TempMail(login="example", domain="example.com")

You can also generate a random email address using:

temp_mail.generate_random_email_address()

To get the email address generated or provided:

email_address = temp_mail.email

You can get a list of active domains for email addresses using:

active_domains = temp_mail.get_list_of_active_domains()

To retrieve a list of emails in the mailbox:

emails = temp_mail.get_list_of_emails()

Retrieve a single email by its id:

email_id = 1  # Example id
single_email = temp_mail.get_single_email(email_id)
print(single_email)

Data Structures

The package provides a Email data class representing an email message with the following attributes:

  • id: str
  • sender: str
  • subject: str
  • date: str
  • body: str
  • textBody: str
  • htmlBody: str

Example:

from dataclasses import dataclass

@dataclass
class Email:
    id: str
    sender: str
    subject: str
    date: str
    body: str
    textBody: str
    htmlBody: str

Metadata

Release files for temp-email-automa 0.0.7

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

Source distribution (sdist)

Source distribution for temp-email-automa 0.0.7
File Size Uploaded Provenance Actions
temp_email_automa-0.0.7.tar.gz 3.3 kB Without provenance Details for temp_email_automa-0.0.7.tar.gz

Release files / temp_email_automa-0.0.7.tar.gz

Download URL temp_email_automa-0.0.7.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7ce06f183fe65540020a455b7811af41a36a149587feeb1f546032469b478b68
BLAKE2b-256 checksum
How to use checksums
bb058ac73e821db59627733d27629492bdb1bce16e7f498fe72bfbde9f25fad4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.0

Security for temp-email-automa 0.0.7

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.

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