Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

A record datatype for Python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyrec, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size pyrec-0.2.1-py2.py3-none-any.whl (3.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page