uproot
ROOT I/O in pure Python and NumPy.
Decision gist · record as of 2026-08-14
Yes. Uproot is production-stable (Development Status 5), actively maintained, has no known vulnerabilities, and solves a specific problem—reading ROOT files in pure Python—with low install friction. It is the standard choice for HEP researchers and ML engineers working with CERN data who want to avoid C++ ROOT dependencies. Install it if you work with ROOT files or need to integrate them into Python data pipelines.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: pure Python wheel with seven runtime dependencies (awkward, cramjam, fsspec, numpy, packaging, typing-extensions, xxhash) that pip installs automatically.
- Active maintenance with a recent release 41 days ago.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use, modify, and distribute this package freely in both open-source and commercial projects, provided you include the license notice.
last release 2026-07-04 (41 days) · last repo commit 2026-08-13 · 269 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,162,583 downloads/mo, #4,283 on PyPI
Alternatives
Verify before relying
pip install uproot
import uproot
file = uproot.open('data.root')
tree = file['tree_name']
array = tree['branch_name'].array()- Whether remote file access (s3://, root://) requires optional dependencies to be installed separately.
- Performance characteristics when handling very large ROOT files or streaming into distributed frameworks like Dask.
What it is and what it does
Uproot is a pure-Python I/O library for reading and writing ROOT files, the standard data format in high-energy physics experiments. It streams data directly into NumPy arrays and other Python data structures without depending on the C++ ROOT library, making it lightweight and suitable for machine learning pipelines. The package integrates with NumPy, Awkward Array for irregular data, and optional libraries like Pandas and Dask for downstream analysis.
Unlike PyROOT or root_numpy, Uproot does not require a C++ ROOT installation, reducing setup complexity. It handles both simple columnar data and complex nested structures through its Awkward Array dependency. The library supports reading from local files and remote sources (S3, XRootD, HTTP) via fsspec, and can export to Pandas DataFrames or Dask collections for distributed computing.
Use it for
- Stream particle physics detector data from ROOT files into NumPy arrays for machine learning model training.
- Convert ROOT histograms and TTrees to Pandas DataFrames for statistical analysis and plotting.
- Read remote ROOT files from S3 or XRootD servers in a distributed Dask workflow without downloading locally.
- Extract nested or jagged array structures from ROOT files using Awkward Array for complex event data.
- Integrate ROOT data into Python-native analysis pipelines without installing the full C++ ROOT framework.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Uproot is production-stable (Development Status 5), actively maintained, has no known vulnerabilities, and solves a specific problem—reading ROOT files in pure Python—with low install friction. It is the standard choice for HEP researchers and ML engineers working with CERN data who want to avoid C++ ROOT dependencies. Install it if you work with ROOT files or need to integrate them into Python data pipelines.
Install
uproot on PyPI
Before you install
Low friction: pure Python wheel with seven runtime dependencies (awkward, cramjam, fsspec, numpy, packaging, typing-extensions, xxhash) that pip installs automatically. Active maintenance with a recent release 41 days ago.
Requires Python 3.10 or later.
License in practice
BSD-3-Clause is permissive; you can use, modify, and distribute this package freely in both open-source and commercial projects, provided you include the license notice.
Quickstart
pip install uproot
import uproot
file = uproot.open('data.root')
tree = file['tree_name']
array = tree['branch_name'].array()
Verify before relying
- Whether remote file access (s3://, root://) requires optional dependencies to be installed separately.
- Performance characteristics when handling very large ROOT files or streaming into distributed frameworks like Dask.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesawkwardcramjamfsspecnumpypackagingtyping-extensionsxxhash |
| Maintenance | Actively maintained 41 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,162,583 / month, #4,283 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 :: Information TechnologyIntended Audience :: Science/ResearchOperating System :: MacOSOperating System :: POSIXOperating System :: UnixProgramming 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.14Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Information AnalysisTopic :: Scientific/Engineering :: MathematicsTopic :: Scientific/Engineering :: PhysicsTopic :: Software DevelopmentTopic :: Utilities |
Evidence: uproot-5.7.5-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 › “physics data format parser”
- uprootUproot reads and writes ROOT files (the data format used in…
- igwn-ligolwReads, writes, and manipulates LIGO Light-Weight XML documents used…
- pyulogParses ULog files (a self-describing logging format) and provides…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
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.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also uproot3 · uproot3-methods · coffea · hepconvert · xrootd · correctionlib · hepunits · mplhep · boost-histogram · npTDMS