Skip to content

HDF5-bindings v0.2.0

Choose a tag to compare

@shivasankarka shivasankarka released this 03 Sep 12:06
· 12 commits to main since this release

The new of hdf5-mojo: h5py-style HDF5 bindings for Mojo, now with chunking, compression, array-like slicing, and a wider set of supported dtypes.

Highlights

  • Chunked & resizable datasets - create_dataset_chunked, maxshape (with unlimited dimensions via -1), and rank-correct resize().
  • Built-in filters - gzip compression, shuffle, and fletcher32 checksums via create_dataset_filtered, plus metadata accessors (compression(), shuffle(), filter_names(), etc.).
  • Array-like I/O - hyperslab, rectangular slice (read_slice/write_slice, including List[Slice]), and point (read_point/write_point) access on datasets.
  • Scalar datasets - explicit create_scalar_dataset/read_scalar/write_scalar, plus h5py-style empty-tuple indexing: dset[()] / dset[()] = value.
  • New dtypes - int8 and uint8 are now supported for datasets and attributes, with correct signed/unsigned disambiguation on reopen.
  • get_opt(name) on Group/File - non-raising lookup (Optional[H5Object]) mirroring h5py's get(name, default=...) fallback behavior.
  • Fill values across contiguous, chunked, and scalar datasets.
  • NumPy-flavored backend - array reads/writes now use NuMojo's NDArray under the hood.
  • Group.values() for listing member objects, not just names.
  • CI on Linux and macOS (GitHub Actions), plus a formatting check.

Rewritten API reference covering the full current surface, and a documented list of known limitations.

Known limitations

No int16/uint16/uint32/uint64, bool, or string types yet; no fancy indexing or multi-block hyperslab selections; no links/traversal (visit, soft/hard/external links); no alternate file drivers, dimension scales, virtual datasets, SWMR, or parallel HDF5. See the README for the full list.