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.0.0.tar.gz (43.5 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.0.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for uhi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 331188949b1a49c8db9ef9d50b7c4d4df4606115d147ded97c4f050da8270e74
MD5 e9c828aaa9d5370bdc1f9f415f93086f
BLAKE2b-256 6f4c846ed661a6454fcb3a27fc5f8d26f8170718d3fc85e784cf1b8b2718185e

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for uhi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 653e5b011aaeea0bede4feef5c4b4f3fe750277ab9c9f3d620f1a0acdc7ae740
MD5 0de4997bef250bbdd127ad8e4560d360
BLAKE2b-256 3383b5be6755c33d1fa6df51dda11beb15bb4c873b66d9dc7b99aa011d4090c9

See more details on using hashes here.

Provenance

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