gmr / flatdict

Python module for interacting with nested dicts as a single level dict with delimited keys.
https://flatdict.readthedocs.io
BSD 3-Clause "New" or "Revised" License
111 stars 32 forks source link

get list of all delimited keys #20

Closed TZanke closed 6 years ago

TZanke commented 6 years ago

How to get a flat list of all keys or a dict like this? (Found in the documentation) flat = {'list:0': 'a', 'list:1': 'b', 'list:2': 'c'}

gmr commented 6 years ago
flat = flatdict.FlatterDict(values)
print(flat.keys())
TZanke commented 6 years ago

Works, thanks!