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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyreportgen-0.1.2.tar.gz
  • Upload date:
  • Size: 4.5 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.2.tar.gz
Algorithm Hash digest
SHA256 16a0e7b0a3fe31d7905bd1d6d803b667d8f04dc13c3b26f591ff0ac1f2b2c427
MD5 9be6f99c8186981d8c03bcd145efb1a0
BLAKE2b-256 1557149fc0364bbf0ea94aa6fcaf54221df7ccf26036987efb4d9d19649bd1dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyreportgen-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 99807dc82d4794a1d8c725be364a449d8230aa47eb25988d9dcd81a2ecb7bf2f
MD5 a91e88a459c3525148ea0259f684c3e0
BLAKE2b-256 381848ff77539d28193138ad28dbfbaa0403221b294742a5a9c180df4ae84574

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