telegraphic / hickle

a HDF5-based python pickle replacement
http://telegraphic.github.io/hickle/
Other
485 stars 70 forks source link

List all valid paths #160

Open michaelitvin opened 2 years ago

michaelitvin commented 2 years ago

It would be useful to be able to see what's stored inside a hickle archive.

michaelitvin commented 2 years ago

I found the functionality within h5py. Might make sense to add it to hickle.

import h5py

f = h5py.File(hkl_path, 'r')
print(f.keys())
telegraphic commented 2 years ago

Hi @michaelitvin, as you've noted it's pretty simple via h5py. I'm open to adding a simple method, but not sure best way to do so. Marking as pull-request-welcome 🤔