Infinidat/munch
View on GitHub ↗ ★ 785 Python
A Munch is a Python dictionary that provides attribute-style access (a la JavaScript objects).
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2018-10-10 · latest 2021-12-18
20082026
-
This looks like a duplicate of the existing Munch Python library. https://github.com/Infinidat/munch
comment by mchenier · 2021-12-18 · in Box – Python dictionary with dot notation -
…recommend looking into Munch, "a dictionary that supports attribute-style access, a la JavaScript." https://github.com/Infinidat/munch In theory , implementing attribute-style access on user-defined Python object is just a matter of…
comment by neoncontrails · 2021-07-20 · in Brython: an implementation of Python 3 running in the browser -
Me too. There is a library that solves this: https://github.com/Infinidat/munch from munch import Munch foo = {'a':1, 'b':2} foo = Munch(foo) print(foo.a) # 1 print(foo['a']) # 1
comment by Rotareti · 2018-10-10 · in Python is becoming the world’s most popular programming language