Validate usernames against a blacklist
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.
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.
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") False >>>> validate("martin") True
This package is available through pip
$ pip install the-big-username-blacklist
Make sure you have the necessary dependencies (pytest)
pip install -r requirements/tests.txt
Then run the tests
Want to contribute? Awesome. Just send a pull request.
The-Big-Username-Blacklist-Python is released under the MIT License.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size the_big_username_blacklist-1.2.0.tar.gz (4.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for the_big_username_blacklist-1.2.0.tar.gz