Metadata-Version: 2.0
Name: pyrec
Version: 0.2.1
Summary: A record datatype for Python
Home-page: https://github.com/bintoro/pyrec
Author: Kalle Tuure
Author-email: kalle@goodtimes.fi
License: MIT
Keywords: record,datatype,struct,namedtuple
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3

``Record`` is a datatype similar to the C ``struct``: an ordered collection of data members with predefined names. It's like the Python ``namedtuple`` but with mutable attributes and some extra conveniences.

::

    >>> from pyrec import Record

    >>> Point = Record('Point', 'x y z')

    >>> p = Point(1, 2, 3)
    >>> p.z = 9
    >>> p
    <Record object Point(x=1, y=2, z=9)>

For the full documentation, see https://github.com/bintoro/pyrec.


