Skip to main content

Pythonic interface to the HepMC3 C++ library licensed under LGPL-v3.

Project description

A Pythonic wrapper for the HepMC3 C++ library.

https://scikit-hep.org/assets/images/Scikit--HEP-Project-blue.svg https://badge.fury.io/py/pyhepmc.svg https://coveralls.io/repos/github/scikit-hep/pyhepmc/badge.svg?branch=main https://zenodo.org/badge/DOI/10.5281/zenodo.7013498.svg

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 and Jupyter notebook-friendly

pyhepmc is a hand-crafted mapping of C++ code to Python, see documentation for details. Python idioms are supported where appropriate. The classes are designed to render well in Jupyter notebooks. IO is simplified. Events can be visualized in Jupyter notebooks.

pyhepmc supports visualizations powered by graphviz

pyhepmc can optionally visualize events, using the mature graphviz library as a backend.

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

Documentation is available here, 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.

License

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.

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

pyhepmc-2.11.0.tar.gz (361.6 kB view details)

Uploaded Source

Built Distributions

pyhepmc-2.11.0-cp311-cp311-win_amd64.whl (483.1 kB view details)

Uploaded CPython 3.11 Windows x86-64

pyhepmc-2.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (618.9 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyhepmc-2.11.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (571.8 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

pyhepmc-2.11.0-cp311-cp311-macosx_10_9_x86_64.whl (562.9 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pyhepmc-2.11.0-cp311-cp311-macosx_10_9_universal2.whl (1.0 MB view details)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

pyhepmc-2.11.0-cp310-cp310-win_amd64.whl (483.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

pyhepmc-2.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (619.3 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyhepmc-2.11.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (571.8 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

pyhepmc-2.11.0-cp310-cp310-macosx_10_9_x86_64.whl (562.9 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pyhepmc-2.11.0-cp310-cp310-macosx_10_9_universal2.whl (1.0 MB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

pyhepmc-2.11.0-cp39-cp39-win_amd64.whl (483.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

pyhepmc-2.11.0-cp39-cp39-win32.whl (410.9 kB view details)

Uploaded CPython 3.9 Windows x86

pyhepmc-2.11.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (572.1 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

pyhepmc-2.11.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (558.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

pyhepmc-2.11.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl (577.0 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

pyhepmc-2.11.0-cp39-cp39-macosx_10_9_x86_64.whl (563.1 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pyhepmc-2.11.0-cp39-cp39-macosx_10_9_universal2.whl (1.0 MB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

pyhepmc-2.11.0-cp38-cp38-win_amd64.whl (483.5 kB view details)

Uploaded CPython 3.8 Windows x86-64

pyhepmc-2.11.0-cp38-cp38-win32.whl (411.1 kB view details)

Uploaded CPython 3.8 Windows x86

pyhepmc-2.11.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (571.3 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

pyhepmc-2.11.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (558.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

pyhepmc-2.11.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl (576.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

pyhepmc-2.11.0-cp38-cp38-macosx_10_9_x86_64.whl (563.6 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pyhepmc-2.11.0-cp38-cp38-macosx_10_9_universal2.whl (1.0 MB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file pyhepmc-2.11.0.tar.gz.

File metadata

  • Download URL: pyhepmc-2.11.0.tar.gz
  • Upload date:
  • Size: 361.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pyhepmc-2.11.0.tar.gz
Algorithm Hash digest
SHA256 e0177c397fdd748d11ef39b4ab01753a52aabe720975f0eec8a3c831b9deeebd
MD5 f1979d2a38d1beb951fc1b84c2622dbf
BLAKE2b-256 684d20a8d685e4e9ec40f02c30c2bf36e15d675b1fdc2358ac68df3bf12b8bca

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyhepmc-2.11.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 483.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pyhepmc-2.11.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0f7edf0c9cabca568011a915a289d68d074860ec90a5928dfe0900f23c4cb617
MD5 88b3fd992f9a1185fae07c1dde70b41f
BLAKE2b-256 cae1063a989bce6a13202560e7915e635be2535aa9d702dee770594282da12d9

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8818265300ef3fd99f6549b713f4f4b21fed9df96643a72d9684f6de0baedb04
MD5 62156e61dc9a605a607176583e01c66f
BLAKE2b-256 29bfa56e806d9686e778b4087c42d03192830aa99623698a989c70e5d1f37c44

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 580d7ae643f79af7e989d6f2fbe53624123857c85d3e7abeb5f97101cabd5f2a
MD5 1c93669193eabeda5306ab0a3117aa63
BLAKE2b-256 e06b6ba87581c5899215f031ec2176480ea4728a6b6025717b299d417a3de004

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4f5eb1e6a8b0bb2265e65af198cc5ba547223e43415f55acbf56d7f110567d56
MD5 622dae93e4a67b18da3fbb1cc1750155
BLAKE2b-256 207716880ebee7ec55b5a2671a1210cca6e8e0b2bb1a623230d54d11175892d3

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6b4041f7749537c4e2920f511cb455aaaf5f8d3a6871774db54bb59c0e833c04
MD5 362290b3e9da117d5b9da36b6675f60c
BLAKE2b-256 3f07e20612e48f11b1b65c3680fdf384c88ff152425c5f8f399c0c3655f711e9

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyhepmc-2.11.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 483.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pyhepmc-2.11.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0b9a8efbaccfde68d512fbd2dcd2e793f9de253a6735acc410dec2b47c02e141
MD5 64a0607412437ca0d43172f5a1c69add
BLAKE2b-256 fd7b20b8b7379e513c621121dc35ffcd7fc4f03a2e17ca35cee4c36f5c721580

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dc8dd5a34d53b6ba2b9ee1e91246040d650abe0b1f4a0c1d03d2cac2f69a2cdf
MD5 aa00b24a589161212fedf98a817aea9f
BLAKE2b-256 ea4b3e8024f23872fd3ec86afb604ff0b6505b868b9b1c1e287307de5ff02e91

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b4d1b99fc51fc80e15b8629eaab9dde0010c3949053abe0b37388ec5e136b021
MD5 57c612aaf4787367750a5868afeed4d0
BLAKE2b-256 9085622a37d3cacdf0f8986653acd2eac7e647c58b639747a8c05a4ad9f057d5

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f12b98e1e1740766b739d8144f80321927d7fccc5405a4289cfcd1b39a0bd21c
MD5 29562a8c7ebcdf20a1bb2ce3d80aefc6
BLAKE2b-256 5c86409140d7de2720a397848c34f03ef533a7e0908320a1d8bf14b51477f218

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b542246831f2f24caf6459c0602397d071c3cd4b041a2f5adea8fb3de56cedb5
MD5 d722596d37151dc9fa2f6c6d8aa20451
BLAKE2b-256 2f53990f4668049ac21b2c4f3af9663ff83ffd99a40d70cbd74b3af2051995c8

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: pyhepmc-2.11.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 483.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pyhepmc-2.11.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2eb44c90d8792499561e4010a59d37be709270d321e2b899f18eb75084c3384f
MD5 e1e5f63fe40dd335d866a2603bf070e2
BLAKE2b-256 20d50924c528736c28dd7c9942f6e42f4307f3befd366afa7d61775e243618fb

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp39-cp39-win32.whl.

File metadata

  • Download URL: pyhepmc-2.11.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 410.9 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pyhepmc-2.11.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1f61ae45e9da55e5ed5a1d7394e9ecb9f9edbc700843abf1e88f964c857708e2
MD5 0da2d77daac927d8c934ec23b2931f89
BLAKE2b-256 998c6ad02a598b6dda0c8a427c8cec8dcce61b426f1393ab82c8cb0f3f315525

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fb5e23da3a8f79205533f8e7cb2d1c1fbafb40760d91fd356115ec5ac126ea9a
MD5 51f6f9f01b73ab42be12706dc4b45811
BLAKE2b-256 303dbca542728bd3b194b371307989792dba183e84b651923446bd8aaeef06e9

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 34cef4cd45c47b5d0d9fa77aa2c94c349dbc487b3a9d54a8584ea329b6bee178
MD5 f2d33719952938ece5a0892ca66e4e1d
BLAKE2b-256 daa84a3232063df251fde55ced52a0f4702634fd424c9d8e955295c6386532ae

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 02954e5ce0ae123a7834998e18063058646593ebb0bd29e6c072b9b968fa12e0
MD5 b5b556071e07e35b0a7537254f8d4fd1
BLAKE2b-256 2f754ab8eeba43ca6e205a71be2fa0a411b320465cae6e879edcc13badb32dbf

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 25e2e2da0dd1a504e7d26f6c6f66b32c39bab5c687cdf785ee51aec5ffb8dbb5
MD5 715d4237a6a4d8a3fabd27ee76522c49
BLAKE2b-256 b3d9178e28a231e136526e4adcd70ab7bede80c6eb60faaeea390cc4f6d3a387

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9e207c84d8826a28ad2d2f1d92027f224537e42be4c67f659da9d21f27a451be
MD5 14fe6b9f45f0687253d8d58a18c4df42
BLAKE2b-256 f25b01b0619b44dd5981cb10e468dbf1f7deb7d3b5647756819929335121319a

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyhepmc-2.11.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 483.5 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pyhepmc-2.11.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b2642c3814f063ad81f1e807f95e451957edb65c88afb4c84ba87459d7522fde
MD5 f59deb04404e16e55726f31faa7e5af7
BLAKE2b-256 774b308b953d1bbf4dd87de913f85ddd87b1e60c85ee76ffec888b17f389f6a9

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp38-cp38-win32.whl.

File metadata

  • Download URL: pyhepmc-2.11.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 411.1 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pyhepmc-2.11.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e34ca81d442b7c7a952ffae016a4c4a1a1089573b34d7caf45197677b2c355cd
MD5 0ac0c163bff1f39b7b0ab3a73ac19656
BLAKE2b-256 ade22dc3117538057812cec4b1787ac0ef3cc115982c255de87dbcdaa590f21f

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 51bffd20c36eafb1acd52028e6083eed2990fce05c78ea4a7b471970439f2c47
MD5 917c26a3f3bb6c579a65b909bf48da35
BLAKE2b-256 442f22aa3efb344ab1cc995d39b92f239183596dcb37a916b537297b24020cf1

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 856f4600bd5e2968ebe7338e197ea6dd5ff94a3839b89d4abead7ce03706288f
MD5 5114fe834cd1eab24b0bec761bdea9cd
BLAKE2b-256 3ed351971524d01f9a0a79cd5db49361e6931950c093ade0bcad1310aa0b5a8d

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 170b2076ded49294fb9366a8cbd29120acf234f58dcb96154e2ecb7cc98b5c4c
MD5 7533c43af030ecc97930c67c0b3a54ca
BLAKE2b-256 99b4df205f4bd717480fdf8c7aaa082cae858919eb5b11f4d7bc73120f792940

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dfcc33b35c37a71629cc9196d15782e26d78640ff3d32d8a66576fbe09b8ed58
MD5 50e85e3c5d385d3cecf2b9d3b55b6c63
BLAKE2b-256 58e65b023866c6d7eb01f223e7180e4930294c901ff21209b92f9fbe08c81582

See more details on using hashes here.

File details

Details for the file pyhepmc-2.11.0-cp38-cp38-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyhepmc-2.11.0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 970eaf9bb1b51ae8d5beb1cb7f2a4deb59d12a28103c80b175bb5826b2e66282
MD5 e85d7448e8445f73b7f34213abc84207
BLAKE2b-256 d3f531f3f628c7e92438305a3e4f8629c104cae16064cbd86fce91ee1a7435db

See more details on using hashes here.

Supported by

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