This command line utility tool allows you to create python virtual environements with dependencies you want already installed easily!
template.txt
file containingEssentially, the process of virtual environments creation and installation of packages is done in the bash script .createnv.sh
.
The bash script is called as a subprocess in the python file.
Click
is used to provide a CLI interface and collect arguments from the command line to pass into bash script when
its being called.
pip install genenv
template.txt
file exits, template.txt
file will be ignored.template.txt
file or package name(s) are provided on command line as arguments, you'll recieve prompt if you stilltemplate.txt
file , do not provide any package names after you specify environment namemeseeks
with django and flask installedgenenv -n meseeks flask django
meseeks
with dependencies specified in template.txt
filetemplate.txt
in same directory you will run commandgenenv -n meseeks
It detects and reads contents template.txt
file
then installs package names specified inside.
If template.txt
file is available and empty, environemnt is created with no installed dependencies.
pluto
make sure youre in directory that venv is located then run
genenv -n pluto numpy
genenv --help
to bring up help menuUsage: genenv [OPTIONS] [DEPENDENCIES]...
specify package names after name flag to install them,read documentation for
how that works
Options:
-n, --name TEXT provide name to be used for your virtual environment
[required]
--help Show this message and exit.
Clone this repository to your local machine.
Create a virtual environment for your project and activate it. Install all dependencies from requirements.txt file.
In the root directory of the project, develop the project locally from the setup configuration.
python3 setup.py develop
genenv