| Crates.io | gluex-rcdb-py |
| lib.rs | gluex-rcdb-py |
| version | 0.1.5 |
| created_at | 2025-12-18 17:05:37.202979+00 |
| updated_at | 2026-01-22 18:33:11.450415+00 |
| description | Python bindings for the gluex-rcdb Rust crate |
| homepage | https://github.com/denehoffman/gluex-rs |
| repository | https://github.com/denehoffman/gluex-rs |
| max_upload_size | |
| id | 1992887 |
| size | 55,001 |
Python bindings for the gluex-rcdb crate. This library provides a simple interface for loading run conditions from RCDB which match the given context (run numbers and filters). It also provides common aliases used to determine production data.
uv pip install gluex-rcdb
import gluex_rcdb as rcdb
client = rcdb.RCDB("/data/rcdb.sqlite")
filters = rcdb.all(
rcdb.float_cond("polarization_angle").gt(90.0),
rcdb.aliases.is_production,
)
run_list = client.fetch_runs(run_min=55_000, run_max=55_020, filters=filters)
values = client.fetch(["polarization_direction", "polarization_angle"], runs=run_list)
for run, payload in values.items():
print(run, float(payload["polarization_direction"]))
Dual-licensed under Apache-2.0 or MIT.