Dpv
dpv is an alternative to pyenv-virtualenv and virtualenvwrapper
Install / Use
/learn @caioariede/DpvREADME
dpv (dee-pee-vee) is a dead simple alternative to pyenv-virtualenv and virtualenvwrapper
<img src="https://github.com/caioariede/dpv/assets/55533/7c1a5baa-8727-4417-80f2-41cdcead61d6" alt="Bem-te-vi, Great Kiskadee, Pitangus sulphuratus, credit of Helena Stainer" title="Bem-te-vi, Great Kiskadee, Pitangus sulphuratus, credit of Helena Stainer">Why?
- It's simple. Just type
dpvordpv <python version>and get the work done. - It's pure shell and POSIX-compliant tested with: ash bash dash ksh zsh
- It's built to get out of the way!
How?
Think of dpv as an interface for whaterver of these tools you have installed: uv, pyenv, brew
It will automatically pick the one that is available and use it for the job.
Installation
- Download
sh -c 'curl -fsSLo $1 https://github.com/caioariede/dpv/releases/download/v0.14.0/dpv && chmod +x $1' -- /usr/local/bin/dpv
Optional: in case your /usr/local/bin directory is not writable yet, see.
sudo chown -R $(whoami) /usr/local/bin
sudo chmod -R u=rwX,go=rX /usr/local/bin
- Configure — Add the following line to your .bashrc, .zshrc, etc
eval "$(dpv internal-load-shell)"
Check out more details in the installation instructions
Usage
Take a look at the dpv cheatsheet - or for more detailed instructions, check the documentation
