emailtools
v0.0.5
Python庫,用於電子郵件建議和驗證。
通過在您喜歡的終端中鍵入PYPI與PIP安裝:
這將安裝persian-names (用於生成隨機名稱)。
pip install emailtools
讓我們看一下使用emailtools的示例測試用例。
注意:您可以將電子郵件提供商的名稱或其域名用於第一個參數。
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 通過MIT許可證可獲得emailtools 。