Skip to main content

Show H5

A simple python-based command-line interface for previewing the contents of HDF5 files, with various levels of detail.

PyPi

Source code

Install

pip install show_h5

Command line usage

Once installed, you'll have a command line interface to view the contents of your HDF5 files.

Basic use: show_h5 FILENAME

View usage: show_h5 -h or show_h5 --help

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_DATA: How much data to show in datasets: "none", "some", or "all".
    • "none": [default] Show only the name, shape, and type of the data
    • "some": Show the default amount of the data that numpy shows with a print statement
    • "all": Show all the data. 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)

Parameters

  • 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: (one of: ["some", "none", "all"], optional) How much data to show in datasets.
    • "none": [default] Show only the name, shape, and type of the data
    • "some": Show the default amount of the data that numpy shows with a print statement
    • "all": Show all the data. Warning: this may blow up with large datasets.

Metadata

Release files for show-h5 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for show-h5 0.2.1
File Size Uploaded
show_h5-0.2.1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for show-h5 0.2.1
File Interpreter ABI Platform
show_h5-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / show_h5-0.2.1.tar.gz

Download URL show_h5-0.2.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
334291afc37f25bac0926b0a6a6e4100746e114318e13f307edb9bdefcc65116
BLAKE2b-256 checksum
How to use checksums
f19d20e85a9ac3459da48f6b5c73fb1a8921a500d82c680279378e17b0e772d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6

Release files / show_h5-0.2.1-py3-none-any.whl

Download URL show_h5-0.2.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19f03a0bd23be49768e03dd175923775224cfe293976de9564f1f3595ac35d49
BLAKE2b-256 checksum
How to use checksums
0da88ce3f2f5d9ed35d0495476092015863c9ad2f0586143233b24b73ff8a150
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page