npy-rs   crates.io version Documentation Build Status

Numpy format (*.npy) serialization and deserialization.

NPY is a simple binary data format. It stores the type, shape and endianness information in a header, which is followed by a flat binary data field. This crate offers a simple, mostly type-safe way to read and write *.npy files. Files are handled using iterators, so they don't need to fit in memory.

To use npy-rs, two dependencies must be specified in Cargo.toml:

toml npy = "*" npy-derive = "*"

Several examples are available in the examples directory.

Documentation