PDF Reports
PDF Reports (complete documentation here) is a Python library to create nice-looking PDF reports from HTML or Pug templates. It features modern-looking components (via the Semantic UI framework) and provides routines to embed tables or plots in the documents.
Example of use
Your Pug template file template.pug may look like this (see a full example):
#sidebar I am the text in the sidebar.
h1 {{ title }}
.ui.piled.segment
p Oh hi there ! I am some text in a cool box.
Your Python code will be as follows:
from pdf_reports import pug_to_html, write_report
html = pug_to_html("template.pug", title="My report")
write_report(html, "example.pdf")
And your final result may look like this (PDF file):
Infos
PIP installation:
pip install pdf_reports
Web documentation: https://edinburgh-genome-foundry.github.io/pdf_reports/
Github Page: https://github.com/Edinburgh-Genome-Foundry/pdf_reports
Live demo: http://cuba.genomefoundry.org/sculpt_a_sequence
License: MIT
Copyright 2018 Edinburgh Genome Foundry, University of Edinburgh
Metadata
Release files for pdf-reports 0.3.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdf_reports-0.3.9.tar.gz | 121.4 kB | With provenance | Details for pdf_reports-0.3.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdf_reports-0.3.9-py3-none-any.whl | Python 3 | none | any | Details for pdf_reports-0.3.9-py3-none-any.whl |
Total release size: 239.9 kB
Release files / pdf_reports-0.3.9.tar.gz
| Download URL | pdf_reports-0.3.9.tar.gz |
|---|---|
| Size | 121.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0984d1e3c44139b07fad4944740a3690dd2c09e6903d9c7191028f7ca69d78e
|
|
BLAKE2b-256 checksum How to use checksums |
c865c926843f7880be458b76a768f70e3e2354cb3daafc74047a4400b861aad8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2025.
Transparency logRelease files / pdf_reports-0.3.9-py3-none-any.whl
| Download URL | pdf_reports-0.3.9-py3-none-any.whl |
|---|---|
| Size | 118.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30afe997d3026673fbeffd96bbf09ea20bf8ad0ecc96acfd3002cad0a384754a
|
|
BLAKE2b-256 checksum How to use checksums |
98da0eb7c9320fd7870f3ea0fc0adaa25aad2f1661079eb415d0f21fd86aa701
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2025.
Transparency logSecurity for pdf-reports 0.3.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pdf_reports-0.3.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 8, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.