scikit-hep / pyhepmc

Easy-to-use Python bindings for HepMC3
https://scikit-hep.org/pyhepmc/
BSD 3-Clause "New" or "Revised" License
21 stars 11 forks source link

Support reading/writing compressed files #44

Closed HDembinski closed 2 years ago

HDembinski commented 2 years ago

pyiostream is added, which allows C++ code to interact with an iostream that read/writes to a Python file object. The primary use-case is to have transparent compression based on the gzip, bzip2, lzma modules in Python's standard library.