/hdf5-ls

CLI tool to interact with hdf5 files

Primary LanguageRustGNU General Public License v3.0GPL-3.0

hdf5-ls

A CLI tool to print data from an HDF5 file

🖥️ Usage

The default options print the names of all groups and datasets of an h5 file recursively to stdout:

$ hdf5-ls my_file.h5
 +- File "/"
    +- Group "/My Group"
       +- Dataset "/My Group/First Dataset"
       +- Dataset "/My Group/Second Dataset"
    +- Group "/Another Group"
       +- Dataset "/Another Group/Third Dataset"

Pretty printing can be disabled with the --plain flag:

$ hdf5-ls --plain my_file.h5
/My Group
/My Group/First Dataset
/My Group/Second Dataset
/Another Group
/Another Group/Third Dataset

🔧 Installation

Download and install with git and cargo:

git clone https://github.com/loenard97/hdf5-ls.git
cd hdf5-ls
cargo install --path .