A lightweight Python utility to clean special characters from text inputs with built-in input validation and error handling.
Project description
stringcleaner
A lightweight Python utility to clean special characters from text inputs — with built-in input validation and error handling.
🚀 Features
- ✅ Removes all special characters, keeping only letters, numbers, and whitespace
- ✅ Validates input to ensure it's a non-empty string
- ✅ Graceful error handling using decorators
- ✅ Minimal and production-friendly codebase
🧪 Example
from stringcleaner import clean_text
result, error = clean_text("Hello! @2025 ✨ World??")
if error:
print("Error:", error)
else:
print("Cleaned:", result)
Output:
Cleaned: Hello 2025 World
🛠 Installation
This package is not yet published to PyPI. To install locally:
git clone https://github.com/ANDROID564/stringcleaner
cd stringcleaner
pip install .
📜 License
This software is distributed under the
📄 stringcleaner – Custom Non-Commercial Software License
See LICENSE for full terms.
🤝 Contributing
This repository is currently closed for commercial contributions.
Feel free to fork and use for personal, research, or academic purposes.
📫 Contact
For commercial use or collaboration inquiries, reach out to:
📧 tanveermustafa94@gmail.com
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 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
File details
Details for the file stringcleaner-0.1.1.tar.gz.
File metadata
- Download URL: stringcleaner-0.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f474a7f2ce583ece6eb463236f8f7516ae96bde730d35799510daa28f15f90d
|
|
| MD5 |
f68301059b1b1981cd638b6397e2de91
|
|
| BLAKE2b-256 |
46e1a9534cea9de7b43ae5596e6c929c460ef0b98b8201ca95afddcdfba4325e
|
File details
Details for the file stringcleaner-0.1.1-py3-none-any.whl.
File metadata
- Download URL: stringcleaner-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a972e4ab41a59c158a0ae713c9700cd9dea6a27ad0523e75be4aed6bd596bc3
|
|
| MD5 |
5994ae3ee0653153f0a4fcd9ce994086
|
|
| BLAKE2b-256 |
880366eb7f7d7ada09cc5b66f1d4fdd72587121de8261e86b1d0eef60ab6ab78
|