A tool to clean comment-out code in Python.
Project description
Python Comment-out Code Cleaner CLI
Python Code Cleaner CLI (pycleancodecli) is a tool designed to clean up Python files by removing comments and unnecessary whitespace. It helps in maintaining a cleaner, more readable codebase.
Prerequisites
- Python 3.6 or higher
Installation
- Install directly from PyPI:
pip install pycleancodecli
Usage
To use pycleancodecli, run the following command in your terminal:
pycleancodecli FILE_PATHS [OPTIONS]
Options:
--dry-run: Display the changes without applying them.
Example:
pycleancodecli example.py --dry-run
This will clean up example.py and show the cleaned code without overwriting the original file.
Project Structure
- pycleancodecli: Main project folder.
- cleaner: Contains the core cleaning functionality.
- tests: Contains test cases for the tool.
- test_cleaner.py: Test script for the cleaner module.
- setup.py: Setup script for packaging and distribution.
Improvements
Future improvements and features can include:
- Enhanced comment detection and removal logic.
- Options for different cleaning levels based on user preference.
Feel free to contribute to the project by submitting pull requests or opening issues for bugs and feature requests on GitHub.
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
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 pycleancodecli-0.2.tar.gz.
File metadata
- Download URL: pycleancodecli-0.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a27805c35f918bc54debe8dfc42e5d66025e7fcb9d24416213f0d3c89a75ec39
|
|
| MD5 |
f1e7c8021b6362b7f4bbdafaa1c87b44
|
|
| BLAKE2b-256 |
38c7fe59b62723703c8af1e852d1db4907ac004d41224df897ec4c2b89cc45a6
|
File details
Details for the file pycleancodecli-0.2-py3-none-any.whl.
File metadata
- Download URL: pycleancodecli-0.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d73b6dd7a833271c9d49fd446d97203a86c340e685b783ddb857f5da52c3316
|
|
| MD5 |
d2479d48c91f62ccba9fea04c4a45f2f
|
|
| BLAKE2b-256 |
586942d605ca6b7acd5f22ab1d78334e54e03970f8c4d0bd2ad093c90e63e6d1
|