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/356225e7-e2ab-457a-8e47-97c19efb5aaa
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.
Plotting
h5tui provides simple plotting facilities straight in the terminal using the Plotext library.
1D arrays are displayed as scatter plots, and 2d arrays are shown as heatmaps. Higher dimensional tensors are not currently supported.
The plotting can be toggled through the p keybinding while viewing a dataset.
Aggregation
h5tui also has the functionality for performing limited data aggregation for summarizing the data.
This can be activated through the a keybinding while viewing a dataset.
Currently, this option will compute the min, max, and mean of the dataset but further statistics may be added in the future.
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 truncations: toggle scientific notation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file h5tui-0.1.1.tar.gz.
File metadata
- Download URL: h5tui-0.1.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bc97c2298c6172eff0512bebb3bf766d65a955fcb38452f20abf70e15dc5915
|
|
| MD5 |
1306c1b262964f817377fe8fe1148d0c
|
|
| BLAKE2b-256 |
d88493d533068428f4f36ef2f03ad700fea0a5b6549fc7bae4e4cdb3845b526c
|
File details
Details for the file h5tui-0.1.1-py3-none-any.whl.
File metadata
- Download URL: h5tui-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a377fb67c6acc8c9b3b151782de1403b04977306bbaad5734988a5e3db5ea966
|
|
| MD5 |
93740a827e3c74eb07639e0e5ad26d8c
|
|
| BLAKE2b-256 |
f360d1185869b99be430c390675c877c66bd67bb9382755d06bd814d09c50bf0
|