Skip to main content

TUI application for navigating and viewing HDF5 files

Project description

Description

h5tui is a terminal user interface (TUI) application that facilitates the viewing of the contents of HDF5 files. Its design is inspired by vim-motion enabled terminal file managers, such as ranger, lf and yazi. This choice is quite natural since the HDF5 file format also adopts a directory structure for storing the data.

Demo

https://github.com/user-attachments/assets/587742c7-654e-4236-b672-5b194535db18

Installation

The package is hosted and PyPI and can be installed using pip:

pip install h5tui

Usage

Simply launch the application with an HDF5 file as an argument:

h5tui file.h5

File Navigation

h5tui starts at the root of the file and displays the contents of the directory. The file can be navigated using the arrow or standard vim motion keys, with the up/down (j/k) moving the cursor inside the list, and left/right (h/l) for going to the parent or child HDF5 group. If the selected element is not an HDF5 group but an HDF5 dataset, then the contents of the dataset are displayed. If the data does not fit on one screen, it can be scrolled using the up/down j/k keybindings.

Dataset Format Options

The formatting of the dataset may be controlled using a couple of keybindings. Since HDF5 files can often contain large datasets, by default, if the number of elements exceeds 1000, the output will be truncated. This behavior can be toggled using the t keybinding. Note that, as of yet, this operation is blocking, and therefore huge datasets might take some time to load In addition, the s key toggles the scientific notation on and off.

Formatting keybindings:

  • t: toggle output truncation
  • s: toggle scientific notation

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

h5tui-0.0.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

h5tui-0.0.4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file h5tui-0.0.4.tar.gz.

File metadata

  • Download URL: h5tui-0.0.4.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for h5tui-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5ac3179ac6ad1ea5fbe2bf7f7911fd14dfb80d8049361242bb5e2d51f623e853
MD5 a5cfc918587325aa9f1ab3db7c877c10
BLAKE2b-256 498ae3146f9c98978311b9e13e81fd64668a106299eb8c642bc15286c04b44ad

See more details on using hashes here.

File details

Details for the file h5tui-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: h5tui-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for h5tui-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ecf8557c0024e6a7397211fb58d92d9a935a52fd94b6c01c6499e73ecce96558
MD5 be689330480bb4fe53892baca4a02b9f
BLAKE2b-256 9ee11a215322f576e17fdfd30502a760a3b7de1391380ebf07f1d036fd05f201

See more details on using hashes here.

Supported by

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