Python bindings to oxyroot. Makes reading .root files blazing fast ๐Ÿš€

typing boilerplate

+42
+42
python/oxyroot/__init__.pyi
··· 1 + from typing import Iterator, List, Optional 2 + import numpy as np 3 + 4 + class RootFile: 5 + path: str 6 + def __init__(self, path: str) -> None: ... 7 + def keys(self) -> List[str]: ... 8 + def __getitem__(self, name: str) -> Tree: ... 9 + 10 + class Tree: 11 + path: str 12 + name: str 13 + def branches(self) -> List[str]: ... 14 + def __getitem__(self, name: str) -> Branch: ... 15 + def __iter__(self) -> Iterator[Branch]: ... 16 + def to_parquet(self, output_file: str, overwrite: bool = False, compression: str = "snappy", columns: Optional[List[str]] = None) -> None: ... 17 + 18 + class Branch: 19 + path: str 20 + tree_name: str 21 + name: str 22 + def array(self) -> np.ndarray: ... 23 + @property 24 + def typename(self) -> str: ... 25 + 26 + class BranchIterator: 27 + def __iter__(self) -> "BranchIterator": ... 28 + def __next__(self) -> Optional[Branch]: ... 29 + 30 + def open( 31 + path: str, 32 + ) -> RootFile: 33 + """ 34 + Opens a ROOT file. 35 + 36 + Args: 37 + path: Path of the ROOT file. 38 + 39 + Returns: 40 + A RootFile object. 41 + """ 42 + ...
python/oxyroot/py.typed

This is a binary file and will not be displayed.