CanvasRobot
Library which uses
Canvasapi
(minimally patched to allow more flexible user search)
to provide a CanvasRobot class for GUI and commandline use.
You can install canvasrobot and urltransform (special edition
to translate video urls in Canvas pages)
using UV
Tip: use brew
to install on macOS and winget
on Windows. Check if the
path is correct, after reopening terminal/Powershell
uv tool install canvasrobot
canvasrobot --help
urltransform --help
Uses
- CanvasAPI
- rich
- rich_click
- keyring (safe store for API key)
- pydal (local database)
- pywebview (HTML reporting)
- [opt] pymemcache (install to add caching canvas interaction)
Used
In word2quiz library.
(Not yet ready for general use...)
Examples
import rich
import canvasrobot as cr
if __name__ == '__main__':
console = rich.console.Console(width=160, force_terminal=True)
robot = cr.CanvasRobot(reset_api_keys=False,
console=console)
robot.create_folder_in_all_courses('Tentamens')
[
]