From 249faaa70470704278b894bc089cfa943a20fb99 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Sun, 10 Jan 2021 09:00:06 -0600 Subject: [PATCH] add README --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/README.md b/README.md index e69de29..4f3cbc6 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,38 @@ +# Minimal Kedro Pipeline + +This repo represents the minimal amount of structure to build a kedro pipeline that can be shared accross projects. + +## Installation + +``` +pip install git+https://github.com/WaylonWalker/mini-kedro-pipeline +``` + +## Caveats + +No this is not a runnable pipeline, kedro still wants a full conf directory to setup credentials, logging, and catalog. This is a sharable pipeline that can be used accross many different projects. + + +## Usage + +Once installed this proeject can be added to your standard `hooks.py` file. + +``` python +# hooks.py + +import mini_kedro_project as mkp + +class ProjectHooks: + @hook_impl + def register_pipelines(self) -> Dict[str, Pipeline]: + """Register the project's pipeline. + + Returns: + A mapping from a pipeline name to a ``Pipeline`` object. + + """ + + return {"__default__": Pipeline([]), "mkp": mkp.pipeline} + +``` +