Validation of the email or international or local telephone number
Project description
PHONE & EMAIL Verifier
Description
Validation of the email or international or local telephone number.
Install
If you install with
pip install phone_email_verifier
1 : Download here https://github.com/Bogro/phone_email_verifier/blob/develop/phone_email_verifier/code.txt and drop it at the root of your project.
2 : Add the phone code dictionary path in the .env of your project.
#.env
DICT_CODE="dict_name.txt"
Note: This file is important for checking phone numbers
For direct downloads on github you do not need to follow the process above
Usage
>>> from phone_email_verifier import phone_email_verifier
>>> filter = phone_email_verifier()
E-mail list
email = ['test@mail.tx', 'demo@mail.test', 'e.mail@mailer.com']
>>> filter.set_email_list(email, )
>>> filter.exec()
{'OK': ['test@mail.tx', 'e.mail@mailer.com'], 'ERROR': ['demo@mail.test']}
Phone
Number phone list
#simple use
phone = ['+22547000000', '+225-47-00-00-00', '+225 47 00 00 00 00', '+33 00 25 00 11 00', '47 02 00 00']
>>> filter.set_phone_list(phone)
{'OK': ['+22547000000', '+22547000000', '+2254700000000', '+330025001100'], 'ERROR': ['47020000']}
appartie d'un fichier
#simple use of a contact list
name_list = list_phone.csv
>>> filter.set_phone_in_file(name_list, colum=0) # colum is column of numbers
>>> filter.exec()
{'OK': ['+22547000000', '22547000010'], 'ERROR': ['030020585', '4578', '33024558452', '55552222', '658945898']}
It is important to specify the number column when the file is a csv file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size phone_email_verifier-0.0.2-py3-none-any.whl (7.5 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size phone_email_verifier-0.0.2.tar.gz (4.3 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for phone_email_verifier-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e7a9df3bdd6b281441647f104671a71fe78ac97ca3aced852ae2a3ba6c8eeef |
|
MD5 | 01597d8a7163a087c8f6fda55c173f9c |
|
BLAKE2-256 | f52d7ed33280a4b29bd534ce4f7d77cb1eb664e31db34d8cc68500251820e605 |
Close
Hashes for phone_email_verifier-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbbf7ae2513e4129cc2a9f25fa40c70181eeca5754d525c0ebec4959bdc83b94 |
|
MD5 | 08d6f5df43f3e9cf613afc09e78f457f |
|
BLAKE2-256 | 62018b3797767c3892c9437ef7dbed676910f647e6dbc9c8d1557eecb06358bf |