Python library for dot-accessible dictionary objects
A dot-accessible dictionary (a la JavaScript objects)
munch$ python3 -c "from munch import munchify; d = munchify({'name': 'John', 'age': 30}); print(d.name)"$ python3 -c "from munch import Munch; obj = Munch(user={'name': 'Alice', 'email': 'alice@example.com'}); print(obj.user.email)"$ python3 -c "from munch import Munch, unmunchify; m = Munch(key='value'); d = unmunchify(m); print(type(d))"