Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.36 KB

README.md

File metadata and controls

41 lines (27 loc) · 1.36 KB

Lab grading

Environment

First, you need to install a couple of packages that are listed in requirements.txt file. You can install them locally by running:

pip3 install -r requirements.txt

Configuration

In order to run the script, you need to configure some files in this folder.

Update the course-registers.json file and replace the strings "TODO" with the IDs of the registers from the courses you teach. You can find the ID in the URL of the spreadsheet. More information can be found here.

To interact with Google API you need to generate a OAuth2.0 token. To do this for the first time we need to create a project on the Google Cloud platform. More information about how you can create a new project here.

After you create the project, you must generate an OAuth2.0 token following instructions from here. Download the corresponding json format for it save it in a new file named credentials.json, placed in this folder.

Running

Arguments:

  • -l/--lab <lab_number>
  • -t/--ta <teaching_assistant>
  • -c/--course <course_name> (The same from the course_registers.json)

Example:

Put all grades for second lab:

python3 grade.py -l 2 -c IOCLA