Skip to content

bouness/crpy_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crpy - Comment Removal for Python

License: MIT

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.

Features

  • 🚀 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

Installation

Requirements

  • Python 3.7+
  • PySide6 (for GUI)

Install from PyPI

pip install crpy-tools

Example usage

# using GUI:
crpy

# show help:
crpy -h

# using CLI to remove all comments:
crpy script.py -o script_min.py -d

About

Comment Remover for Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages