uproot.source.file — Uproot documentation

# uproot.source.file

This module defines a physical layer for local files.

Defines a uproot.source.file.FileResource (wrapped Python file handle) and two sources: uproot.MultithreadedFileSource and uproot.MemmapSource, which provide thread-safe local file readers using many file handles or a memory-mapped file, respectively.

If the filesystem or operating system does not support memory-mapped files, the uproot.MultithreadedFileSource is an automatic fallback.