Skip to main content

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

screenshot

Features

  • Scans the target directory for virtual environments (.venv directories containing a pyvenv.cfg file).
  • 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

venvcleaner-0.1.7.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

venvcleaner-0.1.7-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file venvcleaner-0.1.7.tar.gz.

File metadata

  • Download URL: venvcleaner-0.1.7.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for venvcleaner-0.1.7.tar.gz
Algorithm Hash digest
SHA256 1fc9ef0cf45845c6a5dd90d960f558894f12b40b98d9ac82085fa078a57ca2bb
MD5 99a6b0de6bdf673c57ea67bca76f6ed5
BLAKE2b-256 c2555365bd7e60ff68137baf017a9ad404f128031445c84a99f39349f9e00db2

See more details on using hashes here.

File details

Details for the file venvcleaner-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: venvcleaner-0.1.7-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.19

File hashes

Hashes for venvcleaner-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1de8e0c8a853a37a702f56a6c956feef1cd79da5f09c7e3adf41869aa3d02d82
MD5 0543716e0cfe4696a7a0956a7e6a4d67
BLAKE2b-256 c8f3a177d7d54f6d50addc9e6e078f36a2aa9589dd80de6f410c59e1ff4098e3

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