Metadata-Version: 2.1
Name: root2hdf5
Version: 0.1.4
Summary: Lightweight ROOT to HDF5 file converter
Home-page: https://github.com/dev-geof/root2hdf5
Author: Geoffrey Gilles
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.9.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: uproot==5.0.4
Requires-Dist: h5py==3.8.0
Requires-Dist: numpy==1.24.2
Requires-Dist: tqdm==4.62.3

# Lightweight ROOT to HDF5 File Converter

## Introduction

The `root2hdf5` tool provides a streamlined solution for converting CERN ROOT files into HDF5 format. This lightweight implementation specifically targets ROOT files containing `TTree` structures, seamlessly transforming them into organized HDF5 compound datasets.

## Getting the Code

To get started you can clone the `root2hdf5` repository from GitHub using the following command:
```bash
git clone https://github.com/dev-geof/root2hdf5.git
```

## Installation

To install `root2hdf5` and its dependencies you can use the following command:
```bash
python -m pip install -e . -r requirements.txt
```
Pre-built `root2hdf5` can also be installed from PyPI via:
```bash
pip install root2hdf5
```

## Usage

### Script Invocation

```bash
root2hdf5 -i input_root_file -o output_hdf5_file -t tree_name
```

### Parameters

- **input_root_file** (str): The name of the input ROOT file.
- **output_hdf5_file** (str): The name of the output HDF5 file.
- **tree_name** (str): The name of the ROOT tree to be processed.

## License

`root2hdf5` is distributed under the [MIT License](LICENSE), granting users the freedom to use, modify, and distribute the code. Contributions, bug reports, and suggestions for improvements are warmly welcomed.

