Client-editable CSV rules can validate deliveries without changes to the Python importer
A Python data integrator described receiving several delimited files daily, with fields that depend on one another and client rules that change more often than the importer. The author built a handover for a fictional scanning studio, where three rules check delivery ID prefixes, arrival windows, and file counts before a batch is accepted. The rules live in a spreadsheet that is exported to CSV and evaluated by the same Python script, so changing the arrival allowance from 0 to 2 days affected only one batch. The example also surfaced spreadsheet pitfalls, such as blank optional notes and single cells containing commas, while correctly handling legitimate zero counts. The checker supports three documented operations, and the complete kit is released under CC0 for others to adapt.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in