Get Mystery Box with random crypto!

Restructuring data, the Python way. >>> import glom >>> glom. | 🇺🇦 Python Programming Сhallenges

Restructuring data, the Python way.

>>> import glom
>>> glom.assign({}, "a.b.c.d", 42, missing=dict)
{'a': {'b': {'c': {'d': 42}}}}

# Path-based access for nested structures
>>> target = {'a': {'b': {'c': 'd'}}}
>>> glom(target, 'a.b.c')
'd'
happy glomming!

https://glom.readthedocs.io/en/latest/