A Python library for automating Microsoft PowerPoint operations.
pptxlib is a high-level Python library that provides a simple and intuitive interface for automating Microsoft PowerPoint operations. It allows you to create, modify, and manage PowerPoint presentations programmatically.
- Create and manage PowerPoint presentations
- Add and modify slides
- Work with shapes, tables, and charts
- Customize text, colors, and formatting
- Automate presentation generation
- Support for Windows platforms
from pptxlib import App
app = App()
# Optional: keep the window minimized (PowerPoint doesn't allow hiding the UI)
app.minimize()
# Or create a presentation without opening a window
prs = app.presentations.add(with_window=False)
slide = prs.slides.add()
shape = slide.shapes.add("Rectangle", 100, 100, 200, 100)pip install pptxlibOptional extras:
- For image support (Pillow):
pip install "pptxlib[images]"- For Matplotlib figure export:
pip install "pptxlib[figures]"- Windows operating system
- Microsoft PowerPoint
- Python 3.11 or higher