Config Loader
- class mlopus.kedro.MlopusConfigLoader(conf_source, env=None, runtime_params=None, *, config_patterns=None, base_env='base', default_run_env=None, custom_resolvers=None, merge_strategy=None)[source]
Bases:
OmegaConfigLoader
Patch of OmegaConfigLoader.
Enabling the patch
# <your_package>/settings.py from mlopus.kedro import MlopusConfigLoader CONFIG_LOADER_CLASS = MlopusConfigLoader
dict-like get behavior
Assuming there are no files matching
conf/<env>/credentials*
, the following example would raise an exception with the original OmegaConfigLoader:config.get("credentials") # returns: None config.get("credentials", {}) # returns: {}
Any scope overrides (CLI)
kedro run ... --params globals.key=value kedro run ... --params catalog.key=value kedro run ... --params parameters.key=value kedro run ... --params credentials.key=value
Any scope overrides (Python)
with KedroSession.create( ..., extra_params={ "globals": {"key": "value"}, "catalog": {"key": "value"}, "parameters": {"key": "value"}, "credentials": {"key": "value"}, }, ) as session: ...