emailtools
v0.0.5
Une bibliothèque Python pour les suggestions et validations par e-mail.
Installez à partir de PYPI avec PIP en tapant votre terminal préféré:
Cela installera persian-names (pour générer des noms aléatoires).
pip install emailtools
Jetons un œil à ce à quoi ressemblerait un exemple de test de test en utilisant emailtools .
Remarque: vous pouvez utiliser le nom des fournisseurs de messagerie ou leurs domaines pour le premier 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' ) # False emailtools est disponible sous la licence MIT.