Create nice-looking PDF reports from HTML content.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdf_reports-0.3.9.tar.gz.
File metadata
- Download URL: pdf_reports-0.3.9.tar.gz
- Upload date:
- Size: 121.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0984d1e3c44139b07fad4944740a3690dd2c09e6903d9c7191028f7ca69d78e
|
|
| MD5 |
2558162f9a2dfc3923a72f3bdc9a28a9
|
|
| BLAKE2b-256 |
c865c926843f7880be458b76a768f70e3e2354cb3daafc74047a4400b861aad8
|
Provenance
The following attestation bundles were made for pdf_reports-0.3.9.tar.gz:
Publisher:
publish.yml on Edinburgh-Genome-Foundry/pdf_reports
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pdf_reports-0.3.9.tar.gz -
Subject digest:
b0984d1e3c44139b07fad4944740a3690dd2c09e6903d9c7191028f7ca69d78e - Sigstore transparency entry: 208628430
- Sigstore integration time:
-
Permalink:
Edinburgh-Genome-Foundry/pdf_reports@b2851097f3999a88623684d53a33c578193c6dab -
Branch / Tag:
refs/tags/v0.3.9 - Owner: https://github.com/Edinburgh-Genome-Foundry
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b2851097f3999a88623684d53a33c578193c6dab -
Trigger Event:
release
-
Statement type:
File details
Details for the file pdf_reports-0.3.9-py3-none-any.whl.
File metadata
- Download URL: pdf_reports-0.3.9-py3-none-any.whl
- Upload date:
- Size: 118.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30afe997d3026673fbeffd96bbf09ea20bf8ad0ecc96acfd3002cad0a384754a
|
|
| MD5 |
8f45307b05644cb850b243ac17febe4b
|
|
| BLAKE2b-256 |
98da0eb7c9320fd7870f3ea0fc0adaa25aad2f1661079eb415d0f21fd86aa701
|
Provenance
The following attestation bundles were made for pdf_reports-0.3.9-py3-none-any.whl:
Publisher:
publish.yml on Edinburgh-Genome-Foundry/pdf_reports
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pdf_reports-0.3.9-py3-none-any.whl -
Subject digest:
30afe997d3026673fbeffd96bbf09ea20bf8ad0ecc96acfd3002cad0a384754a - Sigstore transparency entry: 208628436
- Sigstore integration time:
-
Permalink:
Edinburgh-Genome-Foundry/pdf_reports@b2851097f3999a88623684d53a33c578193c6dab -
Branch / Tag:
refs/tags/v0.3.9 - Owner: https://github.com/Edinburgh-Genome-Foundry
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b2851097f3999a88623684d53a33c578193c6dab -
Trigger Event:
release
-
Statement type: