Kryptonite for profanities — lightweight, obfuscation-resistant profanity filter
Project description
profanite (Python)
Python bindings for profanite — a lightweight, obfuscation-resistant profanity filter.
Install
Until v0.1 ships to PyPI, build locally:
pip install maturin
cd crates/profanite-py
maturin develop --release
Usage
from profanite import Profanite
p = Profanite({"languages": ["en"]})
p.contains_profanity("what the fuck") # True
p.censor("what the fuck") # "what the ****"
hits = p.find("oh fuck that")
hits[0].start, hits[0].end # (3, 7)
See the top-level README for the full configuration reference.
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file profanite-0.1.9.tar.gz.
File metadata
- Download URL: profanite-0.1.9.tar.gz
- Upload date:
- Size: 38.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40c91234e37ff455be12f34249ac4e278792c8b34fefb33b630bb1cd287f561c
|
|
| MD5 |
b92af37651455cb87210adbc54c8b072
|
|
| BLAKE2b-256 |
d993d7514692475da6b7f27dace2b7417b5eaf0ef18af4629cc03c32c329d262
|
File details
Details for the file profanite-0.1.9-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: profanite-0.1.9-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 361.2 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8238939054e86c595cc426a0d42cd955aec967fe86458be887e7b3a8720d3541
|
|
| MD5 |
6cf75614a2c0715ba070ab643fe4c9c7
|
|
| BLAKE2b-256 |
7d0fbe7ff865077dd60d367ea10e31c2f2dcb6f6d462e5618a3a698b377a46e8
|
File details
Details for the file profanite-0.1.9-cp38-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: profanite-0.1.9-cp38-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 744.3 kB
- Tags: CPython 3.8+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c58425b02d7e97192f633a26405e5534ee8e1788422596c79a91b6e562f5dbae
|
|
| MD5 |
e2d342476c641b6a788d9c37c434c2b2
|
|
| BLAKE2b-256 |
42698eb22289d4603aef9d918fb57a87646f474ad9deedade9e93a09797e10c7
|
File details
Details for the file profanite-0.1.9-cp38-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: profanite-0.1.9-cp38-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 681.1 kB
- Tags: CPython 3.8+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bf8be446f8a6c95a8fda6071f4ec689f7e09a9018b220192742ffed8ac9ebbd
|
|
| MD5 |
50842ae6902353db88885dd7d7b7956b
|
|
| BLAKE2b-256 |
651712239e1558a61c12f714c653f655415ba41940639cacd4d7993bc1f62907
|
File details
Details for the file profanite-0.1.9-cp38-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: profanite-0.1.9-cp38-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 535.2 kB
- Tags: CPython 3.8+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77818eed163014cafb2d85ad65e5e9c3a5936f798c433be945c2a96cd3fc6773
|
|
| MD5 |
7dedd0f6ca1fe6eb2fa81357be511dde
|
|
| BLAKE2b-256 |
e4d0e439f381a90be7a51d239ab7701ece3d66e2be670d4887649180cb49f2f9
|
File details
Details for the file profanite-0.1.9-cp38-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: profanite-0.1.9-cp38-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 504.5 kB
- Tags: CPython 3.8+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28d3a94ddf94dce879e1ad10e5ec3f83db99ff22bd9368133748ecafc1d3a0a5
|
|
| MD5 |
4a23160858e4eb8d1805dc3934b2baf6
|
|
| BLAKE2b-256 |
32a35f525b8a252a3dbbd5d552fd253e1f0245797e900d82c8e820c350a3f4cc
|
File details
Details for the file profanite-0.1.9-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: profanite-0.1.9-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 450.3 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8f95e640b8e5771f8376dacf7420ba8a260923def4e25ad2e6c37982ff6adc8
|
|
| MD5 |
9817dea8bb254bf70984a35c141969f0
|
|
| BLAKE2b-256 |
fb8e6aba7f9cd5b6cfdf30d55e4c6ba3f30c76ccd0c2d08ae2e0413c5fcc4b82
|