Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MAHines/CanvasMAH
Classes and scripts for working with Canvas and Gradescope
https://github.com/MAHines/CanvasMAH
canvas canvas-api canvas-lms gradescope
Last synced: 25 days ago
JSON representation
Classes and scripts for working with Canvas and Gradescope
- Host: GitHub
- URL: https://github.com/MAHines/CanvasMAH
- Owner: MAHines
- Created: 2021-04-06T18:59:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-02T17:15:17.000Z (about 3 years ago)
- Last Synced: 2024-01-21T21:17:52.683Z (10 months ago)
- Topics: canvas, canvas-api, canvas-lms, gradescope
- Language: Python
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CanvasMAH – Scripts for working with Canvas and Gradescope
This is a work in progress.
### mahCanvas.py
Class for accessing Canvas using the CanvasAPI from UCFopen### WatermarkReports.py
Usage: python WatermarkReports gradebook.csv submissionsFolderThis script prepares lab report submissions downloaded from Canvas for Gradescope upload.
– Converts any .docx files to .pdf
– Finds the length of the longest pdf
– Gets student ID from Canvas filename, matches to student name in gradebook, and adds student name at top of first page
– Adds vertical page numbers to both sides of each page to help Gradescope auto-assign pages.
– Adjusts all pdf's to the same number of pages to help Gradescope auto-assign pages.
– Produces file Outline.pdf which is used for preparing assignment in GradescopeThis script requires the file 'Watermark.pdf' to be in the working directory. This file consists
of a _scanned_ set of pages with numbers running down the right and left hand sides. It is
important that this be a _scanned_ file for Gradescope matching. A pdf file with text does not work.
I tried just having the numbers run down only the right hand side, but Gradescope would not auto-recognize
this type of watermarking.This script assumes that the files to be processed are in the directory passed as the argument
submissionsFolder. The script will only handle .docx and .pdf files. Any other files will
be deleted with no warning.Some pdf files do not watermark properly. These files appear to have an opaque white background behind
the text. A scanned file would probably not watermark correctly either.### CombineGradescopeCSVs.py
Usage: python CombineGradescopeCSVs.pyThis script reads in all of the Gradescope data from all of the csv's in the cwd except 'allGrades.csv,'
then combines these data into a single csv containing all of the grades, 'allGrades.csv' The script
also calculates a total grade for each experiment that has a graded report. The processing is done in pandas.