You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expand the Python binding to cover the full C API and publish wheels #117
The ctypes Python binding currently exposes only get_version, get_stp, get_stp_table, get_default_table, and get_csda_table. The C library offers considerably more, and a first-class Python wrapper is a stated goal alongside the WASM web app.
Gaps
Not yet wrapped:
Inverse stopping power (dedx_get_inverse_stp) and inverse CSDA (dedx_get_inverse_csda).
The package is dev-install only (requires a locally built .so via LIBDEDX_SO). There are no published wheels.
Proposed change
Extend python/libdedx/_api.py (and the .pyi stubs) to wrap the full API, with numpy-friendly array helpers and Pythonic error handling (raise on *err).
Build and publish wheels (manylinux/macOS/Windows) bundling the native library, to PyPI, via CI.
Acceptance criteria
Inverse stp, inverse csda, unit conversion, custom compounds, I-value override, and name/list queries are exposed and tested.
Activity