How lek-glitch/vendor-risk-scorer works
This is a small command-line vendor risk scoring tool. The workflow reads questionnaire rows from CSV, validates required controls, calculates weighted scores and risk tiers, then prints a ranked report and optionally exports CSV. Scoring and tiering are distinct domain stages within the same source file. The sample vendor CSV is example input, not a runtime subsystem. The source excerpt supports the shown calls; no separate services or persistent store are present.
Main entry points: vendor_risk_scorer.py CLI entry
Components 9
CLI workflow
- CLI entry
vendor_risk_scorer.py - CSV processing
vendor_risk_scorer.py
Risk assessment
- Weighted scoring
vendor_risk_scorer.py - Risk tiering
vendor_risk_scorer.py
Reports
- Console report
vendor_risk_scorer.py - CSV export
vendor_risk_scorer.py
Other components
- Operator
- Questionnaire CSV
- Risk report CSV
Connections 8
- Operator → CLI entry: runs
README.md - CLI entry → CSV processing: processes
vendor_risk_scorer.py - Questionnaire CSV → CSV processing: supplies rows
vendor_risk_scorer.py - CSV processing → Weighted scoring: scores rows
vendor_risk_scorer.py - CSV processing → Risk tiering: assigns tier
vendor_risk_scorer.py - CLI entry → Console report: prints results
vendor_risk_scorer.py - CLI entry → CSV export: exports optionally
vendor_risk_scorer.py - CSV export → Risk report CSV: writes
vendor_risk_scorer.py