load_nested_config API Reference
geoloop.configuration.load_nested_config
load_nested_config(
main_config_path: str,
keys_needed: list[str] = [],
keys_optional: list[str] = [],
) -> dict
Load main JSON and inject referenced sub-configs as nested dictionaries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
main_config_path
|
str
|
Path to the main JSON configuration file. |
required |
keys_needed
|
list[str]
|
Keys that must point to valid JSON files. |
[]
|
keys_optional
|
list[str]
|
Keys that may optionally point to JSON files. |
[]
|
Returns:
| Type | Description |
|---|---|
dict
|
Nested configuration dictionary. |