Django BlockedEmails
django-blockedemails is a reusable app that provides a form field, validators, and models that check if an email is being blocked, or is disposable/throwaway.
Installation
You can install django-blockedemails with pip by typing:
pip install django-blockedemails
Or with easy_install by typing:
easy_install django-blockedemails
Or manually by downloading a tarball and typing:
python setup.py install
Settings
django-blockedemails adds 3 settings
Specifies an API_KEY to use with http://www.block-disposable-email.com/:
BLOCK_DISPOSABLE_EMAIL_API_KEY = "" # Defaults to None which disables this validatorSpecifies a different url to use for the block-disposable-email.com api:
BLOCK_DISPOSABLE_EMAIL_URL = "" # Will be string formated with a dictionary with api_key and domainSpecifies if we should block an email if an exception occurs trying to check block-disposable-email.com:
BLOCK_EMAIL_ON_URLERROR = False # Defaults to False
Usage
To use the formfield simply import it and use it:
from django import forms from blockedemails.fields import EmailField class ExampleForm(forms.Form): email = EmailField()
Metadata
Release files for django-blockedemails 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-blockedemails-0.1.0.tar.gz | 3.3 kB | Without provenance | Details |
Release files / django-blockedemails-0.1.0.tar.gz
| Download URL | django-blockedemails-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c53e1c4f175a3c27d3cedb980e44e56f0b1a908ff2a5fd967c888cc2d9f0f1b
|
|
BLAKE2b-256 checksum How to use checksums |
c83174156effbdba6f8f216e618f5e40e07e1aaa86eca3fdbfe5c6fd2925d693
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-blockedemails 0.1.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.