Skip to main content

Command-line interface to preview HDF5 files

Project description

Show H5

A simple python-based command-line interface for previewing the contents of HDF5 files.



pip install show_h5

Command line usage

Basic use: python3 FILENAME

View usage: python3 -h

The following flags are also provided:

  • --section SECTION: View only the contents of the HDF5 group/dataset within the file
  • --show_attrs: Show the attributes of the datasets (if not used, defaults to not showing attributes)
  • --show_data: Show the contents of the datasets (if not used, defaults to only showing the name and dimensions). Warning: this may blow up with large datasets.

API usage

from show_h5 import print_h5
print_h5(h5_filename, section=None, show_attrs=False, show_data=False)


h5_filename: (str) Name/location of the file to show

section: (str, optional) Group or dataset of the file to show (the default is None, which shows the contents of the whole file)

show_attrs: (bool, optional) Whether to show dataset attributes (the default is False, which only shows dataset contents)

show_data: (bool, optional) Whether to show the contents of the dataset. Warning: this can blow up with large datasets (the default is False, which only shows the name and size of the dataset)

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for show-h5, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size show_h5-0.1-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size show_h5-0.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page