A GUI tool for cleaning up Python virtual environments (venv directories).
Project description
Venv Cleaner
A simple GUI tool for cleaning up old or unused Python virtual environments (venv directories).
How to Use
The easiest way to run Venv Cleaner is using uvx:
uvx venvcleaner
You can also specify a target directory:
uvx venvcleaner /path/to/target-directory
If you are using Linux, you will need to build wxPython via pip. Please see Building wxPython for Linux via Pip and wxWidgets for GTK installation.
Alternatively, on some Linux systems, you can use the -f (--find-links) option to specify the download URL of wxPython package:
# for Ubuntu 24.04
uvx -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04 venvcleaner
If you want to install to the persistent environment:
uv tool install venvcleaner@latest
# for Ubuntu 24.04
uv tool install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04 venvcleaner@latest
# run Venv Cleaner
venvcleaner
Features
- Scans the target directory for virtual environments (
.venvdirectories containing apyvenv.cfgfile). - You can change or refresh the target directory with the Select... or Refresh buttons.
- Choose which venvs to clean using the selection list.
- Select All selects all detected venvs.
- Select None clears the selection.
- Copy Paths copies the paths of selected venvs to your clipboard. You can paste them into a terminal to run shell commands manually. For example:
ls /path/to/project-1/.venv "/path/to/project 2/.venv"
rm -r /path/to/project-1/.venv "/path/to/project 2/.venv"
- Cleanup Venvs deletes the selected venv directories. Before using this button, you must check the agreement box:
I agree to take responsibility for my actions.
License
This software is distributed under the terms of the MIT License.
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
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 venvcleaner-0.1.6.tar.gz.
File metadata
- Download URL: venvcleaner-0.1.6.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5972b6e00977fd1871bc472fa660629442b1e2492444aad2d95ff1133c2bbf18
|
|
| MD5 |
c2e42088a992be9331d9c1a9c854bdbe
|
|
| BLAKE2b-256 |
99d0ed12af86a2f3a95a83f70ffcd2336ee0eae8fe37d55abf7484b6ccab346c
|
File details
Details for the file venvcleaner-0.1.6-py3-none-any.whl.
File metadata
- Download URL: venvcleaner-0.1.6-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f97d77f4bc8c62c3e8e23db9172821546eb6ada51aff56f0890b09684c0b4474
|
|
| MD5 |
8d86598a46a768240796f4efa1b6d68d
|
|
| BLAKE2b-256 |
d971b743b40af003ec228da757d4914946e77fa38c1326ff46d2862505333f21
|