Script I used to track student late days when I was a TA for CSE 312 at UW
Setup
- Make sure you have a spreadsheet in your google drive with Pset 1 late days in the format "email, late days used" (with a header row)
- Copy the spreadsheet id (can be found in the url of the spreadsheet) and replace the SPREADHSHEET_ID variable in the python script.
- Enable the Google Sheets API (https://developers.google.com/workspace/guides/enable-apis)
- Get the credentials file from the Google Cloud Platform Console, place it in the top level of the repository, and name it "credentials.json"
- Run
pip install -r requirements.txt
- Download the relevant Pset grades files from Gradescope; these will contain the lateness of the submissions (some file names are hardcoded into the script).
- Run the script as
./update_late_days.py <pset_num>
. If this is the first time running the script, you may have to login to the relevant Google account. - If everything worked correctly, you should have a new sheet tab in your spreadsheet.