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!

Python class for use with Django to detect Disposable Emails.

Project Description

Python class to detect fake email providers. Checks each email against a blacklist of ~890 domains used by various disposable email services. Tested in production with Django. This package requires Python 3, for Python 2.7 support see here.

Installation

Install it using pip and add it to your Django INSTALLED_APPS:

$ pip install django-email-blacklist

Create a folder in your templates directory and download the example email blacklist:

$ wget https://raw.github.com/zeioth/django-email-blacklist/master/disposable_email_domains.txt

Add this to to your settings.py:

DISPOSABLE_EMAIL_DOMAINS = "/path_to_your/disposable_email_domains.txt"

Usage

To use the checker in your own scripts:

>>> from django_email_blacklist import DisposableEmailChecker

>>> email_checker = DisposableEmailChecker()
>>> email_checker.is_disposable("foo@guerrillamail.com")
True

Credits

This is a fork from DisposableEmailChecker by aaronbassett, maintained by Zeioth.

Release History

Release History

This version
History Node

1.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
django-email-blacklist-1.0.1.tar.gz (1.8 kB) Copy SHA256 Checksum SHA256 Source Jan 26, 2015

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