Skip to main content

PyPI version Conda-Forge Python 3.10‒3.14 BSD-3 Clause License Continuous integration tests

Scikit-HEP DOI 10.5281/zenodo.4340632 Documentation Gitter

NSF-1836650 NSF-2121686 NSF-2323298

Uproot is a library for reading and writing ROOT files in pure Python and NumPy.

Unlike the standard C++ ROOT implementation, Uproot is only an I/O library, primarily intended to stream data into machine learning libraries in Python. Unlike PyROOT and root_numpy, Uproot does not depend on C++ ROOT. Instead, it uses Numpy to cast blocks of data from the ROOT file as Numpy arrays.

Installation

Uproot can be installed from PyPI using pip.

pip install uproot

Uproot is also available using conda.

conda install -c conda-forge uproot

If you have already added conda-forge as a channel, the -c conda-forge is unnecessary. Adding the channel is recommended because it ensures that all of your packages use compatible versions (see conda-forge docs):

conda config --add channels conda-forge
conda update --all

Getting help

Start with the tutorials and reference documentation.

Installation for developers

Uproot is an ordinary Python library; you can get a copy of the code with

git clone https://github.com/scikit-hep/uproot5.git

and install it locally by calling pip install -e . in the repository directory.

If you need to develop Awkward Array as well, see its installation for developers.

Dependencies

Uproot's only strict dependencies are Awkward, Cramjam, xxhash, fsspec, NumPy, packaging. Strict dependencies are automatically installed by pip (or conda).

The following libraries are also useful in conjunction with Uproot, but are not necessary. If you call a function that needs one, you'll be prompted to install it. (Conda installs most of these automatically.)

For accessing remote files:

  • s3fs: if reading files with s3:// URIs.
  • xrootd: if reading files with root:// URIs.
  • HTTP/S access is built in (Python standard library).

For distributed computing with Dask:

For exporting TTrees to Pandas:

  • pandas: if library="pd".
  • awkward-pandas: if library="pd" and the data have irregular structure ("jagged" arrays), see awkward-pandas.

For exporting histograms:

  • boost-histogram: if converting histograms to boost-histogram with histogram.to_boost().
  • hist: if converting histograms to hist with histogram.to_hist().

Acknowledgements

Support for this work was provided by NSF cooperative agreements OAC-1836650 and PHY-2323298 (IRIS-HEP), grant OAC-1450377 (DIANA/HEP), and PHY-2121686 (US-CMS LHC Ops).

Thanks especially to the gracious help of Uproot contributors (including the original repository).

Jim Pivarski
Jim Pivarski

💻 📖 🚇 🚧
Pratyush Das
Pratyush Das

💻 🚇
Chris Burr
Chris Burr

💻 🚇
Dmitri Smirnov
Dmitri Smirnov

💻
Matthew Feickert
Matthew Feickert

🚇
Tamas Gal
Tamas Gal

💻
Luke Kreczko
Luke Kreczko

💻 ⚠️
Nicholas Smith
Nicholas Smith

💻
Noah Biederbeck
Noah Biederbeck

💻
Oksana Shadura
Oksana Shadura

💻 🚇
Henry Schreiner
Henry Schreiner

💻 🚇 ⚠️
Mason Proffitt
Mason Proffitt

💻 ⚠️
Jonas Rembser
Jonas Rembser

💻
benkrikler
benkrikler

💻
Hans Dembinski
Hans Dembinski

📖
Marcel R.
Marcel R.

💻
Ruggero Turra
Ruggero Turra

💻
Jonas Rübenach
Jonas Rübenach

💻
bfis
bfis

💻
Raymond Ehlers
Raymond Ehlers

💻
Andrzej Novak
Andrzej Novak

💻
Josh Bendavid
Josh Bendavid

💻
Doug Davis
Doug Davis

💻
Chao Gu
Chao Gu

💻
Lukas Koch
Lukas Koch

💻
Michele Peresano
Michele Peresano

