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.5.tar.gz (8.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.5-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: h5tui-0.0.5.tar.gz
  • Upload date:
  • Size: 8.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.5.tar.gz
Algorithm Hash digest
SHA256 65f062b25a6665cb957ebfaf39b5e2392688daffddb6e2b2aed8ad579e26c97e
MD5 6a4305a8ec91a07a8a629806d81bef99
BLAKE2b-256 a697aa0e9d9f052bc9cc3e51818bee6deb915d7c387c57b8d4cc261b5a9db6f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: h5tui-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 32e01a68817966a080d3ab2a92926217b0d72d383dbf98edf4b63c26d5dc3090
MD5 b48d01929598d6e0fb97c2273036f50d
BLAKE2b-256 0212242ceb0620fc5ae1622fed318b7a970061d4f892b272317bda3924896415

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