autograder.run.peek

Alias for autograder.cli.courses.assignments.submissions.fetch.user.peek.

usage: python3 -m autograder.run.peek [-h] [--version] [--server SERVER]
                                      [--user USER] [--pass PASS]
                                      [--course COURSE]
                                      [--assignment ASSIGNMENT]
                                      [--target-email TARGET_EMAIL]
                                      [--target-submission TARGET_SUBMISSION]
                                      [--testing-mode]

Get a copy of the grading report for the specified submission.
Does not submit a new submission.

options:
    -h, --help          show this help message and exit
    --version           show program's version number and exit

command-specific options:
    --server SERVER     The URL of the autograder server to communicate with.
    --user USER         The email of the user making this request.
    --pass PASS         The password of the user making this request.
    --course COURSE     The ID of the course to make this request to.
    --assignment ASSIGNMENT
                        The ID of the assignment to make this request to.
    --target-email TARGET_EMAIL
                        The email of the user that is the target of this
                        request (defaults to you). (default: None)
    --target-submission TARGET_SUBMISSION
                        The ID of the submission (default to the most recent
                        submission). (default: None)

testing options:
    --testing-mode      Run as if a test is being run (default: False).

Alias for `autograder.cli.courses.assignments.submissions.fetch.user.peek`.
 1"""
 2Alias for `autograder.cli.courses.assignments.submissions.fetch.user.peek`.
 3"""
 4
 5import argparse
 6import sys
 7
 8import autograder.cli.courses.assignments.submissions.fetch.user.peek as alias
 9
10def main() -> int:
11    """ Get a parser, parse the args, and call run. """
12
13    return alias.run_cli(_get_parser().parse_args())
14
15def _get_parser() -> argparse.ArgumentParser:
16    """ Get a parser for this operation. """
17
18    parser = alias._get_parser()
19    parser.epilog = __doc__.strip()
20    return parser
21
22if (__name__ == '__main__'):
23    sys.exit(main())
def main() -> int:
11def main() -> int:
12    """ Get a parser, parse the args, and call run. """
13
14    return alias.run_cli(_get_parser().parse_args())

Get a parser, parse the args, and call run.