Skip to main content

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")
False
>>>> validate("martin")
True

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',
  '401',
  '403'...

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.

Metadata

Release files for the_big_username_blacklist 1.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for the_big_username_blacklist 1.5.4
File Size Uploaded Provenance Actions
the_big_username_blacklist-1.5.4.tar.gz 5.9 kB Without provenance Details for the_big_username_blacklist-1.5.4.tar.gz

Release files / the_big_username_blacklist-1.5.4.tar.gz

Download URL the_big_username_blacklist-1.5.4.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
00ff940f231321fb2d4521711cd6f1a36e44258f1ae56077d444d117810ad8fe
BLAKE2b-256 checksum
How to use checksums
57afb76e9a709e364153fc4334dd07b4404dbc4fea7039e29cb3c83244401663
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for the_big_username_blacklist 1.5.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page