Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
A Pythonic wrapper for the HepMC3 C++ library <http://hepmc.web.cern.ch/hepmc>
_.
.. image:: https://scikit-hep.org/assets/images/Scikit--HEP-Project-blue.svg :target: https://scikit-hep.org
.. image:: https://badge.fury.io/py/pyhepmc.svg :target: https://pypi.org/project/pyhepmc
.. image:: https://coveralls.io/repos/github/scikit-hep/pyhepmc/badge.svg?branch=main :target: https://coveralls.io/github/scikit-hep/pyhepmc?branch=main
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.7013498.svg :target: https://doi.org/10.5281/zenodo.7013498
pyhepmc was formerly known as pyhepmc-ng. The development of pyhepmc-ng continues in the pyhepmc package.
HepMC3 has its own Python bindings. Why should you use these?
pyhepmc is easy to install
The command pip install pyhepmc
just works on all common platforms. Since we publish binary wheels, you don't need to compile anything. Since we include the HepMC3 library, you don't need to install it separately either.
However, building from source is also easy. External software is not required. Just download the repository with git clone --recursive
and run pip install -v -e .
.
pyhepmc is Pythonic, Numpy-friendy, and Jupyter notebook-friendly
pyhepmc is a hand-crafted mapping of C++ code to Python, see documentation for details <https://scikit-hep.org/pyhepmc/reference.html>
_, while the official HepMC3 bindings are generated by a script. The pyhepmc API has been optimised for safety, usability, and efficiency by a human expert, something that an automatic tool cannot provide. pyhepmc brings these unique features:
pyhepmc.open
.repr
strings).pyhepmc supports visualizations powered by graphviz
pyhepmc can optionally visualize events, using the mature graphviz <https://graphviz.org>
_ library as a backend.
.. image:: docs/_static/pyhepmc.svg
pyhepmc is actively maintained
pyhepmc is part of the Scikit-HEP project, which aims to provide all tools needed by particle physicists to do data analysis in Python. It is developed in close collaboration with the HepMC3 project.
pyhepmc is thoroughly unit tested
We have close to 100% coverage for the Python API.
Documentation is available here <https://scikit-hep.org/pyhepmc/>
, and includes some examples (Jupyter notebooks). Furthermore, you can use Python's help()
browser to learn about the API. The documentation is generated from Python docstrings, which are translated from the HepMC3 library, which is documented here <http://hepmc.web.cern.ch/hepmc>
.
The pyhepmc code is covered by the BSD 3-clause license, but its main functionality comes from bundled software which is released under different licenses. The HepMC3 library is licensed under LGPL-v3 and bundles other software which is released under different licenses. See the files LICENSE
and LICENSE_bundled
in the source directory for details.
FAQs
Pythonic interface to the HepMC3 C++ library licensed under LGPL-v3.
We found that pyhepmc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.