Currently I have some data in PostGIS. I want to implement the following: users will make a request via web, with parameters like location, scale, layers to be displayed, etc. and I need to provide them with maps in PDF format. The layout of these maps will contain the map itself as well as common cartographic elements like scale bar, north symbol, legend, date, title, etc.
I was looking to Mapnik to render the PDFs. The problem then is how to render the layout (dynamic, since the layers, scale, date...will vary).
What open-source package with Python bindings (or other solution) would you recommend for doing this (I'm looking at QGIS right now)?
I am looking for an alternative to the Esri arcpy.mapping module.