💻
Edoardo
Edoardo

💻
JMSchoeffmann
JMSchoeffmann

💻
alexander-held
alexander-held

💻
Giordon Stark
Giordon Stark

💻
Ryunosuke O'Neil
Ryunosuke O'Neil

💻
ChristopheRappold
ChristopheRappold

📖
Cosmin Deaconu
Cosmin Deaconu

⚠️ 💻
Carlos Pegueros
Carlos Pegueros

📖 💡 ⚠️
Benjamin Tovar
Benjamin Tovar

💻
Duncan Macleod
Duncan Macleod

🚇
mpad
mpad

💻
Peter Fackeldey
Peter Fackeldey

💻
Kush Kothari
Kush Kothari

💻
Aryan Roy
Aryan Roy

💻
Jerry Ling
Jerry Ling

💻
kakwok
kakwok

💻
Dmitry Kalinkin
Dmitry Kalinkin

💻 🚇
Nikolai Hartmann
Nikolai Hartmann

💻
Kilian Lieret
Kilian Lieret

📖
Daniel Cervenkov
Daniel Cervenkov

💻
Beojan Stanislaus
Beojan Stanislaus

💻
Angus Hollands
Angus Hollands

💻 🚧
Luis Antonio Obis Aparicio
Luis Antonio Obis Aparicio

💻
renyhp
renyhp

💻
Lindsey Gray
Lindsey Gray

💻
ioanaif
ioanaif

💻
OTABI Tomoya
OTABI Tomoya

⚠️
Jost Migenda
Jost Migenda

📖
Gaétan Lepage
Gaétan Lepage

⚠️
HaarigerHarald
HaarigerHarald

💻
Ben Greiner
Ben Greiner

⚠️
Robin Sonnabend
Robin Sonnabend

💻
Bo Johnson
Bo Johnson

💻
Miles
Miles

💻
djw9497
djw9497

💻
Piotr Sobczyński
Piotr Sobczyński

💻
Giedrius Juškevičius
Giedrius Juškevičius

💻
MatousVozak
MatousVozak

💻
Andrea Serafini
Andrea Serafini

💻
Andres Rios Tascon
Andres Rios Tascon

💻
Iason Krommydas
Iason Krommydas

💻
fstrug
fstrug

💻
Zach Marshall
Zach Marshall

💻
Mingrun Li
Mingrun Li

💻
Ianna Osborne
Ianna Osborne

💻
Rachit931
Rachit931

📖
Wouter Deconinck
Wouter Deconinck

💻
Karan Singh
Karan Singh

💻
Nick Prouse
Nick Prouse

💻
Yokubas
Yokubas

💻
Tom Eichlersmith
Tom Eichlersmith

📖

💻: code, 📖: documentation, 🚇: infrastructure, 🚧: maintainance, ⚠: tests/feedback, 🤔: foundational ideas.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uproot-5.7.6.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uproot-5.7.6-py3-none-any.whl (405.8 kB view details)

Uploaded Python 3

File details

Details for the file uproot-5.7.6.tar.gz.

File metadata

  • Download URL: uproot-5.7.6.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for uproot-5.7.6.tar.gz
Algorithm Hash digest
SHA256 a990a6a5f6fa4669daa0af9a7ca9503e574f82e96bf4c72d42de5daa5926fc74
MD5 2f410a3dc53fbe1c50357749a4f0ec4b
BLAKE2b-256 6a01927f0cd22008728785ea070ce20d224ec6ecdc3382afebd11b4ee6414956

See more details on using hashes here.

Provenance

The following attestation bundles were made for uproot-5.7.6.tar.gz:

Publisher: deploy.yml on scikit-hep/uproot5

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uproot-5.7.6-py3-none-any.whl.

File metadata

  • Download URL: uproot-5.7.6-py3-none-any.whl
  • Upload date:
  • Size: 405.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for uproot-5.7.6-py3-none-any.whl
