Hi all! We use cookiecutter templates a good amoun...
# questions
m
Hi all! We use cookiecutter templates a good amount at my company and I wanted to see if you could point me in the right direction before I go down this path: I see in docs that modular pipelines can be created from cookiecutter templates. When I make a new kedro project, I can replace
starter --path_to_local_template
with
starter --path_to_repo
. Is that also true of modular pipelines? e.g. can I point the
template
argument at a repo instead? Suppose I have a repo consisting of a bunch of modular_pipeline templates. Is there a way to let a user just point to the subdirectory in the repo for the modular pipeline they want to use?
👀 2
d
Apparently, yes! It was implemented by another community member. Relevant code: https://github.com/kedro-org/kedro/blob/main/kedro/framework/cli/pipeline.py#L126 PR: https://github.com/kedro-org/kedro/pull/2701
m
Sorry just to be clear, I want to point at a github repo like via web url, not a local directory. I don't see anything in this PR that indicates to me that you can do that (though I might be wrong!). Clarifying question
i
https://docs.kedro.org/en/stable/starters/starters.html Is this different than the example on the starter docs? Second one shows
Copy code
kedro new --starter git+<https://github.com/kedro-org/kedro-starters.git> --directory spaceflights-pandas
m
Yes: this example has
starter
pointing to a repo. My question is if
template
can point to a repo
👍 1
d
I just skimmed the code. Out of the box, I agree, don't think that's possible. It should be a pretty easy enhancement, though! Just do it the same way as for the starter template. You can also override commands locally, so you can do it without waiting for a Kedro release to introduce the functionality. I'm pretty sure, if you do implement this, a PR would be welcome.
👍 2
👍🏾 1