Hickle is an HDF5-based serialization library for Python, designed as a drop-in replacement for pickle with better performance and cross-language support. Current version is 5.0.3, supporting Python >=3.7. It wraps h5py and allows saving/loading Python objects (including NumPy arrays) in HDF5 files. Release cadence is irregular.
pip install hickleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Serialize a dictionary containing a NumPy array to an HDF5 file and read it back.
Only use hickle for objects with a simple structure or implement custom serialization hooks.
Use '.hickle5' extension for new HDF5 files. For legacy '.hickle' files, use hickle.load with explicit format='pickle' if needed.
Migrate existing hickle files to hickle5 by loading and re-saving with hickle.dump(..., format='hickle5').
Run 'pip install hickle'.
Remove the function from the data before serialization, or implement a workaround (e.g., store function name as string).
Ensure the object contains only hickle-compatible types (dict, list, tuple, numpy arrays, scalars, strings, bytes, None).
Check data for NaN, Inf, or unsupported dtypes; try saving without compression (compression=None in h5py).