Skip to main content

Email validator with regex and SMTP checking.

Project description

https://travis-ci.org/karolyi/py3-validate-email.svg?branch=master

py3-validate-email

py3-validate-email is a package for Python that check if an email is valid, properly formatted and really exists.

This module is for Python 3.6 and above!

INSTALLATION

You can install the package with pip:

pip install py3-validate-email

USAGE

Basic usage:

from validate_email import validate_email
is_valid = validate_email(email_address='example@example.com', check_regex=True, check_mx=True, from_address='my@from.addr.ess', helo_host='my.host.name', smtp_timeout=10, use_blacklist=True)

check_regex will check will the email address has a valid structure and defaults to True

check_mx: check the mx-records and check whether the email actually exists

from_address: the email address the probe will be sent from,

helo_host: the host to use in SMTP HELO when checking for an email,

smtp_timeout: seconds until SMTP timeout

use_blacklist: use the blacklist of domains downloaded from https://github.com/martenson/disposable-email-domains

TODOs and BUGS

See: https://github.com/karolyi/py3-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 Distribution

py3-validate-email-0.1.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py3_validate_email-0.1.3-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file py3-validate-email-0.1.3.tar.gz.

File metadata

  • Download URL: py3-validate-email-0.1.3.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for py3-validate-email-0.1.3.tar.gz
Algorithm Hash digest
SHA256 131834240bc3d4b12f7a8e8fa142d37d9e8f6871bcfb01942f9dc5a5ad9dd669
MD5 4cd46b7a480d22f403c5f6c3c4ed5e7b
BLAKE2b-256 43660533e6a0741060504ba32f9d722bdf33706e5be3d7866e0e336315abae42

See more details on using hashes here.

File details

Details for the file py3_validate_email-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: py3_validate_email-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for py3_validate_email-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 32caf7766f25a6b117adb1354c25e2cfff97eaf71a93edb03ac4b21ced12d4b5
MD5 cb77579a4b5d5f83152368fb4d7af676
BLAKE2b-256 599af8f5f2444e1170e069f2e04495a6b9dbd827b286aba2f52faf7eaedbb03c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page