Enterprise-Grade Risk Intelligence at Global Scale
Author: Ali-datasmith | Contact: rjptmhmmd@gmail.com
Supply Chain Risk Engine is a production-ready platform that processes 1.5M+ global trade records to surface bottlenecks, geopolitical exposure, and financial risk β on zero-cost infrastructure.
- Polars β Rust-backed dataframe engine, 3β5Γ faster than Pandas
- DuckDB β In-process OLAP SQL on raw Parquet, no server required
- Streamlit β Interactive dashboard, free cloud hosting
- NumPy β Vectorized composite risk scoring
- Polars chunked generation (300K rows Γ 5) keeps peak RAM under 400 MB
- DuckDB
parquet_scan()runs GROUP BY aggregations without loading data into RAM - Full risk aggregation completes in under 8 seconds on Colab free CPU
| Signal | Weight |
|---|---|
| Port Congestion | 35% |
| Origin Geopolitical Risk | 30% |
| Destination Risk | 20% |
| Delay Ratio | 10% |
| Disruption Noise | 5% |
# Install
pip install polars duckdb numpy rich
# Run
python engine.py| Module | Status | Description |
|---|---|---|
| Module 1 | β Complete | Data generation, DuckDB risk scoring |
| Module 2 | π In Progress | Streamlit dashboard |
| Module 3 | π Planned | Live API ingestion |
| Module 4 | π Planned | ML anomaly detection |
Built with precision. Engineered for scale. Deployed for free.