pylhe: A Lightweight Python interface to Les Houches Event files
Alexander Puck Neuwirth, Matthew Feickert, Lukas Heinrich, Eduardo Rodrigues
Istituto Nazionale di Fisica Nucleare, Sezione di Milano Bicocca · University of Wisconsin–Madison
Key points
From the paper's conclusion- Les Houches Event files are a standard format for Monte Carlo event generators in high-energy physics. pylhe is a lightweight pure-Python library for reading and writing LHE event data.
Abstract
pylhe is a lightweight Python library that provides a simple and efficient interface for reading and writing Les Houches Event (LHE) files, a standard format used by Monte Carlo event generators in high-energy physics (Alwall & others, 2007).The library enables memory-efficient streaming of events from XML format (.lhe, compressed .lhe.gz) and HDF5 format (.h5, .hdf5,lheh5) files through a pythonic iterator interface, allowing researchers to process arbitrarily large event files without loading all events into memory simultaneously.It is a standalone, event-generator-independent package, installable from PyPI and Conda.pylhe, part of the Scikit-HEP community project (Rodrigues & others, 2020; The Scikit-HEP Project, 2016), is well maintained and integrated within the broader scientific Python ecosystem.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Pythia-Contrib: a modular contribution framework for the Pythia 8 event generatorarXiv · 2026
- hoppet v2 release noteThe European Physical Journal C · 2026
- PyExoCross 2.0: A Python Framework for LTE and non-LTE Spectra, Cross Sections, and Spectroscopic Post-processing of Atomic and Molecular Line ListsRAS Techniques and Instruments · 2026
- LEP Data@EDM4hep: mitigating data loss risks by increasing data FAIRness, with a view on FCC-eeThe European Physical Journal C · 2026
- LazySlide: accessible and interoperable whole-slide image analysisNature Methods · 2026
- HLAfreq: Download and combine HLA allele frequency dataThe Journal of Open Source Software · 2026