A light-weight package to lazily traverse a deeply nested dictionary.
pip install arboristo
>>> from arboristo.arbor import Tree
>>>
>>> t = Tree()
>>>
>>> my_dict = {
... "a": {
... "b": "bar",
... "c": {
... "d": {
... "e": {
... "f": "foo"
... }
... }
... }
... }
... }
>>>
>>> print(t.get('b').from_dict(my_dict))
[{'path': 'a.b', 'value': 'bar'}]
>>>
>>> print(t.get('a.d.e').from_dict(my_dict))
[{'path': 'a.c.d.e.f', 'value': 'foo'}, {'path': 'a.c.d.e', 'value': {'f': 'foo'}}]