Dict utils
flatten(obj: dict[str, Any], sep: str, name: str | None = None) -> dict[str, Any]
Flatten dictionary by combining nested keys with given separator.
Source code in opskrift/dict_utils.py
6 7 8 9 10 11 12 13 14 15 16 17 |
|
unflatten(obj: dict[str, Any], sep: str) -> dict[str, Any]
Construct a nested dictionary by splitting keys on given separator.
Source code in opskrift/dict_utils.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|