This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Installation

pip install block-disposable-email

Simple usage (email)

from bdea.client import is_disposable_email

if is_disposable_email(‘spam@mailinator.com’, ‘example_apikey_12345’):
print “Email is disposable”
else:
print “Email is valid”

Simple usage (domain)

from bdea.client import is_disposable_domain

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

Django validator

Add your apikey to Django settings.py:

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(‘mailinator.com’) print res.is_disposable(), res.status()

# get raw API response print res.response

Development

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:

tox
Release History

Release History

1.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
block-disposable-email-1.0.1.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source Oct 26, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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