easydict
Access dict values as attributes (works recursively).
Access dict values as attributes (works recursively).
To install this package, run one of the following:
EasyDict allows to access dict values as attributes (works recursively). A Javascript-like properties dot notation for python dicts.
=====
::
>>> from easydict import EasyDict as edict
>>> d = edict({'foo':3, 'bar':{'x':1, 'y':2}})
>>> d.foo
3
>>> d.bar.x
1
>>> d = edict(foo=3)
>>> d.foo
3
Summary
Access dict values as attributes (works recursively).
Last Updated
Nov 10, 2024 at 00:40
License
LGPL-3.0-only
Total Downloads
409.0K
Supported Platforms