Skip to main content

canvasgrader

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

  1. Generate a new Access Token at https://<canvas-installation>/profile/settings

  2. Grab your course ID from the web interface: https://<canvas-installation>/courses/<course-id>

  3. 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

Metadata

Release files for canvasgrader 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for canvasgrader 1.0.2
File Size Uploaded
canvasgrader-1.0.2.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for canvasgrader 1.0.2
File Interpreter ABI Platform
canvasgrader-1.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 8.7 kB

Release files / canvasgrader-1.0.2.tar.gz

Download URL canvasgrader-1.0.2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7fd3e9bf7a36b8d510b0b789de8bcc79e3e028723f98fe11b4613517ebfe9414
BLAKE2b-256 checksum
How to use checksums
4623c94dc9f563c66f6f95b94152f10694bfea9d39432ad2137cda4dd64ab95c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / canvasgrader-1.0.2-py2.py3-none-any.whl

Download URL canvasgrader-1.0.2-py2.py3-none-any.whl
Size 4.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
67c2c2e5ff402ae36a93b10a7cb7a0da862e8789b17acc756f8d30962a1af00f
BLAKE2b-256 checksum
How to use checksums
0f3ed92cf2642d9f5a60613bcadb8167277ebbabb93548e29f7438a9e0e9405d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page