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.7.tar.gz (7.8 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.7-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyreportgen-0.1.7.tar.gz
  • Upload date:
  • Size: 7.8 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.7.tar.gz
Algorithm Hash digest
SHA256 79effb69371146a9eb964e7670c959eacc2d90955ad606ef68f5b6c88e5defd3
MD5 e2d447ed208b2a6b1eda9279c7a1fc8f
BLAKE2b-256 728f1f41aaaad8a3ff3a8cad51a704b7152f6fa741f38d5853b9f99ba10a8f4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyreportgen-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5d064341a7031672cc76ec8252c8bb22ec50ec17c71db3a6be24e93ccd04ca63
MD5 445479a5e4f9075c235d2036ee981e88
BLAKE2b-256 885ea2df25446ea5ec7c1bd4a75efbd1c7398331097e3c5e5fc7779e4d22255b

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