The hepconvert library is a bridge between columnar file formats, currently ROOT, and Parquet and soon will include HDF5. It aims to simplify file conversions in Python, replacing what is usually a multi-step process with one line of code, with builtin features for managing large datasets and choosing compression levels.
Installation
hepconvert can be installed from PyPI using pip:
pip install hepconvert
To install with Conda through conda-forge:
conda install -c conda-forge hepconvert
Getting started
import hepconvert
# To merge two or more root files with TTrees,
# and add together any histograms:
hepconvert.merge_root("destination.root",
["ttree_file1.root", "ttree_file2.root"])
# To add root files with only histograms:
hepconvert.add_histograms("destination.root",
["hist_file1.root", "hist_file2.root"])
To run merge_root from the command line:
hepconvert merge-root [options] [OUT_FILE] [IN_FILES]
To run add_histograms:
hepconvert add [options] [OUT_FILE] [IN_FILES]
Find details on each function's CLI options on the readthedocs.
Metadata
Release files for hepconvert 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hepconvert-1.4.0.tar.gz | 68.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hepconvert-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 98.9 kB
Release files / hepconvert-1.4.0.tar.gz
| Download URL | hepconvert-1.4.0.tar.gz |
|---|---|
| Size | 68.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2eac16909e03f67f528348b840fe4f4c5f8cfba3cc5707b284e19c2e6f56868
|
|
BLAKE2b-256 checksum How to use checksums |
a904feebef3865b6d06650cc11046038a619e1a26f27f61999f559b318e1d055
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 13, 2025.
Transparency logRelease files / hepconvert-1.4.0-py3-none-any.whl
| Download URL | hepconvert-1.4.0-py3-none-any.whl |
|---|---|
| Size | 30.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff2704c8d37dd17e14b459a57b20a28eba34a818adab8d768461763fe65f66eb
|
|
BLAKE2b-256 checksum How to use checksums |
00047f3a9e6da3277eccb81cb32dafb58dacf88433be2f8af1123ba58ebd02cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 13, 2025.
Transparency log