emailtools
![GitHub](https://img.shields.io/github/license/armanyazdi/emailtools?style=for-the-badge)
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()
generate('gmail')
generate('gmail.com', 'Arash', 'Amiri')
generate('Outlook', 'Bita', 'Alipour', 1995)
Suggest Email Usernames:
from emailtools import generate
for i in range(10):
print(generate('Gmail', 'Saman', 'Rezaei', 1980))
Validate Emails:
from emailtools import validate
validate('Anahita.Faramarzi@gmail.com')
validate('Fariborz_Jalali20.gmail.com')
validate('Mohammadrezaei-Arash7@gmail')
License
emailtools
is available under the MIT license.