Simple grading interface with the Canvas API
Project description
This package provides a simple interface with the Canvas grading API to save you the hassle of dealing with the web gradebook.
Installation
pip install canvasgrader
Usage
Generate a new Access Token at https://<canvas-installation>/profile/settings
Grab your course ID from the web interface: https://<canvas-installation>/courses/<course-id>
Choose a key by which you want to identify students
>>> from canvasgrader import CanvasGrader
>>> api_key = 'your access token'
>>> canvas_grader = CanvasGrader(api_key=api_key, base_uri='umich.instructure.com',
course_id=85425, id_key='sis_login_id')
>>> assignment_id = canvas_grader.create_assignment(name='Homework 01',
points_possible=4)
>>> canvas_grader.grade_assignment(assignment_id, {
'mterwil': 4,
})
Alternatively, you may place the API key in a dotfile:
$ echo "my api key" > ~/.canvasgrader
$ chmod 600 ~/.canvasgrader
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file canvasgrader-1.0.2.tar.gz.
File metadata
- Download URL: canvasgrader-1.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fd3e9bf7a36b8d510b0b789de8bcc79e3e028723f98fe11b4613517ebfe9414
|
|
| MD5 |
614ace0d1b81ad5f79835fb8c1d6667c
|
|
| BLAKE2b-256 |
4623c94dc9f563c66f6f95b94152f10694bfea9d39432ad2137cda4dd64ab95c
|
File details
Details for the file canvasgrader-1.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: canvasgrader-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67c2c2e5ff402ae36a93b10a7cb7a0da862e8789b17acc756f8d30962a1af00f
|
|
| MD5 |
30e7b799a0c31d9eb6d1319a5e319de7
|
|
| BLAKE2b-256 |
0f3ed92cf2642d9f5a60613bcadb8167277ebbabb93548e29f7438a9e0e9405d
|