Skip to content

0.5.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 11:09
d7ce846

It uses the Rust core 0.4.0.

Changed

  • CrabXL needs Python 3.12 or newer. The public type aliases use the
    type statement (PEP 695).
  • A chart no longer holds its place: sheet.charts.add(chart, at="E2:L18"),
    as for pictures. Chart takes the kind, the series and the options.
    Iterating sheet.charts gives PlacedChart values.
  • Rows and Columns are now RowSpan and ColumnSpan, so they differ
    from Row, a row that Reader reads.
  • A streaming sheet uses the collections of a workbook sheet:
    sheet.merges.add(...), sheet.validations.add(...) and
    sheet.conditional_formats.add(...) replace merge, add_validation
    and add_conditional_format.
  • freeze_panes and columns(...).width of a streaming sheet read back the
    values you set, instead of None.
  • from crabxl import load_workbook and the other openpyxl names now raise
    a plain ImportError. Import them from crabxl.openpyxl.

Added

  • Workbook.open and Reader.open accept any bytes-like object, such as
    bytearray, memoryview or mmap.
  • The worksheet collections of Reader and Writer are public types,
    WorksheetReaders and WorksheetWriters, with a names property.
  • Source, Target, Limits, Numbers, Dates and Visibility are
    exported for type annotations.