Metadata-Version: 1.0
Name: easydict
Version: 1.3
Summary: Access dict values as attributes (works recursively)
Home-page: https://github.com/makinacorpus/easydict
Author: Mathieu Leplatre
Author-email: mathieu.leplatre@makina-corpus.com
License: UNKNOWN
Description: EasyDict
        ########
        
        Access dict values as attributes (works recursively)
        
        =====
        USAGE
        =====
        
        ::
        
            >>> 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
        
        
        Very useful when exploiting parsed JSON content ! 
        
        ::
        
            >>> from easydict import EasyDict
            >>> from simplejson import loads
            >>> j = """{
            "Buffer": 12,
            "List1": [
                {"type" : "point", "coordinates" : [100.1,54.9] },
                {"type" : "point", "coordinates" : [109.4,65.1] },
                {"type" : "point", "coordinates" : [115.2,80.2] },
                {"type" : "point", "coordinates" : [150.9,97.8] }
            ]
            }"""
            >>> d = EasyDict(loads(j))
            >>> d.Buffer
            12
            >>> d.List1[0].coordinates[1]
            54.9
        
        
        =======
        LICENSE
        =======
        
        * Lesser GNU Public License
        
        =======
        AUTHORS
        =======
        
        * Mathieu Leplatre <mathieu.leplatre@makina-corpus.com>
        
Platform: UNKNOWN
Classifier: Topic :: Utilities
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 2.5
