pyaota.cli module

Command-line interface for pyaota: build and grade multiple-choice exams.

pyaota.cli.load_args_from_yaml(filepath)[source]

Load args from YAML

Parameters:

filepath (str) – The path to the YAML file to load the args from.

pyaota.cli.main(argv=None)[source]

Entry point for the pyaota command-line interface.

Return type:

int

pyaota.cli.save_args(args, filepath)[source]

Save argparse namespace including subcommand to YAML

Parameters:
  • args (argparse.Namespace) – The argparse namespace to save.

  • filepath (str) – The path to the YAML file to save the args to.

pyaota.cli.setup_logging(args)[source]