Metadata-Version: 1.1
Name: tri.struct
Version: 0.1.0
Summary: tri.struct supplies classes that can be used like dictionaries and as objects with attribute access at the same time
Home-page: UNKNOWN
Author: Johan Lübcke
Author-email: johan.lubcke@trioptima.com
License: BSD
Description: tri.struct
        ==========
        
        tri.struct supplies classes that can be used like dictionaries and as objects with attribute access at the same time. There are three classes:
        
        - Struct: mutable struct
        - FrozenStruct: immutable struct
        - NamedStruct: mutable struct with restrictions on which fields can be present
        
        Some niceties include:
        
        - Predictable repr() so it's easy to write tests
        - Plus operator for Struct (`Struct(a=1) + Struct(b=1) == Struct(a=1, b=1)`)
        
        Example
        -------
        
        .. code:: python
        
            >>> foo = Struct()
            >>> foo.a = 1
            >>> foo['a']
            1
            >>> foo['a'] = 2
            >>> foo.a
            2
        
        
        Running tests
        -------------
        
        You need tox installed then just `make test`.
        
        
        License
        -------
        
        BSD
        
        
        Documentation
        -------------
        
        http://tristruct.rtfd.org.
        
        =========
        Changelog
        =========
        
        Here's the recent changes to tri.struct.
        
        .. changelog::
            :version: dev
            :released: Ongoing
        
            .. change::
                :tags: docs
        
                Updated CHANGES.
        
Keywords: tri.struct
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
