Skip to content

0.4.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 14:33
ccbb8c2

It uses the Rust core 0.4.0.

Changed

  • Tables, validations and conditional formats read back as the values you
    add: iterating sheet.validations gives DataValidation values, and
    sheet.conditional_formats gives ConditionalFormat values, instead of
    tuples. Validation bounds read as numbers and list choices as a tuple.
  • ConditionalFormat takes ranges= like DataValidation, and can apply
    to several ranges: ConditionalFormat.cell(">", 5, ranges="B2:B9", ...).
  • DataValidation.list stores its choices as a tuple, so rules are hashable.
    list_from and custom drop a leading =.
  • Properties.created and Properties.modified are timezone-aware
    datetime values. Assigning a naive datetime raises InvalidInputError.
  • Table.totals_row takes part in equality.

Added

  • Charts: sheet.charts adds, reads and removes column, bar, line, area,
    pie, doughnut and scatter charts made of Series.
  • Printing: sheet.page_setup reads and sets a PageSetup with orientation,
    paper size, scale, fit to pages, Margins, centering, grid lines, print
    area and repeated title rows and columns.
  • sheet.auto_filter, sheet.tab_color, and outline_level on
    sheet.rows(...) and sheet.columns(...) to group rows and columns.
  • DataValidation.date and DataValidation.time. Date and time rules read
    back with datetime.date and datetime.time bounds.
  • Iterating sheet.images gives PlacedImage values. sheet.images,
    sheet.charts and sheet.conditional_formats have remove(ref).
  • Table(totals_row=True) adds a table whose last row is a totals row. Its
    cells hold text, a formula or nothing; Excel rejects other values there.
  • Tables read back banded_rows; rules read back their comparison, second
    bound, blank handling, prompt, error message and style.
  • Merges, Tables, Validations, ConditionalFormats, Images,
    DefinedNames and ValidationValue are exported from crabxl.
  • crabxl.load_workbook and other names that moved to crabxl.openpyxl
    raise an ImportError that names the new location.

Fixed

  • A worksheet renamed through one handle is renamed for every handle:
    book.worksheets["Data"] gives the same object each time.