Skip to content

0.11.0

Latest

Choose a tag to compare

@Ameyanagi Ameyanagi released this 17 Aug 01:19
· 2 commits to main since this release

Table styling release: designed defaults, named presets, and per-call overrides. Render-verified through LibreOffice and PowerPoint.

Added

  • Named table presets: add_table(data, style="publication") — an academic booktabs look (no fills, horizontal rules only, regular-weight header). Also "minimal", "striped", "dark", and "colorful" (per-column accent colors with a gray row-label column). Unknown preset names raise with the available list
  • Per-call table styling: pass a dict as style to override spec keys on top of the theme/default spec — header_fill, band_fills, borders, fill="none", header_bold, column_accents, label_fill, band_blend, and more
  • Table rules: booktabs-style horizontal borders via the borders spec key, widths in points; interior rules are written to both sides of the cell boundary so every renderer draws them
  • Hex colors: "#1F2430" / "#fff" now work anywhere colors are accepted; invalid hex raises a clear ValueError

Changed

  • Plain tables look designed: without a theme or explicit style, tables use the light theme's spec instead of the bare python-pptx default
  • Table rows hug their content instead of stretching to fill the bounding height
  • Grid cells center their content: grid[r, c].add_text(...) defaults to centered alignment, and tables are vertically centered within their cell

Also ships everything from the unreleased 0.10.0 entry (fluent Deck builder, auto-pagination, design blocks) — see CHANGELOG.md.