merge_with_env
merge_with_env
Merge the config file with environment variables that match a prefix. Config file values take precedence; environment variables fill in gaps.
Parameters
env_prefix
Prefix for environment variables to consider. The prefix is stripped and the
remainder is converted to a lowercase config key (e.g., SWML_SSL_ENABLED
becomes ssl_enabled).
Returns
dict[str, Any] — Merged configuration dictionary.