Skip to main content

Create a pptx from plain text

Project description

Create a pptx from a yaml file.


pip install pypptx


To generate the pptx from a yaml file

pptx file.yaml

Input yaml example

    - title: first title
      text: some text
      layout: 0
    - title: second title
      text: more text
      layout: 1
        - path: images/blue.jpg
          top: 7
          left: 4
          height: 5
        - path: images/blue.jpg
          top: 5
          left: 10
    - title: third slide
      text: with the previous layout

This repository have a yaml file called example.yaml with a example of the input syntax.

List the layouts ids to use in yaml file

pptx -l
0 Title Slide
1 Title and Content

With the layout id select which use

- title: title
  text: subtitle
  layout: 0
- title: Other slide
  text: with other layout
  layout: 1


Some people prefer usage a pptx, in this case I prefer write a plain text to generate the pptx.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pypptx, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size pypptx-0.2.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page