A small package for email verification
Project description
verify-email
verify-email
can verify the email by efficiently checking the domain name and pinging the handler to verify its existence.
Features
- Syntax checks
- MX(Mail Exchange records) verification
- Handler verification
- Cache domain lookups (For multiple emails)
- Multithread support (look in usage.py)
- Multiprocess efficient (look in fast_verify.py)
Compatibility
- It is written in Python 2.7.
- Not tested in python3.X.
- It should work on Linux, Mac and Windows.
Installation
From pypi.org
$ pip install verify-email
From source code
$ git clone https://github.com/kakshay21/verify_email
$ cd verify_email
$ virtualenv env
$ source env/bin/activate
$ python setup.py develop
Usage
For single email
>>> from verify_email.verify_email import validate_email
>>> validate_email("foo@bar.com", mass=False)
False
For multiple emails
>>> emails = ["foo@bar.com", "example@foo.com"]
>>> validate_email(emails, mass=True)
[False, False]
Multithreaded Version (Single/Multiple emails)
>>> from verify_email.verify_email import fast_validate_email
>>> fast_validate_email("foo@bar.com", mass=False)
False
see for more details usage.py
Contribute
- Issue Tracker: https://github.com/kakshay21/verify_email/issues
- Source Code: https://github.com/kakshay21/verify_email
Support
If you are having issues, please create an issue for it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for verify_email-2.2.0.macosx-10.13-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 216cfff78ba9dc750c4c6f9cfe41cb5bb6f1a0de3ff859ffd46e58496ee93dac |
|
MD5 | fc8eea7330de0f854e206ddd83c00ebf |
|
BLAKE2b-256 | b89a72bf39cce34118fe2d1a04e28bbfe7dcfd882d3c33d347114653b9d10530 |
Close
Hashes for verify_email-2.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e862261d2f1dac30331384f1e2609ff3779900cbd3473863b365ee61cc55427 |
|
MD5 | 30f71e2bba415b8819b54aafbbc2241c |
|
BLAKE2b-256 | c406e38cdf8a295e68a10616f0723028276e964b0879d9a5b7edb0a3e015e254 |