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.1.tar.gz (49.7 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.1-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uhi-1.1.1.tar.gz
  • Upload date:
  • Size: 49.7 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.1.tar.gz
Algorithm Hash digest
SHA256 d39c4dc162d691bcb443529a9cf5fe99b11e14a387cdf8284154cc25870d2ff0
MD5 2b400bc1b83b7de457cff1da0dd0bb02
BLAKE2b-256 fd21fe2832bbc20a60563952171a28e6d3bae8072a4b6d06ec6cc5098c4ca0d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for uhi-1.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: uhi-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e71862637f312b54c091cd771dd236e1a9fbe450de937bcf21e30ad0b7013aae
MD5 4d6f35e00a7e9186d5adeaa924487e10
BLAKE2b-256 26d358b6e548e7db998c4f3eefcacb74b6c256607e6dfdd1d97679d4864116d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for uhi-1.1.1-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