| name | python-pptx |
| description | Create and manipulate PowerPoint presentations programmatically. Build slide decks with layouts, shapes, charts, tables, and images. Generate data-driven presentations from templates. |
| version | 1.0.0 |
| category | data |
| type | skill |
| capabilities | ["presentation_creation","slide_layouts","shape_manipulation","chart_generation","table_creation","image_insertion","template_based_generation","master_slide_customization"] |
| tools | ["python","python-pptx","Pillow"] |
| tags | ["powerpoint","pptx","presentation","slides","charts","office-automation"] |
| platforms | ["windows","macos","linux"] |
| related_skills | ["python-docx","openpyxl","plotly"] |
| requires | [] |
| scripts_exempt | true |
Python Pptx
Overview
Python-pptx is a Python library for creating and updating PowerPoint (.pptx) presentations. This skill covers comprehensive patterns for presentation automation including:
- Presentation creation with multiple slide layouts
- Shape manipulation including text boxes, images, and geometric shapes
- Chart generation for data visualization within slides
- Table creation for structured data display
- Master slide customization for branding consistency
- Template-based generation for consistent presentations
- Placeholder management for dynamic content insertion
When to Use This Skill
USE when:
- Generating presentations from data automatically
- Creating standardized report presentations
- Building slide decks with consistent branding
- Automating dashboard presentations
- Creating training materials from templates
- Generating client presentations from databases
- Building presentation pipelines for regular reports
- Creating slides with charts and tables from data
- Mass-producing presentations with variable content
DON'T USE when:
- Need real-time presentation editing (use PowerPoint)
- Creating presentations with complex animations
- Need advanced transitions (limited support)
- Require embedded videos with playback controls
- Need to preserve complex PowerPoint features
- Creating presentations from scratch without Python (use PowerPoint)
Prerequisites
Installation
pip install python-pptx
uv pip install python-pptx
pip install python-pptx Pillow
pip install python-pptx Pillow lxml
Verify Installation
from pptx import Presentation
from pptx.util import Inches, Pt
from pptx.enum.shapes import MSO_SHAPE
pptx.enum.text PP_ALIGN
()