{"categories":[{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/7"}],"enrichment":{"capability":"Provides units and physical constants in the HEP (High Energy Physics) system of units, derived from CLHEP, for use in particle physics calculations and simulations.","skillfed_tags":["physics-units","particle-physics","scientific-computing"],"use_cases":["Define and work with particle lifetimes and decay distances in particle physics simulations and analysis code","Perform energy and momentum calculations in high-energy physics experiments using standard HEP conventions","Convert between HEP units and SI or other unit systems when interfacing with external libraries or publishing results","Store dimensioned quantities consistently in data structures while keeping internal representation in HEP units"],"what_it_does":"hepunits is a Python library that defines the standard units and physical constants used in high-energy physics, based on the CLHEP system rather than SI units. The core difference is that HEP uses millimeters for length, nanoseconds for time, and MeV for energy as its base units, reflecting conventions used in major physics software like GEANT4 and Gaudi. The package provides two main modules: constants (physical constants and commonly used values) and units (length, time, energy, and other dimensional quantities).\n\nYou use it by multiplying numerical values by unit objects to create dimensioned quantities, then dividing by units to extract values in a desired unit system. For example, defining a 1 GeV mass window as `1 * GeV` and retrieving an energy resolution in GeV as `energy_resolution() / GeV`. The package also optionally integrates with Pint for interoperability with a more general-purpose units library, though this is not required for basic use.","worth_installing":"Yes. The package has zero security vulnerabilities, low install friction, active maintenance, and is designed for a specific and well-defined use case in particle physics. If you work in HEP or use software that follows CLHEP conventions, this is the standard way to handle units and constants in Python. Even if you only occasionally need HEP unit conversions, the permissive license and lack of dependencies make it a safe, lightweight addition."},"id":"hepunits","links":{"html":"https://skillfed.io/packages/hepunits","md":"https://skillfed.io/packages/hepunits.md","pypi":"https://pypi.org/project/hepunits/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-16","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"hepunits","python_support":"supports_current","summary":"Units and constants in the HEP system of units"},"popularity":{"monthly_downloads":119221,"position":12081,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.4.6"}
