https://github.com/kakshay21/verify_email
verify-email can verify any email address by efficiently checking the domain name and pinging the handler to verify its existence.
https://github.com/kakshay21/verify_email
email-validation email-verification multithreading
Last synced: about 1 year ago
JSON representation
verify-email can verify any email address by efficiently checking the domain name and pinging the handler to verify its existence.
- Host: GitHub
- URL: https://github.com/kakshay21/verify_email
- Owner: kakshay21
- License: mit
- Created: 2018-04-15T14:27:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-03T20:00:35.000Z (over 3 years ago)
- Last Synced: 2025-03-30T17:09:31.626Z (about 1 year ago)
- Topics: email-validation, email-verification, multithreading
- Language: Python
- Homepage: https://pypi.org/project/verify-email/
- Size: 206 KB
- Stars: 136
- Watchers: 7
- Forks: 34
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# verify-email
`verify-email` can verify any email address by efficiently checking the domain name and pinging the handler to verify its existence.
## Features
- Syntax checks
- MX(Mail Exchange records) verification
- Email Handler verification
- Caching domain lookups to improve performance
- Supports `asyncio` for concurrency
- For `multiprocessing` usage, see [fast_verify.py](https://github.com/kakshay21/verify_email/blob/master/verify_email/fast_verify.py)).
## Compatibility
- Written in Python 3.7.
- Supports Python 3.7+.
- It should work on Linux, Mac and Windows.
## Installation
### From [pypi.org](https://pypi.org/project/verify-email/)
```
$ 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
```
>>> from verify_email import verify_email
>>> verify_email('foo@bar.com')
False
>>> verify_email(['foo@bar.com', 'example@foo.com'])
[False, False]
```
Also, note that some emails will likely fail in validation, if so you can check the reason of failure
using debug flag.
```
>>> from verify_email import verify_email
>>> verify_email('foo@bar.com', debug=True)
```
see for more examples [examples.py](https://github.com/kakshay21/verify_email/blob/master/examples.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. And feel free to contribute as well 😄.