get_from_config

get_from_config(keys, default=None)[source]

Helper to get a value from a config dict.

Check dict values for nested keys. The default value is returned if the key is not found.

Parameters:
  • keys (list[str]) – The nested keys to look for. e.g [“a”, “b”] will look for config[“a”][“b”].

  • default (Any | None) – The default value to return if the entry is not found.

Return type:

Any