module documentation
This module provides metadata for a Kedro project.
Class |
|
Structure holding project metadata derived from pyproject.toml |
Function | bootstrap |
Run setup required at the beginning of the workflow when running in project mode, and return project metadata. |
Function | _add |
Undocumented |
Function | _get |
Read project metadata from <project_root>/pyproject.toml config file, under the [tool.kedro] section. |
Function | _is |
Undocumented |
Function | _validate |
Validate the source path exists and is relative to the project path. |
Function | _version |
Undocumented |
Constant | _PYPROJECT |
Undocumented |
Run setup required at the beginning of the workflow when running in project mode, and return project metadata.
Read project metadata from <project_root>/pyproject.toml
config file,
under the [tool.kedro]
section.
Parameters | |
projectUnion[ | Local path to project root directory to look up pyproject.toml in. |
Returns | |
ProjectMetadata | A named tuple that contains project metadata. |
Raises | |
RuntimeError | pyproject.toml was not found or the [tool.kedro] section
is missing, or config file cannot be parsed. |
ValueError | If project version is different from Kedro package version. Note: Project version is the Kedro version the project was generated with. |
Validate the source path exists and is relative to the project path.
Parameters | |
sourcePath | Absolute source path. |
projectPath | Path to the Kedro project. |
Raises | |
ValueError | If source_path is not relative to project_path. |
NotADirectoryError | If source_path does not exist. |