Skip to content

v2.6.0 — Safe CSV ingestion

Choose a tag to compare

@devlprkhan devlprkhan released this 03 Nov 06:41
· 32 commits to main since this release
b22b087

Added

  • read_csv_safe(): string-first CSV ingestion with contract-driven coercion and an IngestionReport covering per-column detection, output dtypes, missing counts, and every normalization performed.
  • Identifier protection: ID columns and values with leading zeros stay text, with leading_zeros_preserved findings.
  • Spreadsheet artifact handling for numeric fields: thousands separators, currency symbols, percent signs, accounting parentheses, and decimal commas.
  • Date guards for compact YYYYMMDD values and Excel serial dates when the contract declares role="datetime", plus explicit date_format support and an ambiguous_date_format warning.
  • Boolean normalization for Y/N-style tokens with boolean_tokens findings.
  • IngestionError and the on_error="warn" | "raise" | "ignore" policy.
  • mixed_types and empty_column findings.

Documentation

  • New Safe ingestion guide and Upcoming page.
  • Updated API reference, nav, homepage, quickstart, production guide, leak-safe workflow, README, CHANGELOG, and ROADMAP.

Notes

  • The ingestion report contains column names, counts, and messages only; it never includes raw cell values.
  • Without a contract, YYYYMMDD and Excel serial values remain numeric. Declare a datetime role when they are dates.
  • CSV is the supported input for this release; Excel ingestion is planned.
  • Artifact format remains 2.