Doc no. SK-404DatasheetRev 2026.11Sheet 2.21 of 4
price-verify
Checks that quoted component costs match current market prices: a CSV in, a verification report out.
Archived
Private repository
$ python3 verify.py sample.csv --tolerance 5
Block diagram
Characteristics
| Runtime | Single Python 3 script (verify.py) using standard library modules only (argparse, csv, datetime) |
|---|---|
| Input | CSV rows pairing quoted unit cost with verified unit price, reference URL and lookup date (components.csv) |
| Verdicts | Classifies each BOM line as OK, OVER, UNDER or UNVERIFIED against a configurable percentage tolerance (default ±10 %) |
| Exit contract | Writes a Markdown summary and variance table (report.md), exiting 1 whenever any line exceeds tolerance or lacks verification |
Overview & build notes
A compact procurement utility written during BOM review to audit quoted assembly prices against manually verified market benchmarks without spreadsheets or third-party dependencies.
verify.py validates required CSV columns, computes per-line quoted vs verified totals, flags lines outside --tolerance, and writes a readable Markdown summary (report.md) suitable for build logs or CI gates.
Included below are the standalone checker script and an anonymized synthetic sample CSV (sample.csv) paired with its generated Markdown report (sample-report.md).
Files & artifacts
| Kind | File | Details | Size |
|---|---|---|---|
| Python | verify.py | Standard-library BOM variance checker and Markdown report generator | 5 KB |
| Sample | sample.csv | Synthetic example BOM CSV illustrating OK, OVER, UNDER and UNVERIFIED rows | 625 B |
| Report | sample-report.md | Generated Markdown audit output matching sample.csv | 1 KB |