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.6.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.6-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyreportgen-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 e913aa78310eead397aa0942c58f92158f654eee789a3bf9c0942243061df3b6
MD5 5fe661ed1e6f1b9b13e0d4fb3f347d78
BLAKE2b-256 d65555c2360e912cc7cae7f5cecf800afcbfed37fb1c72379ed52c97e593735f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyreportgen-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d82e420d40525920e1c71f73354fe913b58d01e81e2e88053f696f1fa0a017ba
MD5 aae65e6c60eb4c455ce24d3a6ed256e6
BLAKE2b-256 57ad5844ed4c65bb7b359bf4f73904d9daf6d8250234e19f86da1045de9c8c47

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