>>> data = Box({'a': {'b': {'c': 'd'}}})
>>> data.a.b.c
'd'
I didn't see anything in the README about type inference, which would make the later example more desirable in my opinion. Otherwise I would prefer not to introduce a new container class to my code (Box) if avoidable.
1 comment
[ 6.3 ms ] story [ 15.1 ms ] thread[1] https://github.com/mahmoud/glom