Installation Guide¶
Risk Bridge is designed for modern Python environments, prioritizing fast dependency resolution, strict typing, and reproducible builds.
Requirements¶
- Python Version: Python 3.11, 3.12, or 3.13.
- Operating System: macOS, Linux, or Windows.
- Package Manager:
uvis strongly recommended for speed and lockfile integrity, though standardpipis fully supported.
Standard Installation (PyPI)¶
To install the latest release (1.0.5) from PyPI:
Using uv (Recommended)¶
Add risk-bridge to your existing project:
Or install it in an isolated tool environment:
Using pip¶
Installing from Source¶
For development, contributing, or reproducing the full replication case suite:
- Clone the Repository:
- Synchronize Dependencies with
uv:
- Verify the Environment:
Run the unit test suite and type check:
All 96 public test suite cases should execute and pass cleanly.
Core Dependencies¶
Risk Bridge relies on a focused set of scientific and tabular computing libraries:
| Package | Minimum Version | Purpose |
|---|---|---|
comp-builders |
\(\ge 1.0.0\) | Explicit Result composition and functional error handling |
numpy |
\(\ge 2.4.2\) | Vectorized numerical operations and linear algebra |
scipy |
\(\ge 1.17.1\) | Statistical distributions and numerical optimizers (trust-constr, SLSQP, BFGS) |
scikit-learn |
\(\ge 1.8.0\) | Base risk logistic regression and ROC metrics |
polars |
\(\ge 1.38.1\) | High-performance dataframe manipulation and schema enforcement |
pandas |
\(\ge 3.0.1\) | Interoperability and legacy data exchange |
rdata |
\(\ge 1.0.0\) | Conversion and parsing of R dataset formats |
Public Reproduction Case Runners¶
The public wheel and source distributions include four curated, privacy-safe reproduction cases:
cases.numerical_validationcases.external_calibration_validationcases.synthetic_transport_examplecases.runtime_support_scaling
After installing from PyPI, these runners can be invoked directly as Python modules: