module documentation
A collection of CLI commands for working with Kedro pipelines.
Class |
|
An ordered collection of source_path, tests_path, config_paths |
Function | create |
Create a new modular pipeline by providing a name. |
Function | delete |
Delete a modular pipeline by providing a name. |
Function | pipeline |
Commands for working with pipelines. |
Function | pipeline |
Undocumented |
Function | _assert |
Check that python package name is in line with PEP8 requirements. |
Function | _check |
Undocumented |
Function | _copy |
Undocumented |
Function | _copy |
Undocumented |
Function | _create |
Undocumented |
Function | _delete |
Undocumented |
Function | _echo |
Undocumented |
Function | _get |
From existing project, returns in order: source_path, tests_path, config_paths |
Function | _get |
Undocumented |
Function | _sync |
Recursively copies source directory (or file) into target directory without overwriting any existing files/directories in the target using the following rules: |
Constant | _SETUP |
Undocumented |
@command_with_verbosity( pipeline, 'create')
@click.argument( 'name', nargs=1, callback=_check_pipeline_name)
@click.option( '--skip-config', is_flag=True, help='Skip creation of config files for the new pipeline(s).')
@env_option( help='Environment to create pipeline configuration in. Defaults to `base`.')
@click.pass_obj
def create_pipeline(metadata:
@click.argument(
@click.option(
@env_option(
@click.pass_obj
def create_pipeline(metadata:
ProjectMetadata
, name, skip_config, env, **kwargs):
(source)
¶
Create a new modular pipeline by providing a name.
@command_with_verbosity( pipeline, 'delete')
@click.argument( 'name', nargs=1, callback=_check_pipeline_name)
@env_option( help='Environment to delete pipeline configuration from. Defaults to \'base\'.')
@click.option( '-y', '--yes', is_flag=True, help='Confirm deletion of pipeline non-interactively.')
@click.pass_obj
def delete_pipeline(metadata:
@click.argument(
@env_option(
@click.option(
@click.pass_obj
def delete_pipeline(metadata:
ProjectMetadata
, name, env, yes, **kwargs):
(source)
¶
Delete a modular pipeline by providing a name.
Check that python package name is in line with PEP8 requirements.
Parameters | |
pkgstr | Candidate Python package name. |
Raises | |
KedroCliError | If package name violates the requirements. |
def _copy_pipeline_configs(result_path:
Path
, conf_path: Path
, skip_config: bool
, env: str
):
(source)
¶
Undocumented
def _get_artifacts_to_package(project_metadata:
ProjectMetadata
, module_path: str
, env: str
) -> Tuple[ Path, Path, Path]
:
(source)
¶
From existing project, returns in order: source_path, tests_path, config_paths
def _get_pipeline_artifacts(project_metadata:
ProjectMetadata
, pipeline_name: str
, env: str
) -> PipelineArtifacts
:
(source)
¶
Undocumented
Recursively copies source
directory (or file) into target
directory without
overwriting any existing files/directories in the target using the following
rules:
1) Skip any files/directories which names match with files in target, unless overwrite=True. 2) Copy all files from source to target. 3) Recursively copy all directories from source to target.
Parameters | |
source:Path | A local directory to copy from, must exist. |
target:Path | A local directory to copy to, will be created if doesn't exist yet. |
prefix:str | Prefix for CLI message indentation. |
overwrite:bool | Undocumented |