autograder.run.auth

Alias for autograder.cli.users.auth.

usage: python3 -m autograder.run.auth [-h] [--version] [--server SERVER]
                                      [--user USER] [--pass PASS]
                                      [--testing-mode]
                                      [--format {json,table,text}]
                                      [--include-extra-fields]
                                      [--pretty-headers] [--skip-headers]

Authenticate as a user.

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.

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.users.auth`.
 1"""
 2Alias for `autograder.cli.users.auth`.
 3"""
 4
 5import argparse
 6import sys
 7
 8import autograder.cli.users.auth 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.