Metadata-Version: 2.1 Name: uproot Version: 4.1.1 Summary: ROOT I/O in pure Python and NumPy. Home-page: https://github.com/scikit-hep/uproot4 Author: Jim Pivarski Author-email: pivarski@princeton.edu Maintainer: The Scikit-HEP admins Maintainer-email: scikit-hep-admins@googlegroups.com License: BSD-3-Clause Download-URL: https://github.com/scikit-hep/uproot4/releases Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Intended Audience :: Developers Classifier: Intended Audience :: Information Technology Classifier: Intended Audience :: Science/Research Classifier: License :: OSI Approved :: BSD License Classifier: Operating System :: MacOS Classifier: Operating System :: POSIX Classifier: Operating System :: Unix Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Scientific/Engineering Classifier: Topic :: Scientific/Engineering :: Information Analysis Classifier: Topic :: Scientific/Engineering :: Mathematics Classifier: Topic :: Scientific/Engineering :: Physics Classifier: Topic :: Software Development Classifier: Topic :: Utilities Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.6 Description-Content-Type: text/markdown License-File: LICENSE Requires-Dist: numpy Requires-Dist: setuptools Provides-Extra: all Requires-Dist: awkward (>=1.0.0) ; extra == 'all' Requires-Dist: pandas ; extra == 'all' Requires-Dist: boost-histogram (>=0.13) ; extra == 'all' Requires-Dist: hist (>=1.2) ; extra == 'all' Requires-Dist: pytest (>=4.6) ; extra == 'all' Requires-Dist: flake8 ; extra == 'all' Requires-Dist: flake8-print ; extra == 'all' Requires-Dist: scikit-hep-testdata ; extra == 'all' Requires-Dist: lz4 ; extra == 'all' Requires-Dist: xxhash ; extra == 'all' Requires-Dist: requests ; extra == 'all' Provides-Extra: dev Requires-Dist: awkward (>=1.0.0) ; extra == 'dev' Requires-Dist: pandas ; extra == 'dev' Requires-Dist: boost-histogram (>=0.13) ; extra == 'dev' Requires-Dist: hist (>=1.2) ; extra == 'dev' Provides-Extra: test Requires-Dist: pytest (>=4.6) ; extra == 'test' Requires-Dist: flake8 ; extra == 'test' Requires-Dist: flake8-print ; extra == 'test' Requires-Dist: scikit-hep-testdata ; extra == 'test' Requires-Dist: lz4 ; extra == 'test' Requires-Dist: xxhash ; extra == 'test' Requires-Dist: requests ; extra == 'test' [![PyPI version](https://badge.fury.io/py/uproot.svg)](https://pypi.org/project/uproot) [![Conda-Forge](https://img.shields.io/conda/vn/conda-forge/uproot)](https://github.com/conda-forge/uproot-feedstock) [![Python 2.7,3.5β€’3.9](https://img.shields.io/badge/python-2.7%2C3.5%E2%80%923.9-blue)](https://www.python.org) [![BSD-3 Clause License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) [![Continuous integration tests](https://img.shields.io/github/workflow/status/scikit-hep/uproot4/Test%20build/main?label=tests)](https://github.com/scikit-hep/uproot4/actions) [![Scikit-HEP](https://scikit-hep.org/assets/images/Scikit--HEP-Project-blue.svg)](https://scikit-hep.org/) [![NSF-1836650](https://img.shields.io/badge/NSF-1836650-blue.svg)](https://nsf.gov/awardsearch/showAward?AWD_ID=1836650) [![DOI 10.5281/zenodo.4340632](https://zenodo.org/badge/DOI/10.5281/zenodo.4340632.svg)](https://doi.org/10.5281/zenodo.4340632) [![Documentation](https://img.shields.io/badge/docs-online-success)](https://uproot.readthedocs.io/) [![Gitter](https://img.shields.io/badge/chat-online-success)](https://gitter.im/Scikit-HEP/uproot) Uproot is a library for reading and writing [ROOT files](https://root.cern/) 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](https://pypi.org/project/uproot) using pip. [Awkward Array](https://pypi.org/project/awkward) is optional but highly recommended: ```bash pip install uproot awkward ``` Uproot is also available using [conda](https://anaconda.org/conda-forge/uproot) (in this case, [Awkward Array](https://anaconda.org/conda-forge/awkward) is automatically installed): ```bash 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](https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge)): ```bash conda config --add channels conda-forge conda update --all ``` ## Getting help **Start with the [tutorials and reference documentation](https://uproot.readthedocs.io/).** * Report bugs, request features, and ask for additional documentation on [GitHub Issues](https://github.com/scikit-hep/uproot4/issues). * If you have a "How do I...?" question, start a [GitHub Discussion](https://github.com/scikit-hep/uproot4/discussions) with category "Q&A". * Alternatively, ask about it on [StackOverflow with the [uproot] tag](https://stackoverflow.com/questions/tagged/uproot). Be sure to include tags for any other libraries that you use, such as Pandas or PyTorch. * To ask questions in real time, try the Gitter [Scikit-HEP/uproot](https://gitter.im/Scikit-HEP/uproot) chat room. ## Installation for developers Uproot is an ordinary Python library; you can get a copy of the code with ```bash git clone https://github.com/scikit-hep/uproot4.git ``` and install it locally by calling `pip install .` in the repository directory. If you need to develop Awkward Array as well, see its [installation for developers](https://github.com/scikit-hep/awkward-1.0#installation-for-developers). # Dependencies **Uproot's only strict dependency is NumPy.** This is the only dependency that pip will automatically install. **Awkward Array is highly recommended.** It is not a strict dependency to allow Uproot to be used in restrictive environments. If you're using Uproot without Awkward Array, you'll have to use the `library="np"` option or globally set `uproot.default_library` to return arrays as NumPy arrays (see documentation). * `awkward`: be sure to use Awkward Array 1.x. 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 ROOT files, compressed different ways:** * `lz4` and `xxhash`: only if reading ROOT files that have been LZ4-compressed. * `zstandard`: only if reading ROOT files that have been ZSTD-compressed. * `backports.lzma`: only if reading ROOT files that have been LZMA-compressed (in Python 2). **For remote data:** * `xrootd`: only if reading files with `root://` URLs. **For exporting data to other libraries:** * `pandas`: only if `library="pd"`. * `cupy`: only if `library="cp"` (reads arrays onto GPUs). * `boost-histogram`: only if converting histograms to [boost-histogram](https://github.com/scikit-hep/boost-histogram) with `histogram.to_boost()`. * `hist`: only if converting histograms to [hist](https://github.com/scikit-hep/hist) with `histogram.to_hist()`. # Acknowledgements Support for this work was provided by NSF cooperative agreement OAC-1836650 (IRIS-HEP), grant OAC-1450377 (DIANA/HEP) and PHY-1520942 (US-CMS LHC Ops). Thanks especially to the gracious help of Uproot contributors (including the [original repository](https://github.com/scikit-hep/uproot)).

