txtcleanen
txtcleanen is a simple Python package for cleaning English text by removing HTML tags, URLs, emojis, numbers, punctuation, and extra whitespace for Natural Language Processing task.
Features
- Remove HTML tags
- Remove URLs
- Remove emojis
- Remove digits and punctuation
- Normalize Unicode text
- Compact multiple spaces into one
Installation
pip install txtcleanen
Example
import txtcleanen
text = "Hello <b>World!</b> Visit https://example.com now!"
clean_text = txtcleanen(text)
print(clean_text)
# Output: "Hello World Visit now"
Metadata
Release files for txtcleanen 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| txtcleanen-1.0.0.tar.gz | 2.7 kB | Without provenance | Details for txtcleanen-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| txtcleanen-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for txtcleanen-1.0.0-py3-none-any.whl |
Total release size: 5.9 kB
Release files / txtcleanen-1.0.0.tar.gz
| Download URL | txtcleanen-1.0.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a08a89db8320859549a703429a78fa34c5eb82f0f833bed022a4c980a3451d8
|
|
BLAKE2b-256 checksum How to use checksums |
46591248952ffaa9001bd2764217b9c1e0e9d1b931e1202ee69e5ccf50fd1aed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Release files / txtcleanen-1.0.0-py3-none-any.whl
| Download URL | txtcleanen-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0cbcfc51b582d57082a45732d821d0bb9485557694cec51cd6752f78592c23c2
|
|
BLAKE2b-256 checksum How to use checksums |
98b1197cfb3607e51967f8152a0e041950c2d26516f293831f58531ffe63f23b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Security for txtcleanen 1.0.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.