All projects

VirtualPython

Command line helpers for automatically using python virtual environments with zero friction.

virtualpython logo

virtualpython gives simple wrappers around the regularly used python tools pythonand pip to allow them to automatically understand that they are inside of a virtual environment directory, and then behave as if that virtual environment has been activated without the hassle of activating and deactivating it.

source ./venv/bin/activate
pip install -r requirements.txt
python my_python_code.py
deactivate

becomes

vpip install -r requirements.txt
vpython my_python_code.py

Additionally if you want to run an executable downloaded inside of the virtual environment you can execute it with

vbin someexecutable --with some --args