tasks.cli
¶
CLI for validation workflows.
Module Contents¶
Classes¶
Class to build parser and parse arguments. |
Functions¶
|
Format the description of a parameter. |
|
Export the dependency graph of the given task. |
|
Main function. |
Attributes¶
- 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¶
Return the root parser.
- parse_args(argv)¶
Parse the arguments, and return a argparse.Namespace object.
- tasks.cli.export_dependency_graph(task, output_file, dpi=None)¶
Export the dependency graph of the given task.
- tasks.cli.main(arguments=None)¶
Main function.