emailtools
v0.0.5
A Python library for email suggestions and validations.
Install from PyPI with pip by typing in your favorite terminal:
This will install persian-names (for generating random names).
pip install emailtools
Let's take a look at what an example test case would look like using emailtools.
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: [email protected]
generate('gmail') # Generates a random Gmail
# Example: [email protected]
generate('gmail.com', 'Arash', 'Amiri')
# Example: [email protected]
generate('Outlook', 'Bita', 'Alipour', 1995)
# Example: [email protected]from emailtools import generate
for i in range(10):
print(generate('Gmail', 'Saman', 'Rezaei', 1980))
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]
# [email protected]from emailtools import isValid
isValid('[email protected]') # True
isValid('Fariborz_Jalali20.gmail.com') # False
isValid('Mohammadrezaei-Arash7@gmail') # Falseemailtools is available under the MIT license.