Skip to main content

A CLI and GUI tool built with PySide6

Project description

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

# show help
crpy -h

# remove all comments from script.py
crpy script.py -o script_min.py -d

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crpy_tools-0.1.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

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

Hashes for crpy_tools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7e7121d31a4bcdfffac068109e6d304476507b6a07568cf949a330ef48ebc516
MD5 00bc9ce96ee0696c9f8be7862e264011
BLAKE2b-256 32415ef0fb9493a44f45aed3aceea77d27b8c7035bdddcc1973e65183ece40bf

See more details on using hashes here.

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

Hashes for crpy_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4aeec564d332a93b5043d36a72bc9f7d212f96bc9b22ae4b3e3e3867baed2e6c
MD5 e1a4c524a56c755a0d4a5329c8456b52
BLAKE2b-256 59fd1b6ba1af8608eab43d9047a73ad318da56cf423c149e530b96b51eab4f1e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page