gluex-ccdb-py

Crates.iogluex-ccdb-py
lib.rsgluex-ccdb-py
version0.1.3
created_at2025-12-18 17:05:28.733178+00
updated_at2026-01-22 18:32:54.00839+00
descriptionPython bindings for the gluex-ccdb Rust crate
homepagehttps://github.com/denehoffman/gluex-rs
repositoryhttps://github.com/denehoffman/gluex-rs
max_upload_size
id1992885
size58,147
Nathaniel D. Hoffman (denehoffman)

documentation

README

gluex-ccdb (Python)

Python bindings around the gluex-ccdb Rust crate. They expose lightweight wrappers for CCDB directories, tables, and columnar payloads without compromising type information.

Installation

uv pip install gluex-ccdb

Example

import gluex_ccdb as ccdb

client = ccdb.CCDB("/data/ccdb.sqlite")
tables = client.fetch("/PHOTON_BEAM/pair_spectrometer/lumi/trig_live", runs=[55_000, 55_005])

for run, dataset in tables.items():
    print(f"columns: {dataset.column_names()}")
    livetime = float(dataset.column(1).row(0))
    print(f"run {run}: livetime = {livetime:.3f}")

License

Dual-licensed under Apache-2.0 or MIT.

Commit count: 77

cargo fmt