Python, how to insert value in Powerpoint template?
<p>I want to use an existing powerpoint presentation to generate a series of reports:</p>

<p>In my imagination the powerpoint slides will have content in such or similar form:</p>

<pre><code>Date of report: {{report_date}} 
Number of Sales: {{no_sales}}
...
</code></pre>

<p>Then my python app opens the powerpoint, fills in the values for this report and saves the report with a new name.
I googled, but could not find a solution for this.</p>

<p>There is python-pptx out there, but this is all about creating a new presentation and not inserting values in a template.</p>

<p>Can anybody advice?</p>

<p>I tried this on a ".ppx" file I had hanging around.<br>
A microsoft office power point ".pptx" file is in ".zip" format.<br>
When I unzipped my file, I got an ".xml" file and three directories.<br>
My ".pptx" file has 116 slides comprised of 3,477 files and 22 directories/subdirectories.<br>
Normally, I would say it is not workable, but since you have only two short changes you probably could figure out what to change and zip the files to make a new ".ppx" file.<br>
A warning: there are some xml blobs of binary data in one or more of the ".xml" files.</p>

python powerpoint