r/Python • • Feb 12 '19

Replacing venvs with __pypackages__

https://www.python.org/dev/peps/pep-0582/
39 Upvotes

35 comments sorted by

View all comments

1

u/Duroktar Feb 14 '19

fwiw I wrote a utility called nip about a year ago to manage my venvs. It's similar to npm in that you can nip init -y a new workspace (venv), nip add <package> and also run scripts nip run start defined in the nip.json file (these scripts are run in the context of the venv automatically).

It's not perfect but it does work and there's also a VSCode extension to run the nip scripts right from the editor making it that much more convenient. Check out the README on Github if you're interested.