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

Python client for

Project Description


pip install block-disposable-email

Simple usage (email)

from bdea.client import is_disposable_email

if is_disposable_email(‘’, ‘example_apikey_12345’):
print “Email is disposable”
print “Email is valid”

Simple usage (domain)

from bdea.client import is_disposable_domain

if is_disposable_domain(‘’, ‘example_apikey_12345’):
print “Domain is disposable”
print “Domain is valid”

Django validator

Add your apikey to Django

BDEA_APIKEY = ‘example_apikey_12345’

Add validator to your EmailField:

from django import forms from bdea.django_validators import disposable_email_validator

class EmailField(forms.EmailField):
default_validators = forms.EmailField.default_validators + [disposable_email_validator]

Advanced usage

from bdea.client import BDEAClient

cl = BDEAClient(‘example_apikey_12345’, timeout=5)

# examine API status res = cl.get_api_status() print res.status(), res.credit_status(), res.credits()

# get raw API response print res.response

# validate domain res = cl.get_domain_status(‘’) print res.is_disposable(), res.status()

# get raw API response print res.response


To bootstrap your development environment, install virtualenvwrapper and run the following commands from project directory:

mkvirtualenv disposable setvirtualenvproject pip install -r requirements.txt pip install -e ./

To run tests use py.test, or run the following command:


Release History

This version
History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.2 kB) Copy SHA256 Hash SHA256
Source None Oct 26, 2015

Supported By

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 Google Google Cloud Servers