validate-email-wt
Validate_email is a package for Python that check if an email is valid, properly formatted and really exists.
INSTALLATION
First, you must do:
pip install validate-email-wt
Extra
For check the domain mx and verify email exits you must have the pyDNS package installed:
pip install pyDNS
USAGE
Basic usage:
from validate_email import validate_email
is_valid = validate_email('example@example.com')
Checking domain has SMTP Server
Check if the host has SMTP Server:
from validate_email import validate_email
is_valid = validate_email('example@example.com',check_mx=True)
Verify email exists
Check if the host has SMTP Server and the email really exists:
from validate_email import validate_email
is_valid = validate_email('example@example.com',verify=True)
Verify email exists on a server that implements callback verfication
Check if the host has SMTP Server and the email really exists:
from validate_email import validate_email
is_valid = validate_email('example@example.com',verify=True,sending_email="valid@example.org")
valid@example.org must be a valid e-mail that you control.
For information on callback verification see: https://en.wikipedia.org/wiki/Callback_verification
Don’t allow your users to register with disposable emails
Checks are performed against this version of the listing: https://github.com/martenson/disposable-email-domains/tree/4efb0b0ed43022a78abc768c4f28ba7ed7a37772
from validate_email import validate_email is_valid = validate_email(”disposable@yopmail.com”, allow_disposable=False) assert not is_valid
TODOs and BUGS
Metadata
Release files for validate-email-wt 1.4.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| validate_email_wt-1.4.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for validate_email_wt-1.4.6-py2.py3-none-any.whl |
Release files / validate_email_wt-1.4.6-py2.py3-none-any.whl
| Download URL | validate_email_wt-1.4.6-py2.py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
085026f18ff3df3f57ecb66dae27343cc7ef1d631c69bf00de8d1a82de8a5740
|
|
BLAKE2b-256 checksum How to use checksums |
3bd16168b8475b0c4baa122f57cbad2c1f32be27211dba0e27cecf353a839bc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Security for validate-email-wt 1.4.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.