Skip to main content
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, not blacklisted, 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

Auto-updater

The package contains an auto-updater for downloading and updating the built-in blacklist.txt. It will run on each module load (and installation), but will try to update the content if the file is older than 5 days, and if the content is not the same that’s already downloaded.

TODOs and BUGS

See: https://github.com/karolyi/py3-validate-email/issues

Metadata

Release files for py3-validate-email 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py3-validate-email 0.2.0
File Size Uploaded Provenance Actions
py3-validate-email-0.2.0.tar.gz 7.3 kB Without provenance Details for py3-validate-email-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py3-validate-email 0.2.0
File Interpreter ABI Platform Actions
py3_validate_email-0.2.0-py3-none-any.whl Python 3 none any Details for py3_validate_email-0.2.0-py3-none-any.whl

Total release size: 16.4 kB

Release files / py3-validate-email-0.2.0.tar.gz

Download URL py3-validate-email-0.2.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b77841df54c0c1b20f53288115a872538a029281bfbca07196c1e7a27c763bd5
BLAKE2b-256 checksum
How to use checksums
2e8c2a48963c0c2d21bc23dbab566c6e84c8c5bc80d678d0041764a36cb53928
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5

Release files / py3_validate_email-0.2.0-py3-none-any.whl

Download URL py3_validate_email-0.2.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9aff42168852896890e688834d2f776abe0fbccb5537b6d11f20d1eb5bf604c0
BLAKE2b-256 checksum
How to use checksums
68186226d4e69ff9591753d03a0aa34315a038016fcbd91cbd66af19fa7094de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5

Security for py3-validate-email 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page