Skip to main content

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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyrec-0.2.0-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyrec-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyrec-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e1c4594c9f9c73679d817378b3de1af0db1b00ae00b65d838702b22078f3e4dc
MD5 f7ec829f9271e8f96d9fecb5759d0746
BLAKE2b-256 3ccceaa2b93d90946511fc34167e8e90c2a98f2e074aaee0c8fe58ff7b1bace4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page