Welcome to pypyt’s documentation!

Pypyt is a library to render PowerPoint presentations from python in an easy and intuitive way.

Getting Started

First of all, you need to create a template file with the objects names as shown in this video

Lets assume that you have a template file named __template__.pptx with two shapes: presentation_title and client_name as shown in the image below.

_images/template1.png

In order to render it you might use the following code:

from pypyt import render_and_save_template

    values = {
        'presentation_title': "This is a cool presentation",
        'client_name': "Cool Client"
    }

    render_and_save_template('__template__.pptx', values, 'rendered_ppt.pptx')

This will render a presentation like the one below.

_images/output1.png

For more information about how to use this library, see the User Reference.

For the full documentation, see the API Documentation.

Indices and tables