Unified Histogram Interface: tools to help library authors work with histograms
Project description
UHI: Universal Histogram Interface
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
331188949b1a49c8db9ef9d50b7c4d4df4606115d147ded97c4f050da8270e74
|
|
| MD5 |
e9c828aaa9d5370bdc1f9f415f93086f
|
|
| BLAKE2b-256 |
6f4c846ed661a6454fcb3a27fc5f8d26f8170718d3fc85e784cf1b8b2718185e
|
Provenance
The following attestation bundles were made for uhi-1.0.0.tar.gz:
Publisher:
cd.yml on scikit-hep/uhi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uhi-1.0.0.tar.gz -
Subject digest:
331188949b1a49c8db9ef9d50b7c4d4df4606115d147ded97c4f050da8270e74 - Sigstore transparency entry: 414248296
- Sigstore integration time:
-
Permalink:
scikit-hep/uhi@4ad73170f75108db7eb62805309267d37c7f5035 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/scikit-hep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@4ad73170f75108db7eb62805309267d37c7f5035 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
653e5b011aaeea0bede4feef5c4b4f3fe750277ab9c9f3d620f1a0acdc7ae740
|
|
| MD5 |
0de4997bef250bbdd127ad8e4560d360
|
|
| BLAKE2b-256 |
3383b5be6755c33d1fa6df51dda11beb15bb4c873b66d9dc7b99aa011d4090c9
|
Provenance
The following attestation bundles were made for uhi-1.0.0-py3-none-any.whl:
Publisher:
cd.yml on scikit-hep/uhi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
uhi-1.0.0-py3-none-any.whl -
Subject digest:
653e5b011aaeea0bede4feef5c4b4f3fe750277ab9c9f3d620f1a0acdc7ae740 - Sigstore transparency entry: 414248343
- Sigstore integration time:
-
Permalink:
scikit-hep/uhi@4ad73170f75108db7eb62805309267d37c7f5035 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/scikit-hep
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@4ad73170f75108db7eb62805309267d37c7f5035 -
Trigger Event:
release
-
Statement type: