File conversion package.
Project description
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.
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
Built Distribution
File details
Details for the file hepconvert-1.3.7.tar.gz
.
File metadata
- Download URL: hepconvert-1.3.7.tar.gz
- Upload date:
- Size: 64.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dfdc50d80689f687bf11cd12e1596f062ee62e125e6d2a9320734061125cc96 |
|
MD5 | bd99d5bf6fd8460b028dc8a62e413f6f |
|
BLAKE2b-256 | 97d02f1c77b12351e087d4b24872837606a1b9b1dcf4d63ffbd995098643f5de |
File details
Details for the file hepconvert-1.3.7-py3-none-any.whl
.
File metadata
- Download URL: hepconvert-1.3.7-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e3542332929d10c9b0ae85937a13cf2924b3e10af6649609432cdcda5e764df |
|
MD5 | 179f6667e4cec315afe5572305ddc8d2 |
|
BLAKE2b-256 | b0d60f8e1af8807701ac234e3fc57de55aae241ce8e6feaa37b9bd1f80fa661e |