tasks.cli
¶
CLI for validation workflows.
Module Contents¶
Functions¶
|
Format the description of a parameter. |
|
Main function. |
-
tasks.cli.
WORKFLOW_TASKS
¶
-
tasks.cli.
LOGGING_LEVELS
= ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']¶
-
tasks.cli.
LUIGI_PARAMETERS
= ['workers', 'log_level']¶
-
tasks.cli.
format_description
(param, default_str='{doc} Default value: {default}.', optional_str='(optional) {doc}', type_str='({type}) {doc}', choices_str='{doc} Choices: {choices}.', interval_str='{doc} Permitted values: {interval}.', param_no_value=None)¶ Format the description of a parameter.
-
class
tasks.cli.
ArgParser
¶ Class to build parser and parse arguments.
-
property
parser
(self)¶ Return the root parser.
-
parse_args
(self, argv)¶ Parse the arguments, and return a argparse.Namespace object.
-
property
-
tasks.cli.
main
(arguments=None)¶ Main function.