Virtual ENV / virtualenvwrapper

source bin/activate // activate ENV from ENV directory
deactivate

mkproject /path/to/project // use virtualenvwrapper to create a project

mkvirtualenv /path/to/env
mkvirtualenv -p /usr/bin/python3 // -p to flag which python
setvirtualenvproject /path/to/env /path/to/project // link virtualenv to virtualenvwrapper project
setvirtualenvproject $VIRTUAL_ENV $(pwd) // run from project directory after creating virtualenv

workon /path/to/env // activate

Python3 comes with its own virtualenv called venv
python3 -m venv /path/to/env // create env
python3.6 -m venv /path/to/env // create env specifying python 3.6

Pip

pip install [package]
pip freeze > requirements.txt // add dependencies to requirements.txt
pip install -r requirements.txt // install all dependencies as stated in requirements.txt

SQlite

touch table.db // create db table file
sqlite3 table.db // start sqlite3 session
.databases // list databases
.exit // exit sqlite3
.table // list tables
.schema // list schema

Django

django-admin.py startproject mysite // create new app
python manage.py runserver // run development server
python manage.py collectstatic // collect static files

Ever2simple

ever2simple my_evernote.enex > simplenote.json

evernoteghost

python -B core.py export.enex > import.json