Simple grading interface with the Canvas API
Project description
# canvasgrader
## Usage:
1. Generate a new Access Token at `https://<canvas-installation>/profile/settings`
1. Grab your course ID from the web interface: `https://<canvas-installation>/courses/<course-id>`
1. Choose a [key] by which you want to identify students
```python
>>> from canvasgrader import CanvasGrader
>>> 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,
})
```
[key]: https://canvas.instructure.com/doc/api/file.object_ids.html
## Usage:
1. Generate a new Access Token at `https://<canvas-installation>/profile/settings`
1. Grab your course ID from the web interface: `https://<canvas-installation>/courses/<course-id>`
1. Choose a [key] by which you want to identify students
```python
>>> from canvasgrader import CanvasGrader
>>> 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,
})
```
[key]: https://canvas.instructure.com/doc/api/file.object_ids.html
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
canvasgrader-1.0.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for canvasgrader-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5fffb7d83a093d8479a43768f95bc66eecfdee3881b9b4af650552e53b92f9f |
|
MD5 | 28b91f483656afa4440c3329526f9b2b |
|
BLAKE2b-256 | 033fff11425a62e638144b70952a746f7285134eb0ddff544da248cb64f4243d |