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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyreportgen-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 b786ca90f2c7cb78f4c65ac4bd1f6bd89b6538c68c1ab185a558a1be0333b17d
MD5 f2aa94c3ab01ba53b3854d956532cd07
BLAKE2b-256 95b0065bd4d3412fa0fead6bd4c7082c5319848e6c7d0cbabdb8483acfa5a40f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyreportgen-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3fdcb10cf8f231334ceb1794a423b608fe3156b50a69eca80ad0eac90f37e9c4
MD5 e494c529483e0484572882248d9f64cc
BLAKE2b-256 55e5f6368e5c519006019ca6c9ce5b3e3d86201285cd853b9229c2770f1a1964

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