viv isn't venv
Find a file
2022-12-19 23:22:23 -06:00
examples add some usage examples for viv 2022-12-19 23:22:23 -06:00
src add initial implementation 2022-12-19 23:12:09 -06:00
.gitignore add build/setup files 2022-12-19 23:11:12 -06:00
.pre-commit-config.yaml add build/setup files 2022-12-19 23:11:12 -06:00
Makefile filter v from version strings 2022-12-19 23:15:56 -06:00
README.md add more general readme info 2022-12-19 23:17:43 -06:00
setup.cfg add build/setup files 2022-12-19 23:11:12 -06:00

Viv isn't venv

Setup

Place this directory on the python path in your rc file.

export PYTHONPATH="$PYTHONPATH:$HOME/.viv/src"

Then in any python script with external dependencies you can add this line.

__import__("viv").activate("click")

Usage

To temove all viv venvs:

viv remove $(viv list -q)

TODO

  • add doc strings to src/viv.py
  • use config file (probably ini or json / could also allow toml for python>=3.11)
  • enable a garbage collection based on time or file existence (configurable)
  • unit tests

Alternatives

  • pipx
  • pip-run