sfu-cli
lets you fuzzily interact with the SFU Outlines REST
API to retrieve a course outline in
JSON.
display.py
is a helper that displays the course outline in your terminal with
rich formatted text.
- Dependencies
- See
requirements.txt
- See
python -m venv venv
./venv/bin/pip install -r requirements.txt
./sfu-cli --help
The requested outline will be printed as output after the course section is
selected, as well as saved in the ./.cache/
directory using the following
structure (same as API structure):
./.cache/<year>/<term>/<dept>/<num>/<section>/outline.json
./venv/bin/python display.py [JSON_OUTLINE_FILE]
This can be called directly by sfu-cli
with the -p, --pretty
flag (the
python virtual environment must be setup exactly as shown
above).