pykubegrader.submit namespace#

Submodules#

pykubegrader.submit.final_submission module#

pykubegrader.submit.final_submission.delete_completed_assignment(assignment: str, assignment_type: str, token: str, week_number: int, admin_user: str, admin_pw: str) None[source]#
pykubegrader.submit.final_submission.final_submission(assignment: str, assignment_type: str, token: str, week_number=None) None[source]#

Mark a student as complete for an assignment

pykubegrader.submit.final_submission.final_submission_payload(assignment: str, assignment_type: str, token: str, week_number=None) dict[source]#

pykubegrader.submit.submit_assignment module#

pykubegrader.submit.submit_assignment.call_score_assignment(assignment_title: str, notebook_title: str, file_path: str = '.output_reduced.log') Dict[str, str][source]#

Submit an assignment to the scoring endpoint.

Parameters:
  • assignment_title (str) – Title of the assignment

  • notebook_title (str) – Title of the notebook

  • file_path (str) – Path to the log file to upload

Returns:

JSON response from the server

Return type:

dict

Raises:
pykubegrader.submit.submit_assignment.get_credentials()[source]#

Fetch the username and password from environment variables.

pykubegrader.submit.submit_assignment.submit_assignment(assignment_title: str, notebook_title: str, file_path: str = '.output_reduced.log') None[source]#

Synchronous wrapper for the call_score_assignment function.

Parameters:
  • assignment_title (str) – Title of the assignment.

  • file_path (str) – Path to the log file to upload.