WolfSuiteWolfXLWolfPPTWolfDocx

WolfPPT - table edits

Update a table in an existing PowerPoint deck with Python

Refresh the numbers in a KPI table without rebuilding the slide. WolfPPT finds the table on an existing slide, sets cell text through the python-pptx-style table.cell(row, column) call, and saves a copy where only that slide's XML changes.

Set one cell in an existing table

from wolfppt import Presentation

prs = Presentation("kpi_review.pptx")
table = next(s for s in prs.slides[0].shapes if s.has_table).table
table.cell(1, 1).text = "$4.2M"
prs.save("kpi_review_updated.pptx")

Row and column indexes start at zero, as in python-pptx. The same table object also exposes rows and columns collections with insert(index) and remove(index) for decks where the row count changes.

When to use WolfPPT and when to use python-pptx

  • Use WolfPPT when the table lives in a deck your team already formats by hand and a script should update its values while every other part of the file keeps its original bytes.
  • Use python-pptx when you create the table and the deck from code, or need a table API the WolfPPT facade does not list in its compatibility matrix.

Limitations

  • Inserted rows and columns start with empty cell text.
  • Deleting a row or column that crosses a merged cell, or the only remaining row or column, is refused.
  • Mutation guards refuse unsafe edits instead of writing them.

Review the WolfPPT compatibility matrix

Install WolfPPT

The public WolfPPT release is MIT-licensed and free, including commercial use.

pip install wolfppt

PyPI wheels cover CPython 3.11 to 3.14 on Linux x86_64 and aarch64 and on macOS arm64. Source, tests, and the full facade reference live at github.com/wolfiesch/wolfppt-oss.

Related tasks