https://github.com/pylipp/venv-burrito
Minimalistic set of convenience functions for managing Python virtual environments
https://github.com/pylipp/venv-burrito
bash bats python shell venv virtualenv-environment virtualenvwrapper
Last synced: about 2 months ago
JSON representation
Minimalistic set of convenience functions for managing Python virtual environments
- Host: GitHub
- URL: https://github.com/pylipp/venv-burrito
- Owner: pylipp
- Created: 2019-07-14T10:59:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-31T12:10:55.000Z (over 5 years ago)
- Last Synced: 2025-02-03T14:51:48.295Z (4 months ago)
- Topics: bash, bats, python, shell, venv, virtualenv-environment, virtualenvwrapper
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/pylipp/venv-burrito)
# Deprecated
This project is deprecated in favor of a [`virtualenvwrapper` fork](https://github.com/pylipp/virtualenvwrapper/tree/use-venv-module).
## `venv-burrito`
Minimalistic set of convenience functions for managing Python virtual environments using the `venv` module. Inspired by `virtualenvwrapper`
### Usage
Download the `functions.bash` script and source it in your shell.
The following functions are now available:
- `mkvirtualenv VENV-NAME`
- `workon VENV-NAME`
- `lsvirtualenv`
- `cdvirtualenv`
- `rmvirtualenv VENV-NAME`Their behavior is almost equivalent to the behavior of the eponymous `virtualenvwrapper` functions.
### Testing
Running the tests requires [`bats`](https://github.com/bats-core/bats-core#load-share-common-code) to be installed.
From the repository root, execute
bats test/functions.bats
### Why not `virtualenvwrapper`?
It's an excellent collection of scripts. However it wraps `virtualenv` which - when creating virtual environments - copies the system Python binary to the virtual environment, leading to drawbacks discussed [here](https://stackoverflow.com/a/47559925). Using the built-in `venv` module is more robust.
Additionally, I'm only using five of the many functions provided by `virtualenvwrapper`.