Skip to main content

reportlab-qrcode

reportlab-qrcode implements a QR code flowable for the ReportLab PDF library using the qrcode package.

Installation

reportlab-qrcode can be installed via pip:

pip install reportlab-qrcode

Usage

Simply use the QRCodeImage class with your data. All non-recognized keyword arguments will be passed to the qrcode.QRCode class from the qrcode package.

from reportlab.lib.units import mm
from reportlab.pdfgen.canvas import Canvas
from reportlab_qrcode import QRCodeImage

doc = Canvas('simple.pdf')
qr = QRCodeImage('Some data here', size=30 * mm)
qr.drawOn(doc, 0, 0)
doc.showPage()
doc.save()

For further examples, including setting fill and back colors, QR code size, error correction level, as well as using the QR code as ReportLab Flowable object, see the examples directory.

Maintenance note

This package is considered completed. So please do not wonder if you see no further commits. Despite the lack of new commits, this package is still maintained, i. e., I plan to keep this package compatible with the newest Python, qrcode and ReportLab version. If you find a bug, please open an issue in the issue tracker.

License

reportlab-qrcode is licensed under the MIT license. See LICENSE file for details.

Metadata

Release files for reportlab-qrcode 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reportlab-qrcode 0.1.6
File Size Uploaded Provenance Actions
reportlab-qrcode-0.1.6.tar.gz 4.4 kB Without provenance Details for reportlab-qrcode-0.1.6.tar.gz

Release files / reportlab-qrcode-0.1.6.tar.gz

Download URL reportlab-qrcode-0.1.6.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9bfa1eb80efdecc1013890481b5e7b5486bb4db11b45154afcef00af3fe83bfa
BLAKE2b-256 checksum
How to use checksums
db1d7c7428dc162a5cabb1cd5b63be6095690a26e605feef30f88a54250b3fa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Security for reportlab-qrcode 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page