Skip to main content

An opinionated thin wrapper around the ReportLab Toolkit.

Project description

PDFINO

github-tests-badge github-mypy-badge codecov-badge pypi-badge pypi-versions license-badge

Basic usage

from pdfino import Document

pdf = Document()
pdf.h1("This is a heading")
pdf.p("Hello world!", align="center", classes=["mb-md"])
pdf.p("This is a paragraph.", classes=["mb-md"])
pdf.p("This is another paragraph.", classes=["mb-md"])
pdf.get_django_response("hello.pdf")

Run the tests

poetry run pytest --cov=pdfino --cov-report=term

Style guide

Tab size is 4 spaces. Max line length is 120. You should run ruff before committing any change.

poetry run ruff format . && poetry run ruff check pdfino

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

pdfino-0.0.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

pdfino-0.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page