pptx

Installation
SKILL.md

pptx

Work with PowerPoint .pptx files using python-pptx (preinstalled). A .pptx is a ZIP of XML parts; python-pptx handles the structure so you rarely touch XML. Drop to raw OOXML only for the few things the library can't express (see Advanced).

Run complete Python source with code_execution in the current workspace dir where uploaded files land. Refer to the deck exactly as the Generated artifacts list names it. Use exec only for a genuinely shell-only command; never put this source in python -c or a heredoc.

Mental model

  • A presentation has slides; each slide is built from a layout; layouts live on slide masters. Layouts define placeholders (title, body, picture, etc.) by idx and type.
  • A slide holds shapes: placeholders, text boxes, pictures, tables, charts.
  • Shapes with text expose .text_frame.paragraphs.runs. A run is the unit that carries formatting (font, size, bold, color).
  • Units are EMU. Use the helpers: from pptx.util import Inches, Pt, Emu.
Installs
10
Repository
hkuds/deeptutor
GitHub Stars
39.2K
First Seen
Jul 7, 2026
pptx — hkuds/deeptutor