Klean is a text manipulation library.
🚀 Features
- HTML Stripping: Clean your text by removing all HTML tags.
- Capitalization: Convert strings to various capitalization formats (title case, uppercase, etc.).
- Slugify: Convert strings to URL-friendly slugs.
- Whitespace: Remove or normalize whitespace in your text.
- Text Sanitization: Replace or remove unwanted characters and symbols.
- Normalization: Convert text to a consistent format, including diacritic removal, converting quotes, etc.
Installation
pip install klean
Usage
from klean import klean
txt = "Hello World"
klean(txt).capital().to_text()
🧑💻 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This project is licensed under the MIT License. See the LICENSE file for more details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
klean-0.1.0.tar.gz
(2.4 kB
view details)
Built Distribution
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
klean-0.1.0-py3-none-any.whl
(2.6 kB
view details)
File details
Details for the file klean-0.1.0.tar.gz.
File metadata
- Download URL: klean-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd69279c617f8dd0df89feb1b096070c8a873b28f59128b1e2eabf8002218cf8
|
|
| MD5 |
c7866f6c4d6efdcd7fc96dcc95459929
|
|
| BLAKE2b-256 |
a3629e77806364884493690048dd66c799c978f5f434faa89495991bf92f63c3
|
File details
Details for the file klean-0.1.0-py3-none-any.whl.
File metadata
- Download URL: klean-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
761d599041e4a28f458cbb3874c433e3505f77eba4a8e890319ca91153bcc0f9
|
|
| MD5 |
0448c26799e8e1859c7907d05041c664
|
|
| BLAKE2b-256 |
0644c7da4d0675e1d1e97660b3f9d0f2ed6f149514b0a7a8a54cac05003a9790
|