Skip to main content

Unified Histogram Interface: tools to help library authors work with histograms

Project description

UHI: Universal Histogram Interface

Actions Status Documentation Status pre-commit.ci Status Code style: black

PyPI version Conda-forge version PyPI platforms

GitHub Discussion Gitter Zenodo Scikit-HEP SPEC 4 — Using and Creating Nightly Wheels

This is a package meant primarily for documenting histogram indexing and the PlottableHistogram Protocol and any future cross-library standards. It also contains the code for the PlottableHistogram Protocol, to be used in type checking libraries wanting to conform to the protocol. Eventually, it might gain a set of tools for testing conformance to UHI indexing, as well. It is not usually a runtime dependency, but only a type checking, testing, and/or docs dependency in support of other libraries (such as boost-histogram 0.13+, hist 2.1+, mplhep 0.2.15+, uproot 4+, and histoprint 2+). There are a few useful runtime usable components (listed below). Older versions are available for Python 3.6+. See what's new.

To assist plotting libraries in accepting Histograms from classic sources, see uhi.numpy_plottable.ensure_plottable_histogram, which will adapt NumPy style tuples into a simple PlottableHistogram.

The Protocols provided do support runtime checking, so isinstance(h, uhi.typing.plotting.PlottableHistogram) is valid at runtime and might be simpler than manually checking for the expected methods.

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

uhi-1.1.0.tar.gz (49.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uhi-1.1.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file uhi-1.1.0.tar.gz.

File metadata

  • Download URL: uhi-1.1.0.tar.gz
  • Upload date:
  • Size: 49.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for uhi-1.1.0.tar.gz
Algorithm Hash digest
SHA256 98a39f0f3c01144b9769abbc95c31499667e6808b7c653af3dae0e846d0356b5
MD5 d616afb246762e4b51d3145019cbcd1e
BLAKE2b-256 2c6f1d6804042f0026fbe27f0ffc882d20429472df9c157f321a62074c90ef89

See more details on using hashes here.

Provenance

The following attestation bundles were made for uhi-1.1.0.tar.gz:

Publisher: cd.yml on scikit-hep/uhi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uhi-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: uhi-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for uhi-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b204b2f6772ce9919bf10e7d928e82a32b43fbcb90855c6c595dd787873ca617
MD5 2de9fabffbfe665d74a0839e74b2fd61
BLAKE2b-256 23d0747e01e5a6cbbe79f4708cd8a9a15c692715235c24dcfac023d7b64a4db4

See more details on using hashes here.

Provenance

The following attestation bundles were made for uhi-1.1.0-py3-none-any.whl:

Publisher: cd.yml on scikit-hep/uhi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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