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 emailtools สามารถใช้ได้ภายใต้ใบอนุญาต MIT