Skip to content

ANDROID4561/stringcleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages