Prints to console currently assigned homework.
Displays: class name, assignment name, days left till due date, day of the week and link to the assignment's page
-
Run the following commands after cloning the repo
cd Homework chmod +x install/install.sh ./install/install.sh
-
Create an API key and add the key to settings/settings.json
-
Add canvas url to settings/settings.json. Example url will look something like xxxx.instructure.com, where xxxx is specific to your school canvas.
-
On canvas select a class and check the browsers url for class number. Add these class numbers (as ints) to settings/settings.json
-
Run hw.py
python3.6 hw.py
-
Create directory .scripts in home directory.
-
Add the following to your .bashrc file
export PATH=$PATH:~/.scripts
-
Create the command you want to run
cd ~/.scripts touch hw chmod +x hw
-
Edit hw file and add
!/bin/bash python3.6 path/to/source/hw.py $1