Good morning When talking about possible changes ...
# questions
i
Good morning When talking about possible changes to the OmegaConfigLoader various methods for only loading a single file were raised. I am trying to: Load all the files which match the pattern
catalog_**
in the folder
base/
but I want to inject the credentials myself, not read them from my credentials files in that same
base/
folder. What would be the most direct way of achieving this?
1
a
You can use
oc.env
to read them from the environment variables or use a custom resolver? docs link - https://docs.kedro.org/en/stable/configuration/advanced_configuration.html#how-to-use-resolvers-in-the-omegaconfigloader If you’re trying to load it in a python script and use
runtime_params:
resolver and pass the credentials to
OmegaConfigLoader(runtime_params=credentials)
it should do the same thing
i
Thanks Ankita 🙂 The method I was looking for was
DataCatalog.from_config(credentials= { ... })
It's two steps, first getting the catalog config from configloader then instantiating the catalog. But this works for me 🙂