Metadata-Version: 1.1
Name: aadict
Version: 0.2.0
Summary: An auto-attribute dict (and a couple of other useful dict functions)
Home-page: http://github.com/metagriffin/aadict
Author: metagriffin
Author-email: mg.pypi@uberdev.org
License: MIT (http://opensource.org/licenses/MIT)
Description: ===================
        Auto-Attribute Dict
        ===================
        
        An ``aadict`` is a python dict sub-class that allows attribute-style
        access to dict items, e.g. ``d.foo`` is equivalent to ``d['foo']``.
        ``aadict`` also provides a few other helpful methods, such as ``pick``
        and ``omit`` methods. Also, an ``aadict`` is more call chaining
        friendly (e.g. methods such as `update` return ``self``) and is
        pickle'able.
        
        Project
        =======
        
        * Homepage: https://github.com/metagriffin/aadict
        * Bugs: https://github.com/metagriffin/aadict/issues
        
        TL;DR
        =====
        
        Install:
        
        .. code-block:: bash
        
          $ pip install aadict
        
        Use:
        
        .. code-block:: python
        
          from aadict import aadict, pick, omit
        
          # attribute access
          d = aadict(foo='bar', zig=87)
          assert d.foo == d['foo'] == 'bar'
        
          # helper functions and methods
          assert pick(d, 'foo') == d.pick('foo') == {'foo': 'bar'}
          assert omit(d, 'foo') == d.omit('foo') == {'zig': 87}
        
          # method chaining
          d2 = aadict(x='y').update(d).omit('zig')
          assert d2.x == 'y' and d2.foo == 'bar' and d2.zig is None
        
        
        Details
        =======
        
        TODO: add documentation
        
Keywords: auto attribute access dict helpers pick omit
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: License :: Public Domain
