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.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:
- Returns:
JSON response from the server
- Return type:
- Raises:
RuntimeError – If server returns a client or server error
FileNotFoundError – If the log file doesn’t exist
- pykubegrader.submit.submit_assignment.get_credentials()[source]#
Fetch the username and password from environment variables.