Find and delete built environments
Project description
rmvenv
Command line app to list and delete build environments. This only leaves your source code and files to rebuild the environment, so they can be easily backed up.
This software can identify build environments of multiple languages
directory, as well as Java's .class files. If deleted, this
can save gigabytes of space, and they can be easily recreated and the
packages re-downloaded and compiled when the code needs to run again. This
software can also show and delete files and folders over a given size.
The identification of build directories is done via regular expressions in a
rmvenv_config.toml file in your .config directory. This config looks like
this:
# The default size items are 'marked' when using the '--size' or '-s' flag
default_max_size = "100m"
# if a base filename matches one of these regexes, it'll be marked`
marked_files = [
'\*.class' # Java
]
# Ignore any files in a directory matching these regexes
ignored = [
'\.git'
]
[project.Python]
# If a directory contains a file who's able that matches this regex...
marker = '^((requirements\.txt)|(pyproject.toml))$'
# then mark any items who's name matches this expression, either for printing
# or deleting
marked = '.*venv'
Comes out-of-the-box with C++, C#, Java, Python, and Rust. Add new build environments with as needed!
Installation
Requirements
- Python >= 3.10
- pip
- Linux
Steps
Open the command line and run
pip install rmvenv
On some Linux distributions pipx may have to be used:
pipx install rmvenv
Example uses
On the command line, to list build environments in the currently directory, simply use:
rmvenv
To delete (interactively) build environments, as well as large files and
folders over 1 gigabytes in the folder my_code:
rmvenv -s 1G --delete my_code
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 rmvenv-0.3.0.tar.gz.
File metadata
- Download URL: rmvenv-0.3.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffc28d8cf9b006325c71bcf75ad64326e9c066ddb3eaed2d6434ad076bfc2967
|
|
| MD5 |
40a2d6612b878f2c55eeb3aacb491651
|
|
| BLAKE2b-256 |
3bc65028d17fd5f6f25dd10a229505ff7e614a56fa6733d64a4c770a41eccb3c
|
File details
Details for the file rmvenv-0.3.0-py3-none-any.whl.
File metadata
- Download URL: rmvenv-0.3.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66e6d6a4d5d4543eb87ae885e5ea211feaa0b0bebff734cfa4dab9ece3dbbca5
|
|
| MD5 |
74b819cb8b7667b729fab2cc48683439
|
|
| BLAKE2b-256 |
746e8bc5fb90d8e14a196f999c63a17f43adb58af358762d1b5d368acb7b93d6
|