Jinja2 is a templating engine for python. It is mostly known in combination with the micro web service Flask. However, it can not only be used to modify HTML files, but all sort of text files. Here I want to show you how to use Jinja2 in combination with Latex. Latex allows you to create high quality documents. It is the de facto standard for the publication of scientific documents.
With this combination we are able to create automatically highly professional reports. There is another Python library called PyLaTeX with which you can perform the same task. If you start completely from the beginning it might be a good choice. PyLaTeX is completely in Python and there are no .tex files needed. However, Jinja2 makes it possible to adopt existing Latex reports and it separates the logic from the presentation.
That is enough with the introductory word, lets start.