4

This is not a question, asking for a (single) tool, although to answer my question, of course tools are involved. The focus of this question is, asking for advice in which direction to head for.

I have a JAVA-background, so in order to generate any document, Jasper Reports are a good starting point.

Coming to Python, I am facing the requirement, that our customer wants either PDF output oder (ideally) .docx (Office 2010). Since Office 2010 is able to read .odt, my first approach was using py3o to do the job in Libreoffice. But that was a bit dissatisfying. The compatibility between Libreoffice and MS Office isn't as good as expected.

Would it be a better approach to target PDF and use LaTeX to generate the document? I took a look at weasyprint which generates PDF from HTML and CSS. The demo looks quite promising, but I hesitate to use CSS for the job.

My question is: what is the common way to deal with "reports" under python?

P.S.: I should mention, that the software is required to be Open Source or has to have at least a community version

closed as too broad by user40980, user22815, durron597, Kilian Foth, gnat Oct 27 '15 at 21:30

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Weasyprint can be found at weasyprint.org – Mawg Oct 26 '15 at 14:26
  • Reporting seems to be an afterthought, as it is with most platforms these days. – Alan B May 23 at 10:48
2

Here are two popular ones:

pyPDF2

ReportLab

As far as I know ReportLab has a free and paid version.

  • Thank you very much. Reportlab looks promising. But i forgot to mention: it has to be free software. Thanks anyway. – Thomas Junk Oct 26 '15 at 6:46
  • Well I was reading and they have the open-source version meaning you'll have to redistribute the software as open source as well. That how I understood it. :) – jtothebee Oct 26 '15 at 10:40
  • It is not the solution, I hexpected or hoped for, but since no other answers are available, I accept this one ;) – Thomas Junk Oct 27 '15 at 20:04
  • Well I got a downvote. I was just supposed to comment it but sadly didn't have enough reputation points yet. The answer accepted was much appreciated. – jtothebee Oct 28 '15 at 9:07
  • It wasn't me ;) I can not understand the decision to downvote. Reportlab is a fair choice. – Thomas Junk Oct 28 '15 at 9:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.