hist
Hist classes and utilities
Decision gist · record as of 2026-08-14
Yes. Hist is actively maintained, has no known vulnerabilities, installs with low friction, and is BSD-3-Clause licensed. It is well-suited for anyone doing data binning or histogram analysis in Python, especially those working in scientific or physics domains. The named-axes interface and plotting integration make it more approachable than raw boost-histogram for exploratory work.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction installation as a pure Python wheel.
- Actively maintained with a release 4 days ago.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is a permissive license allowing commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
last release 2026-08-10 (4 days) · last repo commit 2026-08-13 · 139 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 744,588 downloads/mo, #5,172 on PyPI
Alternatives
Verify before relying
pip install hist
from hist import Hist
h = Hist.new.Reg(10, 0, 1, name="x").Int64()
h.fill(x=[0.1, 0.5, 0.9])
print(h)- Whether optional extras like [plot] and [fit] add significant dependencies or install friction.
- Performance characteristics when working with very large histograms or high-dimensional data.
- Compatibility with WebAssembly environments beyond the noted [fit] limitation.
What it is and what it does
Hist is a front-end library for boost-histogram that simplifies histogram creation and manipulation for data analysis workflows. It extends boost-histogram with named axes, simpler construction syntax, and convenience methods for common operations like density computation, projection, and sorting. The library is designed for analysts and researchers who need to bin, aggregate, and visualize data without wrestling with low-level histogram APIs.
The package includes plotting routines for 1D and 2D histograms, support for histogram stacks, and an extended indexing system (UHI+) that allows data-coordinate slicing and rebinning. It depends on boost-histogram for the core binning engine, numpy for array operations, and optional extras for plotting and fitting. The library is actively maintained, supports modern Python versions (3.10+), and is part of the Scikit-HEP ecosystem.
Use it for
- Exploratory data analysis: quickly bin and visualize distributions with named axes and automatic plotting.
- Physics analysis: work with multidimensional histograms using named axes and UHI+ indexing for event selection.
- Statistical summaries: compute density arrays, project histograms to lower dimensions, or convert to profile histograms.
- Stacked comparisons: group related histograms and plot them together with automatic legend generation.
- Interactive notebooks: leverage built-in Jupyter representation and quick plotting for iterative analysis.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Hist is actively maintained, has no known vulnerabilities, installs with low friction, and is BSD-3-Clause licensed. It is well-suited for anyone doing data binning or histogram analysis in Python, especially those working in scientific or physics domains. The named-axes interface and plotting integration make it more approachable than raw boost-histogram for exploratory work.
Install
hist on PyPI
Before you install
Low friction installation as a pure Python wheel. Actively maintained with a release 4 days ago. Requires Python 3.10 or later and five runtime dependencies including boost-histogram and numpy, all standard scientific packages.
Requires Python 3.10 or later.
License in practice
BSD-3-Clause is a permissive license allowing commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install hist
from hist import Hist
h = Hist.new.Reg(10, 0, 1, name="x").Int64()
h.fill(x=[0.1, 0.5, 0.9])
print(h)
Verify before relying
- Whether optional extras like [plot] and [fit] add significant dependencies or install friction.
- Performance characteristics when working with very large histograms or high-dimensional data.
- Compatibility with WebAssembly environments beyond the noted [fit] limitation.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesboost-histogramhistoprintnumpypackagingtyping-extensions |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 744,588 / month, #5,172 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Information AnalysisTopic :: Scientific/Engineering :: MathematicsTopic :: Scientific/Engineering :: PhysicsTyping :: Typed |
Evidence: hist-2.11.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “named axes histograms”
- histHist provides a user-friendly interface for creating, filling, and…
- boost-histogramboost-histogram provides Python bindings to Boost::Histogram, a C++14…
- plotillePlotille renders plots, scatter plots, histograms, and heatmaps…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also boost-histogram · uhi · histoprint · hdrhistogram · hvplot · plotext · ggplot · termplotlib