inner_all_keys¶
- inner_all_keys(data: dict, keys: list = None, lvl: int = 0)[source][source]¶
Get all keys of a nested dictionary.
- Parameters:
- Returns:
The tuple of keys.
- Return type:
Examples
>>> data = {'a': {'b': {'c': 1}}} >>> inner_all_keys(data) (('a',), ('b',), ('c',)) >>> data = {'a': {'b': {'c': 1}}, 'd': {'b': {'c': 2, 'e': 3}}} >>> inner_all_keys(data) (('a', 'd'), ('b',), ('c', 'e'))