Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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 hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page