How to dynamically generate graphics and PDFs using Python an jinja

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Sonar - Write Clean Python Code. Always.
  • InfluxDB - Access the most powerful time series database as a service
  • SaaSHub - Software Alternatives and Reviews
  • Flask

    The Python micro framework for building web applications.

    A few days ago I was searching the internet for a guide on how to use the jinja library to enable a flask application to generate PDF documents. Since I didn't find anything comprehensible on google, here are my findings and the (partially hacky) code i wrote.

  • Jinja2

    A very fast and expressive template engine.

    jinja: Default templating engine for and dependency of flask

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • segno

    Python QR Code and Micro QR Code encoder

    segno: QR-code generator in python that is capable of SVG output

  • CairoSVG

    Convert your vector images

    cairosvg: Provides the SVG-to-PDF Converter

  • flask-sqlalchemy

    Adds SQLAlchemy support to Flask

    flask-sqlalchemy: ORM for database access

  • flask-login

    Flask user session management.

    flask-login: Provides access to the current username

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts