DEV Community

Tlaloc-Es
Tlaloc-Es

Posted on

1

KillPy: The Tool to Clean Up Your Python Virtual Environments 🧹🐍

KillPy is a simple tool designed to locate and delete .venv directories from your projects. It can help you quickly clean up unnecessary virtual environments and save disk space.

Features

  • Automatic search: Finds all .venv directories recursively within a specified path.
  • Safe deletion: Lists the directories to be deleted and asks for confirmation.
  • Fast and lightweight: Minimal dependencies for quick execution.

Installation

To install killpy, use pip:

pip install KillPy
Enter fullscreen mode Exit fullscreen mode

Usage

Run the following command to search and delete .venv directories:

killpy
Enter fullscreen mode Exit fullscreen mode

Select the .venv that you want to delete and press enter.

KillPy in action

Give It a Star! 🌟

If you found KillPy useful, I’d really appreciate it if you could give the repository a star on GitHub! 🌟 It helps others discover the project and shows your support for its development.

GitHub logo Tlaloc-Es / KillPy

List any .venv directories 🐍 in your system and check how much space they are using. You can then select which ones to delete to free up space 🧹

Downloads Stars

β–—β–– β–—β––β–„ β–ˆ β–ˆ β–—β–„β–„β–– β–„   β–„              ____
β–β–Œβ–—β–žβ–˜β–„ β–ˆ β–ˆ β–β–Œ β–β–Œβ–ˆ   β–ˆ           .'`_ o `;__
β–β–›β–šβ–– β–ˆ β–ˆ β–ˆ β–β–›β–€β–˜  β–€β–€β–€β–ˆ .       .'.'` '---'  '
β–β–Œ β–β–Œβ–ˆ β–ˆ β–ˆ β–β–Œ   β–„   β–ˆ  .`-...-'.'
                 β–€β–€β–€    `-...-' A tool to delete .venv directories

KillPy in action

Delete .venv Directories

KillPy is a simple tool designed to locate and delete .venv directories from your projects. It can help you quickly clean up unnecessary virtual environments and save disk space.

Features

  • Automatic search: Finds all .venv directories recursively within a specified path.
  • Safe deletion: Lists the directories to be deleted and asks for confirmation.
  • Fast and lightweight: Minimal dependencies for quick execution.

Installation PyPI

To install killpy, use pip:

pip install KillPy
Enter fullscreen mode Exit fullscreen mode

Usage

Run the following command to search and delete .venv directories:

killpy
Enter fullscreen mode Exit fullscreen mode

Contributing

Contributions are welcome! If you'd like to improve this tool, feel free to fork the repository and submit a pull…




Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay