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!

Validate usernames against a blacklist

Project Description

[![Build Status](](
[![PyPI version](](

# The-Big-Username-Blacklist-Python

This library lets you validate usernames against a blacklist. The blacklist data is based on the data from [The-Big-Username-Blacklist]( and contains privilege, programming terms, section names, financial terms and actions.

You can try the blacklist using the tool [Username checker](

## How it works

the_big_username_blacklist exposes a function named validate, you can use that function to see if a word is occuring in the blacklist.

## Usage

Validating a username is easy, if the word is in the blacklist, return False (validation failed), otherwise True. Example:

>>>> from the_big_username_blacklist import validate
>>>> validate("root")
>>>> validate("martin")


#### Access the blacklist

If you only want to retrive the blacklist data, you can find it in the `list` property.


>>>> from the_big_username_blacklist import get_blacklist
>>>> get_blacklist()
[ '400',

## Installation

This package is available through pip

$ pip install the-big-username-blacklist

## Tests

Make sure you have the necessary dependencies (pytest)

pip install -r requirements/tests.txt

Then run the tests

py.test tests

## Contributing

Want to contribute? Awesome. Just send a pull request.

## License

The-Big-Username-Blacklist-Python is released under the [MIT License](

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


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
(5.6 kB) Copy SHA256 Hash SHA256
Source None Apr 16, 2017

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