Hello, I want to know if there is a common practic...
# questions
a
Hello, I want to know if there is a common practice for where to code constants file inside a Kedro project ?
y
I do that here:
src/my_project/constants.py
So it's next to
settings.py
and
pipeline_registry.py
The reason for that location is that anything upstream is not
src
, and e.g. I don't want that to be in
pipelines
module because things like
HOURS_IN_DAY = 24
is not specific to any pipeline.
🙌 2
👍 1
n
Agree with what @Yury Fedotov said. In general, I don't think we should treat Kedro as a special citizen. So I'd swap the "Kedro" in the question with "Python". Whatever works for Python project should works for Kedro (at least this is what we strive for, other than the unique concepts of Kedro)
🙌 1
j
I create a yml file with constants for the different pipelines.