prune
A CLI tool named prune for cleaning Python code.
Installation
pip install prune-cli
Usage
prune <command> [options]
Commands
prune comments- Remove comments from Python filesprune prints- Remove print statements from Python filesprune docstrings- Remove docstrings from Python filesprune asserts- Remove assert statements from Python filesprune logs- Remove logging statements from Python files
Examples
# Remove all print statements
prune prints
# Remove inline comments only (preserve noqa, type:, pragma)
prune comments --default
# Remove all types of comments
prune comments --all
# Remove specific log levels
prune logs --debug --info --error
# Remove all log levels
prune logs --all
# Show per-file details (verbose is default)
prune prints
# Suppress per-file output
prune prints --quiet
Development
This project uses a src-layout packaging structure.
Requirements
- Python >= 3.11
- LibCST
License
MIT License
Metadata
Release files for prune-cli 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prune_cli-0.1.1.tar.gz | 12.1 kB | Without provenance | Details for prune_cli-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prune_cli-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for prune_cli-0.1.1-py3-none-any.whl |
Total release size: 19.7 kB
Release files / prune_cli-0.1.1.tar.gz
| Download URL | prune_cli-0.1.1.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ad1fe72d88c65bfcb4b598a328a6a4184c959a23141f8bb282549676672171c
|
|
BLAKE2b-256 checksum How to use checksums |
a2e6710071ed906f172cfc3399edd4bdd4f147ba50cad9766285b1d7e82a8d50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / prune_cli-0.1.1-py3-none-any.whl
| Download URL | prune_cli-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03e4f439fd66f9398fd548c3833de09510b0068f6cf9939fb2a77509901ff275
|
|
BLAKE2b-256 checksum How to use checksums |
4a86338cc23db0865c5aff84a70a91d46d9cff47951b12284fd98a6e8001f046
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for prune-cli 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.