Python bindings for the DSFB-Chemical-Engineering read-only residual-semiotics courts
Project description
dsfb-chemical-engineering-py
Thin pyo3 bindings exposing a focused, file-free subset of the read-only DSFB courts to Python. Standalone workspace (excluded from the host Rust build); crates.io carries the source crate, while installable Python wheels are built + published with maturin.
Surface
import dsfb_chemical_engineering as dsfb
dsfb.version() # -> "0.1.0"
dsfb.classify_unit_pair("degC", "K") # -> "affine_offset_hazard"
dsfb.classify_unit_pair("bar", "Pa") # -> "scale_mismatch"
dsfb.grade_readiness(n_tags=40, n_rows=5000, baseline_present=True, license_cleared=True,
missingness=0.01, unit_coverage=1.0, has_controllers=True)
# -> {"verdict": "ReadyWithCaveats", "n_caveat": ..., "n_critical_missing": 0, "court_hash": "..."}
The heavyweight pipeline (analyze, casefile) stays in the Rust binary / container; these bindings are the
cheap-to-marshal courts (unit consistency, data readiness) for use from Python notebooks.
Build
pip install maturin
cd crates/dsfb-chemical-engineering-py
maturin develop --release # build + install into the active venv
# or: maturin build --release # produce an abi3 wheel (CPython 3.9+) in target/wheels/
The crate also builds with plain cargo build --release (it produces the cdylib). On a very new CPython
(e.g. 3.14, ahead of pyo3's declared support) set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 for the abi3
forward-compatible build.
Bounded
Same non-claims as the underlying objects: advisory, read-only, deterministic, hash-sealed; no control or
safety-instrumented-function authority. Publishing installable wheels (PyPI / maturin publish) is separate
from the crates.io source package.
Citation
If you use DSFB-Chemical-Engineering, please cite:
de Beer, R. (2026). DSFB-Chemical-Engineering: Read-Only Residual Semiotics for Chemometrics-Augmented Fault Detection and Diagnosis in Chemical Engineering, with a Deterministic, Byte-Exact, CUDA-Accelerated Forensic Evidence Court (1.0). Zenodo. https://doi.org/10.5281/zenodo.20443279
See CITATION.cff for the machine-readable record.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dsfb_chemical_engineering_py-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: dsfb_chemical_engineering_py-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 356.7 kB
- Tags: CPython 3.9+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9669b1e68da7acf3795648ab84a2c9726c7314fa2c826f3b1760736b89fcda88
|
|
| MD5 |
fcee35666616af41847f0d28f2a5b04c
|
|
| BLAKE2b-256 |
7c20ba04f12a9805cb512dfa0e297b56bb5d87ddfa62b12be34f570a7a95af88
|