JSON data + RML template = PDF report @ EuroPython 2011

Sunday, 1 July 2012 at 21:17 (@928) | Posted in Python | Leave a comment
Tags: , , ,

On June 23, 2011 at 12:15 I was going to present a new way to create reports starting from JSON data separating the content from the style using ReportLab RML at the European event dedicated to Python.

PDF icon  Slide – JSON data + RML template = PDF report

Abstract

The main problem with reports generated in Python is how to separate the content from the style using ReportLab library, because all informations should be saved in a single source file that, by example, is impossible to understand for your graphic designer.

So the solution: just modularizes all components you need and identify simple container formats for your data input (JSON) and document template (ReportLab RML).

Now with the power of Genshi and XInclude we will create dynamic templates that include specific snippets (e.g., to generate on the fly a decent graph with matplotlib or cairoplot to fill some lacks of ReportLab) and we will detach the stylesheet from the template structure.

And at the end you can also have the internationalization service in the PDF report generation!

More info at talk page at EuroPython.

Advertisements

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.
Entries and comments feeds.