Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2021 (2)
20082026
  1. This looks like a duplicate of the existing Munch Python library. https://github.com/Infinidat/munch
  2. …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…
  3. 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