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 100% coverage for the Python API.

Documentation

pyhepmc largely mirrors the C++ interface of the HepMC3 library, which is documented here. Parts of the documentation have been copied from HepMC3. Documentation is available as Python docstrings, so you can use Python’s help() browser to learn about the API. Alternatively, you can consult the online reference generated from these docstrings which includes some examples.

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.10.0.tar.gz (358.8 kB view details)

Uploaded Source

Built Distributions

pyhepmc-2.10.0-cp311-cp311-win_amd64.whl (454.6 kB view details)

Uploaded CPython 3.11 Windows x86-64

pyhepmc-2.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (583.7 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyhepmc-2.10.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (540.6 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

pyhepmc-2.10.0-cp311-cp311-macosx_10_9_x86_64.whl (525.2 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pyhepmc-2.10.0-cp311-cp311-macosx_10_9_universal2.whl (961.8 kB view details)

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

pyhepmc-2.10.0-cp310-cp310-win_amd64.whl (454.5 kB view details)

Uploaded CPython 3.10 Windows x86-64

pyhepmc-2.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (583.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyhepmc-2.10.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (540.6 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

pyhepmc-2.10.0-cp310-cp310-macosx_10_9_x86_64.whl (525.2 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pyhepmc-2.10.0-cp310-cp310-macosx_10_9_universal2.whl (961.8 kB view details)

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

pyhepmc-2.10.0-cp39-cp39-win_amd64.whl (454.6 kB view details)

Uploaded CPython 3.9 Windows x86-64

pyhepmc-2.10.0-cp39-cp39-win32.whl (387.1 kB view details)

Uploaded CPython 3.9 Windows x86

pyhepmc-2.10.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (540.6 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

pyhepmc-2.10.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (527.8 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

pyhepmc-2.10.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl (545.3 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686

pyhepmc-2.10.0-cp39-cp39-macosx_10_9_x86_64.whl (525.3 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pyhepmc-2.10.0-cp39-cp39-macosx_10_9_universal2.whl (962.0 kB view details)

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

pyhepmc-2.10.0-cp38-cp38-win_amd64.whl (454.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

pyhepmc-2.10.0-cp38-cp38-win32.whl (386.9 kB view details)

Uploaded CPython 3.8 Windows x86

pyhepmc-2.10.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (540.5 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

pyhepmc-2.10.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (527.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

pyhepmc-2.10.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl (545.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686

pyhepmc-2.10.0-cp38-cp38-macosx_10_9_x86_64.whl (525.2 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pyhepmc-2.10.0-cp38-cp38-macosx_10_9_universal2.whl (961.9 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for pyhepmc-2.10.0.tar.gz
Algorithm Hash digest
SHA256 8c9d1969146604266284569017db8a4c03387fabf098f31c68179dc4def388b9
MD5 d4a9d519e018faccf7ace07e8094c2e7
BLAKE2b-256 439251deff85d666db7bec04edcf00a5f05abf029a72c44f9af30a9ed350d1ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhepmc-2.10.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 454.6 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.10.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6df0c345ce76aeffc88d561e879f8fceda0df4fac2d5de8e771238539cb631ef
MD5 acd3f748dbe4ca24fbcf531711b9bfb3
BLAKE2b-256 8a39a017c11560e8c1a2f44c2fdfae7e3a53a5e74376ad251f1b55ed89612a10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 436e9d9346187602ab34c3a97a3f26cde435f352307c5b2f82b1fbe985a6a8c8
MD5 0e69046d464dfdff1e368c6536c0e546
BLAKE2b-256 e64cc6c16ffb67a4d9d3e88eb6fc2d9378289653c690d7bf5c521d273bec226f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5980ddbcd0ee437c4a3cc10a091c3345f185511a6a491bda082dc616789aece5
MD5 98ad1400f7efae90b86d8c2253d93a47
BLAKE2b-256 1918808febd7b7353fd5ca26d7c80da701655bc580578e181ce9288a2530f96c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 668b1c885cf06184ed792e80093029749052b66f924cc48f7ec6d5282ed3c916
MD5 f9e74ec4e3886906e9283dbaed0475ac
BLAKE2b-256 82adfa7cecbec27a5edf190ff889dc627d2609bddf67da3859d1b26b69a88a5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e7922c47d529a1fa259653491ba8bcc83ef50f43f5b822908bb7899659ad9a61
MD5 dcca6db97ce1ebf32ae80d17cafff52c
BLAKE2b-256 4763ad6f272b4362a1e158f67122bf9f7b10c8e4230c95f1aaf49b77563c6dd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhepmc-2.10.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 454.5 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.10.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bec3f7411a44e858299f7b896c34942f5e1f0e801dee4d8f8ccfe8d30e1da6e9
MD5 315b7167e24362fdf3cec267492bdc19
BLAKE2b-256 7264650284fba097867a3e03638eb0bf3a7058486b4ebe197a3541055935f058

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0ebc6c7efd2a7c8211999bc89df992913a2c08c9b6a868f14b5e235eb25d3006
MD5 16b2f5c845a4938584a348c0e155f9db
BLAKE2b-256 85575963999d72245baef4effb7dfeb7eadaa72c5db7d10c6637674b9f6b0246

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2fef66c65802e9024853c34eca47273e1ffe55d70dad2bf84d74a0d11c5859db
MD5 3fc5840bfd02cbf592a33e46553e957d
BLAKE2b-256 e489ec9b8083542852a12fe0254a16a463ccca7745cf42949d17b02f7a2f1951

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c5d7693d4683f2837f71afa0b2c92330706866e847e9ad58e657ef4c84b79fb0
MD5 6f44bccb5efe1359d545351a029e718e
BLAKE2b-256 36de3ecc5562200f0c1381578a0bbc49e140538f5f1c275f6da41adef640074f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 d8d8af86c8bc7bdaa2b3e6b8b1211c9373659eb17e835bd373cbe97e63857181
MD5 bdb47902224490f3d2c3524225737d2e
BLAKE2b-256 32fb54a98e487a20b3601d52fa689635eedf33760d3ce9b9d99e08f303e57dba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhepmc-2.10.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 454.6 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.10.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 046d125fa73e24cdefcc17b32313e24be8035dbfb4c26b8713660525d5480027
MD5 04efaf50ddd0209c4c1b51d55521dd6c
BLAKE2b-256 3d5df51436979b417f0961553d3f0b5384ed3fdc1da9a42a19377e4e85a89222

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhepmc-2.10.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 387.1 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.10.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ea58bed209a4926062d58316724a7826d35be0ecc6d2fa3dd3990e13dcc29fc8
MD5 0b198b871271fb1f752a3b0ca3ccb5dc
BLAKE2b-256 532a69f2cbe0e9c444649f487a6aeb453a1ed41eac3dc4b6798022ee75b5da7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e6d74e1a8a6e9634b1d925ff32df122f89470ec9be5599792a7f56605d88d7da
MD5 1a958d8abe08743bbcb15e3d7cdcb7c6
BLAKE2b-256 29f06829d696979e0f70bb431db721bbce833a7802b73a84ebd75697d67369bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 69a51143b41d2a71bd7fb145624fbcf71b38544c212b80dbb446d7ee47ddac86
MD5 caf952b68fdb3093140057c713a9fd43
BLAKE2b-256 0b61bf9ede75a7f857a7bed3f0911789e0b58b795c56af6a5ff62e1b6cce4cef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 cb660aa330ae8c7f4e439db178aae38361aa62ffbf27625f2ee54b3a150fd50b
MD5 666639f2fc67f4ab1a70e882aea70372
BLAKE2b-256 ac83da70c10e690a72056eb40dcbd39d8be08941c5f0e51ed48e8e4578ad749c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8d3222f4edee2ec12000fffcd8a4847e37eb58a1cad01e1b5eeded31b706fa70
MD5 20881d77b375520c9dcf2d108e8b32c8
BLAKE2b-256 a3b2373e3b0fb8a3f07391720aeaa91bbb790ac3405b047e3b6f45407affea92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 64add95e48216ed531841559d71adccc1e2f0667d3e125b1d29a3efa87c1b07c
MD5 71d4af32d51ca14352fc72c5d1cea76b
BLAKE2b-256 dd7428b9f390bac444fb4877deb70e7f048a4fe19cd05b60a4e34212af88d32d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhepmc-2.10.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 454.6 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.10.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b088357b5e2f0c302abc4add33ca59f646cbc8a67640eabcf3cfc5a04164124b
MD5 6d90169d506346ac97f4e6c169002dcb
BLAKE2b-256 f5f1a58a7fd885b2a95170f7c9d52522cf502afa07889d78cf9753f80d8b6742

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhepmc-2.10.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 386.9 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.10.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 53294369c377a54bf5ba8b7852ea95b7ddee3bb7acaab35ba81a8a10f6b349e1
MD5 ccae977b32005a0ba583d810ad2b4f88
BLAKE2b-256 fd207f2f4b7918058fe32e733e5593242927f898c2f9de22216e2ef7fece21fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1ffa19ba93846c76e66b938b44cd1831c67b1f0e4c610417062c3feb4c81c35e
MD5 2e2395452cc94cfd46987f062b2f8ca3
BLAKE2b-256 f56a024ac3bc4bb051a7b832e40b7cd8272f79e63c03b09b94c7afc26be45d8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9b404ac69c19a31447ee6858f00e85d7cd5fd2a3fdef9810f087c1a124687f2b
MD5 c8d7bb41ebc3dfa4a1b717bd01e8430e
BLAKE2b-256 a7cb51ce26a91b5b5cb34d3187145c1c6326c500fe02447f288acc100917c314

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm Hash digest
SHA256 32e6db17d40ad2ad026b9b873c11835898c3b2cf09194ab7803a3ab3311a94b9
MD5 8935aef9d61b2db47994db74328030ac
BLAKE2b-256 0a251a11e6928dc9f7bb82df410bfadeef612e91e4b55d4925dcb3466b0682e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a2982307f97bd968092ae53ec3c45287d5f67739cfd1c3549d1a8a8441e7e61f
MD5 7ee8d6d66381fd3640eda107b50bc3dc
BLAKE2b-256 d3e10ab7ec2391a811d1672f8f4c013a0d63465364b99b34e05a71a207bc4fe7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyhepmc-2.10.0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 cdbb1cc7cdfe4f0466ee05b569f7244bfedc13095da28dc2821d959c48a44ebc
MD5 bf02331823d0680e31f92e78c13718d1
BLAKE2b-256 2eb790a16955740cff6caf2dcd44d3f6b3b760f152589146187f2d4ff29a5668

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