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, 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.

Project details


Download files

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

Source Distribution

show_h5-0.2.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

show_h5-0.2.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file show_h5-0.2.1.tar.gz.

File metadata

  • Download URL: show_h5-0.2.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for show_h5-0.2.1.tar.gz
Algorithm Hash digest
SHA256 334291afc37f25bac0926b0a6a6e4100746e114318e13f307edb9bdefcc65116
MD5 0a5146d43555965b6f814bc553650247
BLAKE2b-256 f19d20e85a9ac3459da48f6b5c73fb1a8921a500d82c680279378e17b0e772d0

See more details on using hashes here.

File details

Details for the file show_h5-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: show_h5-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for show_h5-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 19f03a0bd23be49768e03dd175923775224cfe293976de9564f1f3595ac35d49
MD5 7d49bb7de0a3090c552e6e3198ab2ed2
BLAKE2b-256 0da88ce3f2f5d9ed35d0495476092015863c9ad2f0586143233b24b73ff8a150

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page