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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyreportgen-0.1.17.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pyreportgen-0.1.17.tar.gz
Algorithm Hash digest
SHA256 cb301292506407a254b2a01bdecb1f8387e40fb305da327cce35b0bc46fe2b1f
MD5 1fa7a3127ea560268d2d524fdd22f974
BLAKE2b-256 8cd4da147f69b80ada0d82aa93788ef3d454d27d2607dff5fb287237a6c2c2b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyreportgen-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pyreportgen-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 6484b4ca8828ccf26d3a5c223e8121fb25ad05e4d4e928b0521a73e47c42833d
MD5 347a5740140a86cd29ea915ed066eae8
BLAKE2b-256 84287d76ffa42c79d6c2f7d0b5ac0cf4cbf6d7c6ddfd8e55477171e0e4b880a5

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