Skip to main content

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdf_reports-0.3.9.tar.gz (121.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdf_reports-0.3.9-py3-none-any.whl (118.6 kB view details)

Uploaded Python 3

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

Hashes for pdf_reports-0.3.9.tar.gz
Algorithm Hash digest
SHA256 b0984d1e3c44139b07fad4944740a3690dd2c09e6903d9c7191028f7ca69d78e
MD5 2558162f9a2dfc3923a72f3bdc9a28a9
BLAKE2b-256 c865c926843f7880be458b76a768f70e3e2354cb3daafc74047a4400b861aad8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdf_reports-0.3.9.tar.gz:

Publisher: publish.yml on Edinburgh-Genome-Foundry/pdf_reports

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pdf_reports-0.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 30afe997d3026673fbeffd96bbf09ea20bf8ad0ecc96acfd3002cad0a384754a
MD5 8f45307b05644cb850b243ac17febe4b
BLAKE2b-256 98da0eb7c9320fd7870f3ea0fc0adaa25aad2f1661079eb415d0f21fd86aa701

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page