Get Lanyrd on your mobile (iPhone, Android and more) - check it out here

JSON data + RML template = PDF report

A session at EuroPython 2011

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!

About the speaker

This person is speaking at this event.
Stefano Cotta Ramusino

whitone

Coverage of this session

Sign in to add slides, notes or videos to this session

EuroPython 2011

Italy Italy, Florence

20th26th June 2011

Tell your friends!

When

Time 12:15pm1:00pm CET

Date Thu 23rd June 2011

Short URL

lanyrd.com/sfwgt

View the schedule

Topics

See something wrong?

Report an issue with this session