Automated PowerPoint creator for the HM.
For the graduation ceremony of the Munich University of Applied Sciences, a PowerPoint presentation has to be created every year, in which each graduate gets a slide. In order not to have to laboriously create this presentation by hand, this repository contains Python code that creates it almost completely automatically.
(For the chosen one, who now has the honor of creating this presentation for the graduation ceremony: you will find the more extensive powerpoint template in the FS cloud)
This repository contains a Jupyter notebook and the notebook combined into a Python file, which require the following packages:
- os (build in)
- requests
- urllib3
- bs4
- python-pptx
If you use conda you can run the following command in your terminal:
conda env create -f environment.yml
After building the environment you can activate it with:
conda activate pp_creator
and you are good to go.
Note that this code is designed exactly for the template provided and changes must always be made in the PowerPoint slide master AND in the code to avoid errors.
- Make sure you have a link and access to a file server where all the files (txt and jpg) are linked
- Download the template and the notebook or the Python file
- Install all required packages by running the first cell or by using the terminal
- Give the variable url the link to the file register
- Adjust the code or your data and the powerpoint template to your needs
5.5. Run the Python file by using the terminal (cd your/folder/path , pyhton3 pp_creator.py)
OR
5.5. Run the "download cell" in the notebook to download all the data to the folder where the notebook is located
5.6Run the "create cell" to create the powerpoint - Adjust the images in the powerpoint that are not well fitted
- Add your own slides that you need
The txt files for which my code is written are build like this:
Nachname: *first name* Vorname: *last name* Highlight: *bla bla bla* Hobbies: *bla bla bla* Studiengang: *major*
... and are named like this (!important):
GatesBill.txt
GatesBill.jpg
The code and the template covers the following situations:
- There is only a txt for the student and the only information in it are the first name and the last name
- There is also a picture of the student
- In addition to 2., the student provides information about his/her highlights and/or hobbies
- In addition to his name, the student only provides his highlights/hobbies (no picture)
This project is licensed under the MIT License - see the LICENSE
file for details.
leonmarx.de · GitHub @LeonM789