/py_samples

Python Samples

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

py_samples

Python Samples

requirements

setup

  1. Clone project into your projects directory
  2. Create a python3 virtual environment - Venv will isolate module installs to just the project you're working on - Keeps your base install clean, and version locking based on project
  3. Install additional modules from the requirements file

Example

mkdir ~/projects # or code or whatever.
cd ~/projects 
#
# clone
#
git clone git@github.com:TheChuckMo/py_samples.git
#
# virtualenv
#
cd py_samples
python3 -m venv py3venv
source ./py3venv/bin/activate
# --> (py3venv) <--
#
# install additional modules
#
pip install -r requirements
#
# begin testing
#
./get_request.py
vim get_request.py

python virtual environment

# Deactivate py3venv
deactivate

# Activate py3venv
cd projects/py_samples
source ./py3venv/bin/activate

optional