Skip to main content
Logo

Klean

A Text Manipulation Library.

Test Status License

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.

Metadata

Release files for klean 0.1.0

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

Source distribution (sdist)

Source distribution for klean 0.1.0
File Size Uploaded Provenance Actions
klean-0.1.0.tar.gz 2.4 kB Without provenance Details for klean-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for klean 0.1.0
File Interpreter ABI Platform Actions
klean-0.1.0-py3-none-any.whl Python 3 none any Details for klean-0.1.0-py3-none-any.whl

Total release size: 5.0 kB

Release files / klean-0.1.0.tar.gz

Download URL klean-0.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dd69279c617f8dd0df89feb1b096070c8a873b28f59128b1e2eabf8002218cf8
BLAKE2b-256 checksum
How to use checksums
a3629e77806364884493690048dd66c799c978f5f434faa89495991bf92f63c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

Release files / klean-0.1.0-py3-none-any.whl

Download URL klean-0.1.0-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
761d599041e4a28f458cbb3874c433e3505f77eba4a8e890319ca91153bcc0f9
BLAKE2b-256 checksum
How to use checksums
0644c7da4d0675e1d1e97660b3f9d0f2ed6f149514b0a7a8a54cac05003a9790
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

Security for klean 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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