Skip to main content

tree for HDF5 files

Project description


h5tree is a command-line utilitly that prints the tree structure of an HDF5 file, similar to tree. It also displays meta-data, such as the data shape, data type, and the values of attributes.


Install with pip install h5tree

Example output

>>> h5tree -va data.h5
data.h5  (3 objects, 2 attributes)
│   ├── name  Sam
│   ├── value  105
├── group_1  (3 objects)
│   ├── group_1_sub  (1 object, 1 attribute)
│   │   ├── name  Dan
│   │   └── x  (5, 3), float64
│   ├── x  (5, 3), float64
│   └── y  (5, 3), float64
├── group_2  (2 objects)
│   ├── x  (5, 3), float64
│   └── y  (5, 3), float64
└── x  (5, 5, 3), float64

3 groups, 6 datasets


usage: h5tree [-h] [-v] [-a] [-g] [-L [LEVEL]] [-p [PATTERN]] path

positional arguments:
  path                  filepath/grouppath

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         verbose output
  -a, --attributes      show attributes
  -g, --groups          only show groups
  -L [LEVEL], --level [LEVEL]
                        maximum number of directories to recuse into
  -p [PATTERN], --pattern [PATTERN]

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Source Distribution

h5tree-1.0.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distribution

h5tree-1.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page