Skip to main content

A Python Package to Provide Temp Emails for AUTOMATION!

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

temp_email_automa-0.0.4.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file temp_email_automa-0.0.4.tar.gz.

File metadata

  • Download URL: temp_email_automa-0.0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for temp_email_automa-0.0.4.tar.gz
Algorithm Hash digest
SHA256 43f40ff647eddc0116451735b6f39120751001518a4da0c43176d14535d92e6b
MD5 ebab40da4517eacbf1424f509225ca5f
BLAKE2b-256 15e5204fc2af174e3e20a25ecbae2b70ed70306da25a7dad466d3e25dd52f5e2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page