Algorithm Hash digest
SHA256 60e0c615c55f6e4e2c573876bc851f0784be05ba49dd20d028b09ebc33bb7674
MD5 4b1e7b2b852d2c47c792650a3d2f15ab
BLAKE2b-256 920c1b2aaa136ae0c506d9f93472b3d33840850fc83f2a03fe2b0c5f3e0c48ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for uproot-5.7.6-py3-none-any.whl:

Publisher: deploy.yml on scikit-hep/uproot5

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

5.7.6 This release

2 files

5.7.5

2 files

5.7.4

2 files

5.7.3

2 files

5.7.2

2 files

5.7.1

2 files

5.7.0

2 files

5.6.9

2 files

5.6.8

2 files

5.6.7

2 files

5.6.6

2 files

5.6.5

2 files

5.6.4

2 files

5.6.3

2 files

5.6.2

2 files

5.6.1

2 files

5.6.0

2 files

5.5.2

2 files

5.5.1

2 files

5.5.0

2 files

5.4.2

2 files

5.4.1

2 files

5.4.0

2 files

5.3.13

2 files

5.3.12

2 files

5.3.11

2 files

5.3.10

2 files

5.3.9

2 files

5.3.8

2 files

5.3.7

2 files

5.3.6

2 files

5.3.5

2 files

5.3.4

2 files

5.3.3

2 files

5.3.2

2 files

5.3.1

2 files

5.3.0

2 files

5.2.2

2 files

5.2.1

2 files

5.2.0

2 files

5.1.2

2 files

5.1.1

2 files

5.1.0

2 files

5.0.13

2 files

5.0.12

2 files

5.0.11

2 files

5.0.10

2 files

5.0.9

2 files

5.0.8

2 files

5.0.7

2 files

5.0.6

2 files

5.0.5

2 files

5.0.4

2 files

5.0.3

2 files

5.0.2

2 files

5.0.1

2 files

5.0.0

2 files

4.3.7

2 files

4.3.6

2 files

4.3.5

2 files

4.3.4

2 files

4.3.3

2 files

4.3.2

2 files

4.3.1

2 files

4.3.0

2 files

4.2.4

2 files

4.2.3

2 files

4.2.2

2 files

4.2.1

2 files

4.2.0

2 files

4.1.9

2 files

4.1.8

2 files

4.1.7

2 files

4.1.6

2 files

4.1.5

2 files

4.1.4

2 files

4.1.3

2 files

4.1.2

2 files

4.1.1

2 files

4.1.0

2 files

4.0.11

2 files

4.0.10

2 files

4.0.9

2 files

4.0.8

2 files

4.0.7

2 files

4.0.6

2 files

4.0.5

2 files

4.0.4

2 files

4.0.3

2 files

4.0.2

2 files

4.0.1

2 files

4.0.0

2 files

3.13.1

2 files

3.13.0

2 files

3.12.0

2 files

3.11.7

2 files

3.11.6

2 files

3.11.5

2 files

3.11.4

2 files

3.11.3

2 files

3.11.2

2 files

3.11.1

2 files

3.11.0

2 files

3.10.12

2 files

3.10.11

2 files

3.10.10

2 files

3.10.9

2 files

3.10.8

2 files

3.10.7

2 files

3.10.6

2 files

3.10.5

2 files

3.10.4

2 files

3.10.3

2 files

3.10.2

2 files

3.10.1

2 files

3.10.0

2 files

3.9.3

2 files

3.9.2

2 files

3.9.1

2 files

3.9.0

2 files

3.8.2

2 files

3.8.1

2 files

3.8.0

2 files

3.7.2

2 files

3.7.1

2 files

3.7.0

2 files

3.6.5

2 files

3.6.4

2 files

3.6.3

2 files

3.6.2

2 files

3.6.1

2 files

3.6.0

2 files

3.5.2

2 files

3.5.1

2 files

3.5.0

2 files

3.4.21

2 files

3.4.19

2 files

3.4.18

2 files

