PWValid Email Validation
PWValid is a powerful and very simple Python package to validate and check emails. It helps developers tackle spam and disposable emails.
Features:
- Fast Response
- Very Accurate
- Easy to Implement
- No Need to use External APIs
- No Need for Any API Key
Installation
Pip Command
pip install pwvalid
How to use?
Import pwvalid Package
import pwvalid
InBuilt Functions:
EmailValidate Fuction:
It checks and validates the emails and returns a complete response with all available metrics.
pwvalid.EmailValidate('youremail@gmail.com')
Avaliable Metrics
result = pwvalid.EmailValidate('youremail@gmail.com')
- email_address :
result['email_address']
| Response Type: String - domain :
result['domain']
| Response Type: String - disposables :
result['disposable']
| Response Type: Bool - webmails :
result['webmail']
| Response Type: Bool - deliverable :
result['deliverable']
| Response Type: Bool - valid_syntax :
result['valid_syntax']
| Response Type: Bool - catch_all :
result['catch_all']
| Response Type: Bool - gibberish :
result['gibberish']
| Response Type: Bool - spam :
result['spam']
| Response Type: Bool
Example Response:
{
'email_address': 'kush@gmail.com',
'domain': 'gmail.com',
'valid_syntax': True,
'disposable': False,
'webmail': True,
'deliverable': False,
'catch_all': False,
'gibberish': False,
'spam': False
}
isDisposable Fuction:
It checks if an email is disposable or not. It returns a boolean response (True/False).
pwvalid.isDisposable('youremail@gmail.com')
isDeliverable Fuction:
It Checks if an email is Deliverable or not. it returns a Bool response. (True/False)
pwvalid.isDeliverable('youremail@gmail.com')
isSpam Fuction:
It Checks if an email is Spam or not. it returns a Bool response. (True/False)
pwvalid.isSpam('youremail@gmail.com')
Code Examples
import pwvalid
email = input('Enter Email:')
result = pwvalid.isSpam(email)
print(result)
Support This Project
Author
The PWValid Package is created by Vinay Chaudhary. This Project is Powered by Regem Enterprises