Jim Pivarski

πŸ’» πŸ“– πŸš‡ 🚧

Pratyush Das

πŸ’» πŸš‡

Chris Burr

πŸ’» πŸš‡

Dmitri Smirnov

πŸ’»

Matthew Feickert

πŸš‡

Tamas Gal

πŸ’»

Luke Kreczko

πŸ’» ⚠️

Nicholas Smith

πŸ’»

Noah Biederbeck

πŸ’»

Oksana Shadura

πŸ’» πŸš‡

Henry Schreiner

πŸ’» πŸš‡ ⚠️

Mason Proffitt

πŸ’» ⚠️

Jonas Rembser

πŸ’»

benkrikler

πŸ’»

Hans Dembinski

πŸ“–

Marcel R.

πŸ’»

Ruggero Turra

πŸ’»

Jonas RΓΌbenach

πŸ’»

bfis

πŸ’»

Raymond Ehlers

πŸ’»

Andrzej Novak

πŸ’»

Josh Bendavid

πŸ’»

Doug Davis

πŸ’»

Chao Gu

πŸ’»

Lukas Koch

πŸ’»

Michele Peresano

πŸ’»

Edoardo

πŸ’»

JMSchoeffmann

πŸ’»

alexander-held

πŸ’»

Giordon Stark

πŸ’»

Ryunosuke O'Neil

πŸ’»

ChristopheRappold

πŸ“–

Cosmin Deaconu

⚠️ πŸ’»

Carlos Pegueros

πŸ“– πŸ’‘ ⚠️ βœ…
πŸ’»: code, πŸ“–: documentation, πŸš‡: infrastructure, 🚧: maintainance, ⚠: tests and feedback, πŸ€”: foundational ideas.