wolfxl-core 0.6.0

Pure-Rust xlsx reader with Excel number-format-aware cell rendering. Backs the wolfxl-cli previewer.
Documentation

wolfxl-core

crates.io docs.rs

Pure-Rust xlsx reader with Excel number-format-aware cell rendering. Backs the wolfxl-cli previewer.

[dependencies]
wolfxl-core = "0.6"
use wolfxl_core::Workbook;

let mut wb = Workbook::open("examples/sample-financials.xlsx")?;
let sheet = wb.first_sheet()?;
let (rows, cols) = sheet.dimensions();
println!("{} rows x {} columns", rows, cols);
# Ok::<_, wolfxl_core::Error>(())

Scope

  • In scope today: read xlsx values, extract best-effort number-format strings via [calamine-styles], classify formats into FormatCategory, render via format_cell, map workbook structure, and infer per-column schema/cardinality summaries.
  • Not yet: full xl/styles.xml cellXfs walker (style ids fall back to None for fixtures generated by openpyxl), write side.

The PyO3 layer in the sibling wolfxl PyPI package still owns its own xlsx implementation; unifying the two is follow-up work.

Exports

  • Workbook, Sheet, Cell, CellValue
  • format_cell, FormatCategory
  • classify_sheet, WorkbookMap, SheetMap, SheetClass
  • infer_sheet_schema, SheetSchema, ColumnSchema, InferredType, Cardinality

License

MIT