tasks.cli

CLI for validation workflows.

Module Contents

Classes

ArgParser

Class to build parser and parse arguments.

Functions

format_description(param[, default_str, optional_str, ...])

Format the description of a parameter.

export_dependency_graph(task, output_file[, dpi])

Export the dependency graph of the given task.

main([arguments])

Main function.

Attributes

WORKFLOW_TASKS

LOGGING_LEVELS

LUIGI_PARAMETERS

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.