Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

RFC 2822 - style email address validation for Python

Project Description
This module provides a single method, valid_email_address(), which returns

True or False to indicate whether a given address is valid according to the ‘addr-spec’ part of the specification given in [RFC 2822] (http://www.ietf.org/rfc/rfc2822.txt). Ideally, we would like to find this in some other library, already thoroughly tested and well- maintained. The standard Python library email.utils contains a parse_addr() function, but it is not sufficient to detect many malformed addresses.

This implementation aims to be faithful to the RFC, with the exception of a circular definition (see comments inline), and with the omission of the pattern components marked as “obsolete”.

Yes, all this really does is build a big regular expression. But it builds it in nice pieces that correspond to the RFC, and there’s a big bunch of unit tests that try to ensure each little piece of the regexp works as intended. (See test_email_validation.py.)

Release History

Release History

This version
History Node

1.0.0.3

History Node

1.0.0.2

History Node

1.0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
py_email_validation-1.0.0.3.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source May 7, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting