venvprune
An interactive command-line tool for finding Python virtual environments and removing the ones you no longer need.
Requirements and installation
Python 3.9 or newer and an interactive terminal are required. Install from PyPI with:
python -m pip install venvprune
This installs the venvprune command and its questionary dependency.
Usage
venvprune # scan the current directory
venvprune ~/projects # scan a specific directory
venvprune --help
Environments are identified by a pyvenv.cfg file and displayed largest first. Use the arrow keys to navigate, Space to select, A to toggle all, and Enter to continue. Review the selected paths and confirm before deletion. Declining confirmation lets you return to selection or exit.
Deletion is permanent. Selected environment directories and all their contents are removed, not moved to the trash. Review paths carefully and back up anything important. The scan root itself is never deleted, even if it is detected as an environment.
The scan skips symlinked directories and common large or system directories (.git, node_modules, .Trash, .cache, Library, .npm, .next, and __pycache__). Directories named .venv and venv are checked as environment candidates but are not otherwise traversed. The size shown is an estimate based on file sizes, not necessarily disk space that will be reclaimed; inaccessible files may be omitted. Inaccessible directories may also be omitted from scan results.
Development
python -m pip install -e .
python -m unittest discover -s tests -v
License
MIT. The full license is included in the distribution.
Metadata
Release files for venvprune 0.1.0
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 |
|---|---|---|---|---|
| venvprune-0.1.0.tar.gz | 6.5 kB | Without provenance | Details for venvprune-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| venvprune-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for venvprune-0.1.0-py3-none-any.whl |
Total release size: 11.3 kB
Release files / venvprune-0.1.0.tar.gz
| Download URL | venvprune-0.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
237705679eee609e943d860e0a6ccfe8d22d91994fc9d4704cceb60ef46fa7b8
|
|
BLAKE2b-256 checksum How to use checksums |
f85772c96b7c92748efc85ed86132e02abc8c097f227e130f59f89e53a911b97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / venvprune-0.1.0-py3-none-any.whl
| Download URL | venvprune-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9621bbc5ebb68300f0ef3c236abb760e5a33f1c916eee95bfd5fa093914eedce
|
|
BLAKE2b-256 checksum How to use checksums |
213df0e3ea5bb8d97b33c107e74ccbce98683bef4c1c1daa76470f348c845db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for venvprune 0.1.0
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.