bleepy 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bleepy/__init__.py +4 -0
- bleepy/filter.py +13 -0
- bleepy-0.1.0.dist-info/METADATA +51 -0
- bleepy-0.1.0.dist-info/RECORD +7 -0
- bleepy-0.1.0.dist-info/WHEEL +5 -0
- bleepy-0.1.0.dist-info/licenses/LICENSE +1 -0
- bleepy-0.1.0.dist-info/top_level.txt +1 -0
bleepy/__init__.py
ADDED
bleepy/filter.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
class Bleepy:
|
|
2
|
+
"""A simple foul language filter."""
|
|
3
|
+
|
|
4
|
+
def __init__(self, replacement: str = "*"):
|
|
5
|
+
self.replacement = replacement
|
|
6
|
+
|
|
7
|
+
def clean(self, text: str) -> str:
|
|
8
|
+
"""Replace foul words in text with the replacement character."""
|
|
9
|
+
return text
|
|
10
|
+
|
|
11
|
+
def contains(self, text: str) -> bool:
|
|
12
|
+
"""Return True if the text contains foul language."""
|
|
13
|
+
return False
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: bleepy
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A simple foul language filter for Python
|
|
5
|
+
License: TBD
|
|
6
|
+
Project-URL: Homepage, https://github.com/vikh-ram/bleepy
|
|
7
|
+
Project-URL: Repository, https://github.com/vikh-ram/bleepy
|
|
8
|
+
Project-URL: Issues, https://github.com/vikh-ram/bleepy/issues
|
|
9
|
+
Keywords: profanity,filter,foul language,censorship,text
|
|
10
|
+
Classifier: Development Status :: 1 - Planning
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Text Processing :: Filters
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Requires-Python: >=3.8
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# bleepy
|
|
26
|
+
|
|
27
|
+
A simple foul language filter for Python.
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install bleepy
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Usage
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from bleepy import Bleepy
|
|
39
|
+
|
|
40
|
+
b = Bleepy()
|
|
41
|
+
|
|
42
|
+
b.clean("What the hell is going on?")
|
|
43
|
+
# "What the **** is going on?"
|
|
44
|
+
|
|
45
|
+
b.contains("This is clean text")
|
|
46
|
+
# False
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
TBD
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
bleepy/__init__.py,sha256=3WNjVy6U9gQk4C6UlIk3w27Go1gC65A7ir9iKOYJXYE,71
|
|
2
|
+
bleepy/filter.py,sha256=DiL-UrHiDccRJGyPJrdmJjWQEn3Cg_-U87iUiwtcrxc,403
|
|
3
|
+
bleepy-0.1.0.dist-info/licenses/LICENSE,sha256=o3NXMVkoYl2zJ9b2uNT5uIQtQyeI16fybzXUhEiQVUM,12
|
|
4
|
+
bleepy-0.1.0.dist-info/METADATA,sha256=Hl48BR4GEG8W2nYSN2s8tqS7EPuhV0kKVVw01B0QLHM,1267
|
|
5
|
+
bleepy-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
6
|
+
bleepy-0.1.0.dist-info/top_level.txt,sha256=Utld6fmncwl9W4rgpHpKRTL2Jr_MiGj1JegDM9FWjhk,7
|
|
7
|
+
bleepy-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
License TBD
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bleepy
|