Skip to main content

emailtools

PyPI GitHub

A Python library for email suggestions and validations.

Installation

Install from PyPI with pip by typing in your favorite terminal:

This will install persian-names (for generating random names).

pip install emailtools

Usage

Let's take a look at what an example test case would look like using emailtools.

Generate Random Emails:

Note: You can use the name of email providers or their domains for the first argument.

from emailtools import generate

# generate('EmailProvider', 'FirstName', 'LastName', BirthYear)

generate() # Generates a random email
# Example: Reza.Mahmoudi_2023@yahoo.com

generate('gmail') # Generates a random Gmail
# Example: Jafari_Niloufar@gmail.com

generate('gmail.com', 'Arash', 'Amiri')
# Example: Amiri-Arash1@gmail.com

generate('Outlook', 'Bita', 'Alipour', 1995)
# Example: BitaAlipour.1995@outlook.com

Suggest Email Usernames:

from emailtools import generate

for i in range(10):
    print(generate('Gmail', 'Saman', 'Rezaei', 1980))

# SamanRezaei@gmail.com
# Rezaei_Saman_1980@gmail.com
# Rezaei_Saman@gmail.com
# RezaeiSaman_5@gmail.com
# Saman_Rezaei_1980@gmail.com
# Rezaei.Saman@gmail.com
# RezaeiSaman7@gmail.com
# Saman-Rezaei_1@gmail.com
# Rezaei_Saman@gmail.com
# Saman.Rezaei1980@gmail.com

Validate Emails:

from emailtools import validate

validate('Anahita.Faramarzi@gmail.com') # True
validate('Fariborz_Jalali20.gmail.com') # False
validate('Mohammadrezaei-Arash7@gmail') # False

License

emailtools is available under the MIT license.

Metadata

Release files for emailtools 0.0.5

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

Source distribution (sdist)

Source distribution for emailtools 0.0.5
File Size Uploaded Provenance Actions
emailtools-0.0.5.tar.gz 3.8 kB Without provenance Details for emailtools-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for emailtools 0.0.5
File Interpreter ABI Platform Actions
emailtools-0.0.5-py3-none-any.whl Python 3 none any Details for emailtools-0.0.5-py3-none-any.whl

Total release size: 7.9 kB

Release files / emailtools-0.0.5.tar.gz

Download URL emailtools-0.0.5.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b4fe578297f5b9bddb09b1894174c1d2dd349523c08299ba293782f2ab2bff9a
BLAKE2b-256 checksum
How to use checksums
c5804fcd87c45f8c6f2a0983600d1dbec3a351b09173d1e2c8b94812ab8db32b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / emailtools-0.0.5-py3-none-any.whl

Download URL emailtools-0.0.5-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd7f8e04870b3edaf5a1632cec412c6af3667a9170796aa1887cb54bc0865ae7
BLAKE2b-256 checksum
How to use checksums
87f896843550ce6afa51bb270bc5f421a0a1b27c5ced8f05aad4d43fd8ab68f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Security for emailtools 0.0.5

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