gpf_entrepot_toolbelt.utils.map_utils module¶
Main utils module for maps
- gpf_entrepot_toolbelt.utils.map_utils.map_from_list(objects_list: list[dict], key_field: str | None = None) dict ¶
Get an objects map from an objects list
- Paramètres:
objects_list (list[dict]) – the list
key_field (str | None) – the field name used as map key
- Returns
dict: the output map