Skip to main content

Email validator with regex and SMTP checking.

Project description

https://travis-ci.org/karolyi/py3-validate-email.svg?branch=master https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png

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, dns_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

dns_timeout: seconds until DNS 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.12.tar.gz (23.9 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.12-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py3-validate-email-0.1.12.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for py3-validate-email-0.1.12.tar.gz
Algorithm Hash digest
SHA256 60775a7e2e15fb983e97fec0a9bf7bed9fcd6aaa31948be8f7d70244c0ca54c9
MD5 6e00786caec00218d8537b553559a6de
BLAKE2b-256 4b7f4f06f983acedc88b46b6d188fb667b991e5f046a1896df99b2d1a1ef130b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py3_validate_email-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5

File hashes

Hashes for py3_validate_email-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 e2cb73b065d33eb2579c6663c44b072f424ed06c30f5d1d15a129afe514fbaaa
MD5 75ebfcb5f28fbec44fbf33d19a5c4b84
BLAKE2b-256 7a70a8d5b44ddeafb07ee6221abbec7ae904556f64c4c6145889d0d2f593a3f5

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