Skip to main content

A Python library for email suggestions and validations.

Project description

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 parameter.

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

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

emailtools-0.0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

emailtools-0.0.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file emailtools-0.0.3.tar.gz.

File metadata

  • Download URL: emailtools-0.0.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for emailtools-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c81e25c58c28e7be2ea4733ef61203f8bb2dc0ce4ee88594d3ce893d5893f222
MD5 8ff5b4776ebf9d3061b815772d101910
BLAKE2b-256 2d9b43a82be18309904f29de31dc1bdc022c49659b1b948891bf5d2ccc7ab71a

See more details on using hashes here.

Provenance

File details

Details for the file emailtools-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: emailtools-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for emailtools-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 364c3f412b68612b44366b6d126057eb7ee122995c6477c73d4b971acd144e63
MD5 e92c65f115d8284cf237a77a61c958de
BLAKE2b-256 43513447281872036e19a185fd859a567d609f580631a4ee2a3ffbf4e6c048a8

See more details on using hashes here.

Provenance

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