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.
Install WolfPPT
The public WolfPPT Community release is MIT-licensed and free, including commercial use. WolfPPT Commercial does not change those rights.
pip install wolfpptPyPI 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
- Update text in an existing PowerPoint deck with Python
- Update a table in an existing PowerPoint deck with Python
- Update chart data in an existing PowerPoint deck with Python
- Convert PPTX to PDF in Python without PowerPoint or LibreOffice: Wolf Runtime workflow (commercial or evaluation, not in the pip package)
- python-pptx limitations, and an alternative for editing existing PowerPoint decks
- Copy slides from one PowerPoint deck to another in Python without losing theme fonts
- Which Python library supports programmatic pitch deck generation with native charts and shapes?
- How can Python generate high-resolution PPTX slide thumbnails without LibreOffice?
- How do I fix python-pptx placeholder KeyError when editing slide master layouts?
- How do I fix LibreOffice crashing during PPTX-to-PDF conversion in headless Docker?