Repository navigation
0.4.0
It uses the Rust core 0.4.0.
Changed
- Tables, validations and conditional formats read back as the values you
add: iteratingsheet.validationsgivesDataValidationvalues, and
sheet.conditional_formatsgivesConditionalFormatvalues, instead of
tuples. Validation bounds read as numbers and list choices as a tuple. ConditionalFormattakesranges=likeDataValidation, and can apply
to several ranges:ConditionalFormat.cell(">", 5, ranges="B2:B9", ...).DataValidation.liststores its choices as a tuple, so rules are hashable.
list_fromandcustomdrop a leading=.Properties.createdandProperties.modifiedare timezone-aware
datetimevalues. Assigning a naivedatetimeraisesInvalidInputError.Table.totals_rowtakes part in equality.
Added
- Charts:
sheet.chartsadds, reads and removes column, bar, line, area,
pie, doughnut and scatter charts made ofSeries. - Printing:
sheet.page_setupreads and sets aPageSetupwith 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, andoutline_levelon
sheet.rows(...)andsheet.columns(...)to group rows and columns.DataValidation.dateandDataValidation.time. Date and time rules read
back withdatetime.dateanddatetime.timebounds.- Iterating
sheet.imagesgivesPlacedImagevalues.sheet.images,
sheet.chartsandsheet.conditional_formatshaveremove(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,
DefinedNamesandValidationValueare exported fromcrabxl.crabxl.load_workbookand other names that moved tocrabxl.openpyxl
raise anImportErrorthat 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.