Skip to main content

File conversion package.

Project description

Actions Status Documentation Status

PyPI version Conda-Forge PyPI platforms

GitHub Discussion

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

hepconvert-1.4.0.tar.gz (68.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hepconvert-1.4.0-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file hepconvert-1.4.0.tar.gz.

File metadata

  • Download URL: hepconvert-1.4.0.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for hepconvert-1.4.0.tar.gz
Algorithm Hash digest
SHA256 d2eac16909e03f67f528348b840fe4f4c5f8cfba3cc5707b284e19c2e6f56868
MD5 c7049cda50b6b9904796c51d5c287c59
BLAKE2b-256 a904feebef3865b6d06650cc11046038a619e1a26f27f61999f559b318e1d055

See more details on using hashes here.

Provenance

The following attestation bundles were made for hepconvert-1.4.0.tar.gz:

Publisher: cd.yml on scikit-hep/hepconvert

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hepconvert-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: hepconvert-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for hepconvert-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff2704c8d37dd17e14b459a57b20a28eba34a818adab8d768461763fe65f66eb
MD5 49f516efb5d0178e33d5916579a75c14
BLAKE2b-256 00047f3a9e6da3277eccb81cb32dafb58dacf88433be2f8af1123ba58ebd02cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for hepconvert-1.4.0-py3-none-any.whl:

Publisher: cd.yml on scikit-hep/hepconvert

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page