Skip to main content

A package for creating reports and other pdf documents.

Project description

Pyreportgen

This is a pyton library for creating reports and other content in the form of a pdf using python.

Requirements.

  • wkhtmltopdf

Example

import pyreportgen as rg 
import pyreportgen.layout as layout

report = rg.Report([
    rg.Header("Hello World"),
    rg.Text("This is a sample of how to use pyreportgen"),
    Layout.HBox([
        rg.Text("This is a paragraph in a box."),
        rg.Text("These will be placed next to each other"),
        rg.Text("All the boxes will have equal space regardless of content.")
    ])
])

report.pdf("out.pdf")

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

pyreportgen-0.1.4.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

pyreportgen-0.1.4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file pyreportgen-0.1.4.tar.gz.

File metadata

  • Download URL: pyreportgen-0.1.4.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pyreportgen-0.1.4.tar.gz
Algorithm Hash digest
SHA256 760434e1b0ae57bec665edf06cd3bf8acff13795760e6c8d22ca8d52357f1758
MD5 e929a9f1c031f2bd3941a9d480e6938b
BLAKE2b-256 ae17fbb72628840460e1215be9e0eedf0ea570f05e87f2d8ddefff1f82c21e41

See more details on using hashes here.

File details

Details for the file pyreportgen-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pyreportgen-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pyreportgen-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 11c28979a9f500e0c052bfa08bc9b4951f68483a3ee451cfcfcab71f285d74c3
MD5 9ba82898b8a9ffa885ecc865c5d0c4f8
BLAKE2b-256 a47d764e74f69b246d7eda5ad7677801095a8c25799b8a008d1c9b4f0dd8a776

See more details on using hashes here.

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