Web based Reporting tool for Python

vasudevram vasudevram at gmail.com
Tue Aug 7 10:07:48 EDT 2007


Madhu Alagu wrote:
> Hi
>
>
>
> I am looking template based report tools for python.It has the ability
> to deliver rich content onto the screen, to the printer or into PDF,
> HTML, XLS, CSV and XML files.
>
>
>
>
>
> Thanks,
>
> Madhu Alagu

I don't know if there's a _single_ tool that can do all you want
(there may be, just that I don't know of one), but there are many
tools that can each do some part of it. Here are some, off the top of
my head - Googling should get you more for each category.

For templating - Cheetah, others.

For PDF - ReportLab. PDFLib has Python bindings too, but its paid for
commercial use, IIRC.

For HTML - Python standard library itself has some stuff, there must
be others.

For XLS/CSV - CSV output is easy enough to "roll your own". Then
import the CSV into Excel. If this isn't good enough (and it may not
be, depending on your needs, as it requires manual (ok, it is possible
to sort of automate that too using COM) import of the CSV into Excel.
Google for a Python lib for direct XLS generation.

For XML - like CSV, for simple XML, can be written by you (its just
outputting XML tags, attributes and content from your code). There
might be issues with encodings, etc. - in which case use a lib. Python
has many XML libs - do some research.
David Mertz and Uche Ogbuji, among others, have written a lot of
articles on Python and XML, many of them are about reviewing and
comparing various libs like ElementTree, Gnosis XML utilities  and
others. Many of those and other articles are on IBM developerWorks and
XML.com.

Vasudev Ram
http://www.dancingbison.com
http://jugad.livejournal.com
http://sourceforge.net/projects/xtopdf




More information about the Python-list mailing list