3.4.17

2 files

3.4.16

2 files

3.4.15

2 files

3.4.14

2 files

3.4.13

2 files

3.4.12

2 files

3.4.11

2 files

3.4.10

2 files

3.4.9

2 files

3.4.8

1 file

3.4.7

1 file

3.4.6

2 files

3.4.5

2 files

3.4.4

2 files

3.4.3

2 files

3.4.2

2 files

3.4.1

2 files

3.4.0

2 files

3.3.6

2 files

3.3.5

2 files

3.3.4

2 files

3.3.3

2 files

3.3.2

2 files

3.3.1

2 files

3.3.0

2 files

3.2.15

2 files

3.2.14

2 files

3.2.13

2 files

3.2.12

2 files

3.2.11

2 files

3.2.10

2 files

3.2.9

2 files

3.2.8

2 files

3.2.7

2 files

3.2.6

2 files

3.2.5

2 files

3.2.4

2 files

3.2.3

2 files

3.2.2

2 files

3.2.1

2 files

3.2.0

2 files

3.1.2

2 files

3.1.1

2 files

3.1.0

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.9.11

2 files

2.9.10

2 files

2.9.9

2 files

2.9.8

1 file

2.9.7

1 file

2.9.6

1 file

2.9.5

1 file

2.9.4

1 file

2.9.3

1 file

2.9.2

1 file

2.9.1

1 file

2.9.0

1 file

2.8.33

1 file

2.8.32

1 file

2.8.31

1 file

2.8.30

1 file

2.8.29

1 file

2.8.28

1 file

2.8.27

1 file

2.8.26

1 file

2.8.25

1 file

2.8.24

1 file

2.8.23

1 file

2.8.21

1 file

2.8.20

1 file

2.8.19

1 file

2.8.18

1 file

2.8.17

1 file

2.8.16

1 file

2.8.15

1 file

2.8.14

1 file

2.8.13

1 file

2.8.12

1 file

2.8.11

1 file

2.8.10

1 file

2.8.9

1 file

2.8.8

1 file

2.8.7

1 file

2.8.6

1 file

2.8.5

1 file

2.8.4

1 file

2.8.3

1 file

2.8.2

1 file

2.8.1

1 file

2.8.0

1 file

2.7.4

1 file

2.7.3

1 file

2.7.1

1 file

2.7.0

1 file

2.6.19

1 file

2.6.18

1 file

2.6.17

1 file

2.6.16

1 file

2.6.15

1 file

2.6.14

1 file

2.6.13

1 file

2.6.12

1 file

2.6.11

1 file

2.6.10

1 file

2.6.9

1 file

2.6.8

1 file

2.6.7

1 file

2.6.6

1 file

2.6.5

1 file

2.6.4

1 file

2.6.3

1 file

2.6.2

1 file

2.6.1

1 file

2.6.0

1 file

2.5.22

1 file

2.5.21

1 file

2.5.20

1 file

2.5.18

1 file

2.5.17

1 file

2.5.16

1 file

2.5.15

1 file

2.5.14

1 file

2.5.13

1 file

2.5.12

1 file

2.5.11

1 file

2.5.10

1 file

2.5.9

1 file

2.5.8

1 file

2.5.5

1 file

2.5.4

1 file

2.5.3

1 file

2.5.2

1 file

2.5.0

1 file

2.4.1

1 file

2.4.0

1 file

2.3.3

1 file

2.3.2

1 file

2.3.1

1 file

2.3.0

1 file

2.1.5

1 file

2.1.4

1 file

2.1.2

1 file

2.1.1

1 file

2.0.5

1 file

2.0.4

1 file

2.0.3

1 file

2.0.2

1 file

1.6.2

1 file

1.6.1

1 file

1.6.0

1 file

1.5.3

1 file

1.5.0

1 file

1.4.2

1 file

1.3.1

1 file

1.3.0

1 file

1.2.1

1 file

1.2.0

1 file

1.0.1

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page