UNKNOWN
Project description
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 The-Big-Username-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")
False
>>>> validate("martin")
True
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.t
Then run the tests
py.test
Contributing
Want to contribute? Awesome. Just send a pull request.
License
The-Big-Username-Blacklist-Python is released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for the_big_username_blacklist-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b6c428e316203163db598c470e48b769c43c1d91815e2aeabd8ff79e6fba0d5 |
|
MD5 | 921c3e9497081e8232f16114095c4f39 |
|
BLAKE2b-256 | d7271e6f205e591d77cd1dea2f0d9d2adbaa7c3cb9ba3dbf488c079656e4f3bf |