validate_email verifies if an email address is valid and really exists.
Project description
==============
Validate_email
==============
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
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
==============
See: http://github.com/syrusakbary/validate_email/issues
Validate_email
==============
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
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
==============
See: http://github.com/syrusakbary/validate_email/issues
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for validate_email_wt-1.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683fdaf4f20c427369849dd9bb958359b2bd3a0bcabdbb8440017a2ca52c2d1f |
|
MD5 | c5a21931e3111f0765b12b4cc6ade908 |
|
BLAKE2b-256 | 88a4b58790ead48010898bf09f339c3edc9f76a5737051764aadcc6d2c125302 |
Close
Hashes for validate_email_wt-1.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b135acc9d8ed6deff6b87735ce751fd1fa1acc4374c48cefa5d2c5c2c2480e1 |
|
MD5 | 8a31905b4660753be4ab8e4893b95230 |
|
BLAKE2b-256 | bfda39ba8721c7c27319b2bc1be57c0e2ea0efb10b0a855a74cd72eaec0e6609 |