Second iteration of a canvas-file-downloader.
Uses a SQLite3 database with a simple dataclass-like ORM.
# Tested on python 3.9
python3.9 -m venv .venv/
# PowerShell
. .\.venv\Scripts\Activate.ps1
# Unix
. ./.venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
Make a config.toml
file on the root directory of this project.
url = 'canvas.com'
access_token = 'Your-Token'
You can get the access token here.
Then, to run the project run run.py
:
python run.py
-
For some reason,
from __future__ import annotations
changes the annotations from
type
s tostr
s. -
To improve this iteration, asynchronous programing should be used.