Hello, I was wondering if there is a safe way of...
# questions
n
Hello, I was wondering if there is a safe way of renaming my kedro project. I know that once you give a name to your project it is every where in different forms so I'm afraid of renaming some folders and then damaging something
d
Unfortunately, there's no trivial way. You can look at whatever starter you used (e.g. https://github.com/kedro-org/kedro/tree/main/kedro/templates/project) and see wherever you have a
{{ cookiecutter.<something> }}
reference to find the types of things populated from the template, but you're on your own when it comes to the renaming. Since Kedro just creates the template and doesn't maintain some sort of connection to it, there's no way to automatically update things after the fact.
n
I guess the starter depends on my current Kedro version. How can I know which starter I used? Would you disadvice against renaming it?
d
I guess the starter depends on my current Kedro version. How can I know which starter I used?
I don't think there's any field per se saying which starter you used, but you can find your Kedro init version in
pyproject.toml
under the
tool.kedro
section.
Would you disadvice against renaming it?
Not really. I've renamed plenty of projects in the past. As with any software, you should just make sure you track your rename in version control (in case you need to revert the change) and test extensively to make sure everything still works. Realistically, most issues with renaming will result in a pipeline that doesn't run, so it shouldn't be that hard to catch.
n
Thank you!
n
maybe I am over optimistic here, I think renaming with and IDE like PyCharm is simply: • right click on the module -> rename, let the IDE do the job. One extra thing you need to do because Pycharm does not understand
kedro
, so you may need to change a few thing in
pyproject.toml
but that should be all
šŸ‘ 2