Skip to main content

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):

https://github.com/Edinburgh-Genome-Foundry/pdf_reports/raw/master/screenshot.png

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

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)

Source distribution for pdf-reports 0.3.9
File Size Uploaded
pdf_reports-0.3.9.tar.gz 121.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdf-reports 0.3.9
File Interpreter ABI Platform
pdf_reports-0.3.9-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.3.9 This release

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page