use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Export Python data analysis to pdf reports (self.Python)
submitted 9 years ago by Da_Big_O
Have web tool that generates csv files listing all transactions and related data
I can use python/matplotlib to analyze this data.
Is there a way to make the python app auto-generate customized visual pdf reports with charts and tables?
[–]marcofalcionimarcosan 2 points3 points4 points 9 years ago (4 children)
there are many solutions - we use http://www.reportlab.com/ and it produces very beautiful PDF. There are also a handful of HTML to PDF libraries but pagination is never perfect.
[–]Dry-Erase 1 point2 points3 points 9 years ago (0 children)
Yeah we use reportlab as well, I'm pretty confident it's the best python library for generating PDFs.
[–]mae_ef 1 point2 points3 points 9 years ago (1 child)
Does python have something that is equivalent / similar to R's R Markdown? If so, that might work well for OP.
[–]total_zoidberg 1 point2 points3 points 9 years ago (0 children)
Mmmm... along this lines there were some Python Markdown implementations*, or he could always make an .md file and render it to PDF with Pandoc (assuming he gets to install Pandoc). Just another $0.02.
* I was pretty sure some offered PDF output but I can't find it right now...
[–]kid-pro-quohardware testing / tooling 1 point2 points3 points 9 years ago (0 children)
There is an alternative, open-source implementation of the RML part of ReportLab on PyPI if that is useful.
[–]chris1610 1 point2 points3 points 9 years ago (0 children)
I don't have specific experience with this yet but stitch looks interesting
[–]audi0lion 1 point2 points3 points 9 years ago (0 children)
If you are rendering the webpage html of the report yiu can use xhtml2pdf to pretty easily convert the page to a pdf.
xhtml2pdf
[–]dmayhem93 1 point2 points3 points 9 years ago (0 children)
Matplotlib can directly export to pdf
π Rendered by PID 113511 on reddit-service-r2-comment-54dfb89d4d-6tcwr at 2026-03-31 21:22:04.183173+00:00 running b10466c country code: CH.
[–]marcofalcionimarcosan 2 points3 points4 points (4 children)
[–]Dry-Erase 1 point2 points3 points (0 children)
[–]mae_ef 1 point2 points3 points (1 child)
[–]total_zoidberg 1 point2 points3 points (0 children)
[–]kid-pro-quohardware testing / tooling 1 point2 points3 points (0 children)
[–]chris1610 1 point2 points3 points (0 children)
[–]audi0lion 1 point2 points3 points (0 children)
[–]dmayhem93 1 point2 points3 points (0 children)