Venv
Helpers for virtualenv and virtualenvwrapper
Install / Use
/learn @bbengfort/VenvREADME
virtualenv cheatsheet
Helpers for virtualenv and virtualenvwrapper.
Setup
- Install virtualenv and virtualenvwrapper with pip or your preferred method.
- Copy the enviornment variables from
bash_environto your.profileor.bashrcor.bash_profile - Source your profile (or exit and reopen your terminal)
Read
Check out the cheatsheet for recommendations on how to use these helpers.
Python Package setup
This is my normal method to setup a Python project:
- Create a directy in
$PROJECT_HOMEfor my project lets name it "project" - `cd $PROJECT_HOME/project
- git init
- touch .gitignore
- venv.init -a $(pwd) project
- mkdirs docs tests project bin
- touch tests/init.py
- touch project/init.py
- touch setup.py
- pip install (whatever you need)
- pip freeze > requirements.txt
- touch README.md
- touch LICENSE
At this point you should have everything you need to get started (commit your initial structure and go!)
View on GitHub75/100
Security Score
Audited on Jul 20, 2020
No findings
