pyferrite 0.0.1

Pure-Rust reader/writer for Python ML artefacts (npy, npz, pickle, pt, joblib, hdf5) with ndarray and polars interop, lazy streaming and user-controlled numeric down-casting.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! `.pt` / `.pth` — `torch.save` archives.
//!
//! Since torch 1.6 the file is a ZIP holding `archive/data.pkl` plus one raw
//! blob per storage under `archive/data/<key>`. The pickle references those
//! blobs through persistent ids, which this module resolves.

mod read;
mod write;

pub use read::{read_bytes, read_path};
pub use write::{write_bytes, write_path};