Skip to main content

flatten

Flatten settings.

def flatten(
d: dict,
root: string,
keyfilter: callable = _flatten_keys
) - > generator

Flatten settings.

Parameters

NameTypeDescription
ddictThe dictionary of settings or options to be flattened.
rootstringThe initial prefix string to prepend to all flattened keys.
keyfiltercallable = _flatten_keysA function used to process and yield the final key-value pairs from the flattened namespace.

Returns

TypeDescription
generatorA generator yielding flattened key-value pairs processed through the keyfilter function.