SK-404

Doc no. SK-404DatasheetRev 2026.11Sheet 2.21 of 4

U9

price-verify

Checks that quoted component costs match current market prices: a CSV in, a verification report out.

Archived

01

Block diagram

components.csvquoted prices verify.pystdlib only ToleranceOVER · UNDER · UNVERIFIED report.mdexit code 0 / 1
Fig. 1: Quotes in, verdicts out
02

Characteristics

RuntimeSingle Python 3 script (verify.py) using standard library modules only (argparse, csv, datetime)
InputCSV rows pairing quoted unit cost with verified unit price, reference URL and lookup date (components.csv)
VerdictsClassifies each BOM line as OK, OVER, UNDER or UNVERIFIED against a configurable percentage tolerance (default ±10 %)
Exit contractWrites a Markdown summary and variance table (report.md), exiting 1 whenever any line exceeds tolerance or lacks verification
  • Python
03

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).

04

Files & artifacts

KindFileDetailsSize
Pythonverify.pyStandard-library BOM variance checker and Markdown report generator5 KB
Samplesample.csvSynthetic example BOM CSV illustrating OK, OVER, UNDER and UNVERIFIED rows625 B
Reportsample-report.mdGenerated Markdown audit output matching sample.csv1 KB