A lightweight Python utility to clean special characters from text inputs — with built-in input validation and error handling.
- ✅ 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
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
This package is not yet published to PyPI. To install locally:
git clone https://github.com/ANDROID564/stringcleaner
cd stringcleaner
pip install .This software is distributed under the
📄 stringcleaner – Custom Non-Commercial Software License
See LICENSE for full terms.
This repository is currently closed for commercial contributions.
Feel free to fork and use for personal, research, or academic purposes.
For commercial use or collaboration inquiries, reach out to:
📧 tanveermustafa94@gmail.com