bad-checker
A fuzzy, keyboard-typo- and leetspeak-aware content blocklist for Python.
Install name: bad-checker | Import name: bad
Usage
import bad
if "something bad" in bad:
print("Caught it!")
Matching combines:
- direct substring lookups against a blocklist
- leetspeak normalization (
v1agra->viagra,fr33->free) - a keyboard-proximity-aware Damerau-Levenshtein distance, so typos on physically nearby keys (and adjacent-letter transpositions) are caught cheaply while unrelated words are not
Add your own keywords at runtime:
bad.add_keywords("mycompanyscam", "internaltermtoflag")
Install
pip install bad-checker
Build from source
pip install --upgrade build
python -m build
License
MIT
Release files for bad-checker 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 | |
|---|---|---|---|
| bad_checker-0.1.0.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bad_checker-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.5 kB
Release files / bad_checker-0.1.0.tar.gz
| Download URL | bad_checker-0.1.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64d428dc0a61453e4842983c4153e1b5f7d09f80c7a6395fbf506b981ac1ef2b
|
|
BLAKE2b-256 checksum How to use checksums |
97a8c9d41969d8117fe35eb6f8ce414ef16a4b1fe29206c1a39368e304bfc9c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Release files / bad_checker-0.1.0-py3-none-any.whl
| Download URL | bad_checker-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7523234358c6a93349420f98602036084474c028860312f6f715af350a5e9a9
|
|
BLAKE2b-256 checksum How to use checksums |
8edbc476929208f7314dd37ee1ae4b0c65d22f6f81d29e3cc4e1bf3f7e90654a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|