autograder.run.history

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

usage: python3 -m autograder.run.history [-h] [--version] [--server SERVER]
                                         [--user USER] [--pass PASS]
                                         [--course COURSE]
                                         [--assignment ASSIGNMENT]
                                         [--target-email TARGET_EMAIL]
                                         [--testing-mode]
                                         [--format {json,table,text}]
                                         [--include-extra-fields]
                                         [--pretty-headers] [--skip-headers]

Get the most recent scores for this user and assignment.

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)

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

output formatting options:
    --format {json,table,text}
                        The format to display the output as (default: text).
    --include-extra-fields
                        Include uncommon fields in results (default: False).
    --pretty-headers    When displaying headers, try to make them look
                        "pretty" (default: False).
    --skip-headers      Skip headers when outputting results, will not apply
                        to all formats (default: False).

Alias for `autograder.cli.courses.assignments.submissions.fetch.user.history`.
 1"""
 2Alias for `autograder.cli.courses.assignments.submissions.fetch.user.history`.
 3"""
 4
 5import argparse
 6import sys
 7
 8import autograder.cli.courses.assignments.submissions.fetch.user.history 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.