AimRecords

raw JSON →
0.0.7 verified Fri May 01 auth: no python

A record-oriented data format that uses Protocol Buffers for serialization. Current version 0.0.7, with no recent updates. Suitable for storing structured records efficiently. The library is minimal and rarely updated.

pip install aimrecords
error ModuleNotFoundError: No module named 'aimrecords'
cause The package is not installed or is installed with a different name.
fix
Run 'pip install aimrecords' and ensure you are using the correct Python environment.
gotcha The library is very minimal and not actively maintained. Expect limited documentation and potential breaking changes in future versions.
fix Consider using more mature formats like Parquet or HDF5 for production.

Basic example to write and read records using RecordFile.

from aimrecords import RecordFile

# Write records
with RecordFile('data.rec', 'w') as f:
    f.write({'id': 1, 'name': 'Alice'})

# Read records
with RecordFile('data.rec', 'r') as f:
    for record in f:
        print(record)