/venv.sh

venv simple 4 commands script

Primary LanguageShell

Install

Download to folder in which you whant to have vENV.
vENV will be init in ./venv

wget https://raw.githubusercontent.com/nchekwa/venv.sh/main/venv.sh

Usage

# --- Usage ---
root@linux:/tmp# sh venv.sh 
Usage: venv.sh {create|activate|deactivate|remove}
aliases: 
 * create=init
 * activate=active|run
 * deactivate=remove|deletel|del

# --- Create vENV ---
root@linux:/tmp# sh venv.sh create
Virtual environment created at ./venv

# --- Activate vENV ---
root@linux:/tmp# ./venv.sh active
(venv) root@linux:/tmp#

# --- Deactivate vENV ---
(venv) root@linux:/tmp# deactivate
root@linux:/tmp#

# --- Remove vENV ---
root@linux:/tmp# sh venv.sh remove
Virtual environment removed.