module documentation
A collection of CLI commands for working with Kedro project.
Function | activate |
Install the nbstripout git hook to automatically clean notebooks. (DEPRECATED) |
Function | build |
Build the project documentation. (DEPRECATED) |
Function | build |
Run pip-compile on src/requirements.txt or the user defined input file and save the compiled requirements to src/requirements.lock or the user defined output file. (DEPRECATED) |
Function | ipython |
Open IPython with project specific variables loaded. |
Function | lint |
Run flake8, isort and black. (DEPRECATED) |
Function | package |
Package the project as a Python egg and wheel. |
Function | project |
Undocumented |
Function | run |
Run the pipeline. |
Function | test |
Run the test suite. (DEPRECATED) |
Constant | ASYNC |
Undocumented |
Constant | CONF |
Undocumented |
Constant | CONFIG |
Undocumented |
Constant | FROM |
Undocumented |
Constant | FROM |
Undocumented |
Constant | INPUT |
Undocumented |
Constant | LINT |
Undocumented |
Constant | LOAD |
Undocumented |
Constant | NAMESPACE |
Undocumented |
Constant | NO |
Undocumented |
Constant | NODE |
Undocumented |
Constant | OPEN |
Undocumented |
Constant | OUTPUT |
Undocumented |
Constant | PARAMS |
Undocumented |
Constant | PIPELINE |
Undocumented |
Constant | RUNNER |
Undocumented |
Constant | TAG |
Undocumented |
Constant | TO |
Undocumented |
Constant | TO |
Undocumented |
@command_with_verbosity( project_group, 'activate-nbstripout')
@click.pass_obj
def activate_nbstripout(metadata:
@click.pass_obj
def activate_nbstripout(metadata:
ProjectMetadata
, **kwargs):
(source)
¶
Install the nbstripout git hook to automatically clean notebooks. (DEPRECATED)
@project_group.command( 'build-docs')
@click.option( '--open', '-o', 'open_docs', is_flag=True, multiple=False, default=False, help=OPEN_ARG_HELP)
@click.pass_obj
def build_docs(metadata:
@click.option(
@click.pass_obj
def build_docs(metadata:
ProjectMetadata
, open_docs):
(source)
¶
Build the project documentation. (DEPRECATED)
@forward_command( project_group, name='build-reqs')
@click.option( '--input-file', 'input_file', type=click.Path( exists=True, dir_okay=False, resolve_path=True), multiple=False, help=INPUT_FILE_HELP)
@click.option( '--output-file', 'output_file', multiple=False, help=OUTPUT_FILE_HELP)
@click.pass_obj
def build_reqs(metadata:
@click.option(
@click.option(
@click.pass_obj
def build_reqs(metadata:
ProjectMetadata
, input_file, output_file, args, **kwargs):
(source)
¶
Run pip-compile
on src/requirements.txt or the user defined input file and save
the compiled requirements to src/requirements.lock or the user defined output file.
(DEPRECATED)
@forward_command( project_group, forward_help=True)
@env_option
@click.pass_obj
def ipython(metadata:
@env_option
@click.pass_obj
def ipython(metadata:
ProjectMetadata
, env, args, **kwargs):
(source)
¶
Open IPython with project specific variables loaded.
@command_with_verbosity( project_group)
@click.option( '-c', '--check-only', is_flag=True, help=LINT_CHECK_ONLY_HELP)
@click.argument( 'files', type=click.Path( exists=True), nargs=-1)
@click.pass_obj
def lint(metadata:
@click.option(
@click.argument(
@click.pass_obj
def lint(metadata:
ProjectMetadata
, files, check_only, **kwargs):
(source)
¶
Run flake8, isort and black. (DEPRECATED)
@project_group.command()
@click.option( '--from-inputs', type=str, default='', help=FROM_INPUTS_HELP, callback=split_string)
@click.option( '--to-outputs', type=str, default='', help=TO_OUTPUTS_HELP, callback=split_string)
@click.option( '--from-nodes', type=str, default='', help=FROM_NODES_HELP, callback=split_node_names)
@click.option( '--to-nodes', type=str, default='', help=TO_NODES_HELP, callback=split_node_names)
@click.option( '--node', '-n', 'node_names', type=str, multiple=True, help=NODE_ARG_HELP, callback=_deprecate_options)
@click.option( '--nodes', 'nodes_names', type=str, default='', help=NODE_ARG_HELP, callback=split_node_names)
@click.option( '--runner', '-r', type=str, default=None, help=RUNNER_ARG_HELP)
@click.option( '--async', 'is_async', is_flag=True, help=ASYNC_ARG_HELP)
@env_option
@click.option( '--tag', '-t', type=str, multiple=True, help=TAG_ARG_HELP, callback=_deprecate_options)
@click.option( '--tags', type=str, default='', help=TAG_ARG_HELP, callback=split_string)
@click.option( '--load-version', '-lv', type=str, multiple=True, help=LOAD_VERSION_HELP, callback=_reformat_load_versions)
@click.option( '--load-versions', type=str, default='', help=LOAD_VERSION_HELP, callback=_split_load_versions)
@click.option( '--pipeline', '-p', type=str, default=None, help=PIPELINE_ARG_HELP)
@click.option( '--namespace', '-ns', type=str, default=None, help=NAMESPACE_ARG_HELP)
@click.option( '--config', '-c', type=click.Path( exists=True, dir_okay=False, resolve_path=True), help=CONFIG_FILE_HELP, callback=_config_file_callback)
@click.option( '--conf-source', type=click.Path( exists=True, file_okay=False, resolve_path=True), help=CONF_SOURCE_HELP)
@click.option( '--params', type=click.UNPROCESSED, default='', help=PARAMS_ARG_HELP, callback=_split_params)
def run(tag, tags, env, runner, is_async, node_names, nodes_names, to_nodes, from_nodes, from_inputs, to_outputs, load_version, load_versions, pipeline, config, conf_source, params, namespace): (source) ¶
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@env_option
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
@click.option(
def run(tag, tags, env, runner, is_async, node_names, nodes_names, to_nodes, from_nodes, from_inputs, to_outputs, load_version, load_versions, pipeline, config, conf_source, params, namespace): (source) ¶
Run the pipeline.
@forward_command( project_group, forward_help=True)
@click.pass_obj
def test(metadata:
@click.pass_obj
def test(metadata:
ProjectMetadata
, args, **kwargs):
(source)
¶
Run the test suite. (DEPRECATED)
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|