- Python - download
- VS Code - download
- install python plugin
- go to settings and set autosave
- set the CMD prompt for windows users (unless you want to use powershell)
- see setup_environment folder for JSON settngs
- W3 Schools
- Real Python
- Python Reference Documents
- Recommended books and sites
- Write Test Example
- Write Flask Example
- Write Flask RESTPlus expample
Installation of Python 3.6 or higher with 3.7 recommended
- Windows Install
- Windows alternate of using Window 10 store version. This is not tested, but should work.
- Mac OSX Install)
- Mac OSX comes with legacy Python 2.7, but you will need to install Python 3.6 or higher. I don't use a Mac
- Linux - most distributions come with Python 3 pre-installed. Ubuntu 18.04 has Python 3.6 installed. Linux distributions can be tied to specific versions and not easily upgradeable.
- Hello World
- Run a python script
- Windows "python your-file-name.py"
- OSX or Linux "python3 your-file-name.py"
- Run a python script
- Basic Math
- Variables
- Strings
- Print(“Hello all {} of you.”.format(5)
- Print(f(“Hello all {aVar} of you.”)
- Python 3.6 or higher
- Functions
- For Loop
- Count
- Append a dictionary
- Pass variable to Function
- Simple IF, ELIF, Else statement
- For Loop
- Import statement
- Read a CSV
- Write to a CSV
-
What is an API?
- GET (Read)
- POST (create), PUT (update), DELETE (delete)
- More detailed information here
- GET (Read)
-
JSON Data - JavaScript Object Notation
-
Windows:
- pip install virtualenv
- virtualenv env
- env\scripts\activate
- pip install virtualenv
-
OSX:
- pip3 install virtualenv
- virtualenv env
- source env/bin/activate
- pip3 install virtualenv
-
Install Requirements
- pip/pip3 install -r requirements.txt
-
Using Python Requests to fetch data from an api
-
Print result JSON value
-
For loop over JSON