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
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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| canvasgrader-1.0.2.tar.gz | 4.1 kB | Without provenance | Details for canvasgrader-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| canvasgrader-1.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for canvasgrader-1.0.2-py2.py3-none-any.whl |
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 |
Security for canvasgrader 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.