pyfpdf
pyfpdf 基于php的fpdf(http://www.fpdf.org/)移植,
对于字库uincode需要额外安装,
缺少模板,
文档
https://pyfpdf.readthedocs.io/
代码
https://github.com/reingart/pyfpdf/
pdf_reports
使用pug模板生成html,而后生成pdf,可以用上css描述,
可以结合python运算结果;
本身依赖Weasyprint library,这个库又依赖许多其他库(比如Cairo,GTK),且对windows系统不太友好;
文档
https://edinburgh-genome-foundry.github.io/pdf_reports
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html
代码
https://github.com/Edinburgh-Genome-Foundry/pdf_reports
Creating PDF Reports with Pandas, Jinja and WeasyPrint
该方法和上面是异曲同工,直接用html和weasyPrint实现
链接
https://pbpython.com/pdf-reports.html
ReportLab
开源的产品不支持模板,
https://www.reportlab.com/dev/opensource/
Python reportlab教程__羊的博客-CSDN博客_python reportlab教程
python之Reportlab模块 - Hu知非 - 博客园
ReportLabPlus
商业产品支持模板
另:
用python或其他高级语言计算出中间结果,存于本地或表中,
用fine report等工具呈现;
Superset 是一款由 Airbnb 开源的“现代化的企业级 BI(商业智能) Web 应用程序”。
Python开源BI工具Superset的搭建与使用_可以叫我才哥的博客-CSDN博客_python superset
其他参考: