Skip to content

bjdawson23/datafun-02-automation

Repository files navigation

datafun-02-automation 44608-80/81 Summer 1 - module 2

CheatSheet: Managing Virtual Environment

For Windows PowerShell (adjust commands if using Mac/Linux):

  1. Create a virtual environment:

    py -m venv .venv
  2. Activate the virtual environment:

    .\.venv\Scripts\activate
  3. Upgrade pip, setuptools, and wheel:

    py -m pip install --upgrade pip setuptools wheel
  4. Install required packages:

    py -m pip install --upgrade -r requirements.txt

CheatSheet: Running Python Scripts

Remember to activate your .venv (and install packages if they haven't been installed yet) before running files. Verify that all external packages imported into a file are included in requirements.txt (and have NOT been commented out).

Run Python scripts using the following commands:

py demo_script.py
py do_stats.py
py draw_chart.py
py greet_user.py

Installed TODO Highlight "highlight TODOs, FIXMEs, and any keywords, annotations"

Every Work Session

Many projects span several days. When starting work again, remember to:

https://github.com/denisecase/pro-analytics-01/tree/main/03-repeatable-workflow

01-git-pull-before-changes.md 02-activate-virtual-environment.md 03-install-dependencies.md 04a-activate-and-run-python-script.md 05-modify-and-test.md 06-git-add-commit-push.md

P2 Datafun

  1. Setup Project folder
  2. Added and import module 1 util to project folder
  3. Added branton_project_setup.py to folder
  4. Used example project setup python file and modified
  5. Used range, list, while and for loops in most functions and logged results
  6. Imported the time module for function 4

CheatSheet: Git Add-Commit-Push

Use the following commands to add, commit, and push changes to Git:

git add .
git commit -m "custom message"
git push -u origin main
git pull origin main
git push

About

Summer 1 - module 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages