crpy is a powerful tool for removing comments from Python files while preserving code structure and indentation. It offers both command-line interface (CLI) and graphical user interface (GUI) options for maximum flexibility.
- 🚀 Remove all types of Python comments (#-style)
- 📝 Optionally remove docstrings
- 📁 Process single files or entire directories
- 🔁 Recursive directory processing
- 🎨 Clean code formatting with preserved indentation
- 💻 CLI for scripting and automation
- 🖥️ GUI for easy interactive use
- 📊 Progress reporting and logging
- Python 3.7+
- PySide6 (for GUI)
pip install crpy-tools# using GUI:
crpy
# show help:
crpy -h
# using CLI to remove all comments:
crpy script.py -o script_min.py -d