Grading#

class ExportGradesHandler(*args, **kwargs)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/submissions/save.

async put(lecture_id: int, assignment_id: int)[source]#

Exports submissions of an assignment to the csv format.

Parameters
  • lecture_id – id of the lecture

  • assignment_id – id of the assignment

Returns

the csv content

class GenerateFeedbackHandler(*args, **kwargs)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/submissions/{submission_id}/feedback.

async get(lecture_id: int, assignment_id: int, sub_id: int)[source]#

Sends a GET-request to the grader service to generate feedback for a graded submission

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

  • sub_id (int) – id of the submission

class GradingAutoHandler(*args, **kwargs)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/submissions/{submission_id}/auto.

async get(lecture_id: int, assignment_id: int, sub_id: int)[source]#

Sends a GET-request to the grader service to autograde a submission

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

  • sub_id (int) – id of the submission

class GradingManualHandler(*args, **kwargs)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/submissions/{submission_id}/manual.

async get(lecture_id: int, assignment_id: int, sub_id: int)[source]#

Generates a local git repository and pulls autograded files of a submission in the user directory

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

  • sub_id (int) – id of the submission

class PullFeedbackHandler(*args, **kwargs)[source]#

Tornado Handler class for http requests to /lectures/{lecture_id}/assignments/{assignment_id}/submissions/{submission_id}/pull/feedback.

async get(lecture_id: int, assignment_id: int, sub_id: int)[source]#

Generates a local git repository and pulls the feedback files of a submission in the user directory

Parameters
  • lecture_id (int) – id of the lecture

  • assignment_id (int) – id of the assignment

  • sub_id (int) – id of the submission