Dead Simple Records
Easy to hack and dead simple RecordIO-like data storing. Inspired by MXNet's RecordIO and Protobuf.
(planned) features
- Binary-based data format with index file
- Easy custom serialization schemes
- Common serialization schemes (more TBA)
- Documentation
- Append, update, delete data sample
- Pack/unpack form
- Schema serialization
Quick start
See the overview section in the documentations.
Also, check out this notebook for a quick example, this notebook has not been updated in a while though.
How does it work?
Saving
- Open an empty file, this is the data file.
- Take whatever data you got, serialize it in a way (for example, write to PNG buffer)
- Write the serialized data to the said file buffer, store the offset and size of the data
- Repeat until all data are written
- Write all the offsets and sizes to another file (index file)
Loading
- Load the data file and the index file.
- When given an index, use the index file to get the offset and size of the data.
- Seek the file pointer to the offset, read the exact size and deserialize the data.
Prebuilt format
Customized serialization format
Metadata
Release files for dsrecords 0.4.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dsrecords-0.4.18.tar.gz | 10.1 kB | Details |
Release files / dsrecords-0.4.18.tar.gz
| Download URL | dsrecords-0.4.18.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72ccec9342bc6ae619ddb0498b2f7832835f42fcc6351442d55af99394419f40
|
|
BLAKE2b-256 checksum How to use checksums |
46faa35826e4d93024e15ec524e44a87db07193cd7a24a32fee2b54fa257aff0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|