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.3.tar.gz (6.1 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.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: h5tui-0.0.3.tar.gz
  • Upload date:
  • Size: 6.1 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.3.tar.gz
Algorithm Hash digest
SHA256 301dd571c72a0799078cc61041e9b1bd22fa15602bc8ef8e88541d3c37f2417a
MD5 1222eb44ee3e0a1f74990644ebf3596c
BLAKE2b-256 8e4fba223061c4c4b0e9e96266ab2155e4f8d29e517e02a329c027c039e86a5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: h5tui-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a1c34f8a8eaecfa0d6356353698078dbd5618ee2a504f1f7f2120c84855b2653
MD5 fec2f1c4a1c0960320d77a57a56494c8
BLAKE2b-256 17f8720c966e0d80319591dd2042d85c48e47bb8ed510b65e7af0c8b65a9a577

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