A CLI and GUI tool built with PySide6
Project description
crpy - Comment Removal for Python
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
# show help
crpy -h
# remove all comments from script.py
crpy script.py -o script_min.py -d
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
crpy_tools-0.1.1.tar.gz
(10.3 kB
view details)
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 crpy_tools-0.1.1.tar.gz.
File metadata
- Download URL: crpy_tools-0.1.1.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e7121d31a4bcdfffac068109e6d304476507b6a07568cf949a330ef48ebc516
|
|
| MD5 |
00bc9ce96ee0696c9f8be7862e264011
|
|
| BLAKE2b-256 |
32415ef0fb9493a44f45aed3aceea77d27b8c7035bdddcc1973e65183ece40bf
|
File details
Details for the file crpy_tools-0.1.1-py3-none-any.whl.
File metadata
- Download URL: crpy_tools-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4aeec564d332a93b5043d36a72bc9f7d212f96bc9b22ae4b3e3e3867baed2e6c
|
|
| MD5 |
e1a4c524a56c755a0d4a5329c8456b52
|
|
| BLAKE2b-256 |
59fd1b6ba1af8608eab43d9047a73ad318da56cf423c149e530b96b51eab4f1e
|