Mutate only targeted worksheet XML nodes while preserving workbook structure, formula semantics, formatting, and metadata whenever feasible.
- Parse
xl/workbook.xmlto locate sheet metadata - Parse
xl/_rels/workbook.xml.relsto resolve relationship targets - Map human sheet name -> worksheet part path (
xl/worksheets/sheetN.xml)
- Parse worksheet XML and find target
<c r=\"A1\"> - Resolve value from
<v>and cellttype - Shared-string decoding is planned for broader read support
- Ensure target row/cell nodes exist
- Write numeric values into
<v>nodes without object-model reserialization - Block formula overwrite by default (
allow_formula_overwrite=False) - Support guard cells to verify signatures did not change
- Preserve
mc:Ignorablenamespace declarations for compatibility with modern Excel files - Apply workbook recalculation policy (
calcPrflags + optional formula cache clearing)
- No formula authoring
- No style/table/pivot manipulation
- No full workbook object model
- Read config and fetch interval data in your application code.
- Build a deterministic
{A1_ref: numeric_value}mapping. - Call
inject_cellsonce per worksheet for safer high-level orchestration. - Keep a small set of guard cells around critical formulas.