reportlab-qrcode
================
reportlab-qrcode implements a QR code flowable for the ReportLab PDF library
using the [qrcode package](https://pypi.org/project/qrcode/).
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](https://github.com/hprid/reportlab-qrcode/tree/master/examples).
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.
Raw data
{
"_id": null,
"home_page": "https://github.com/hprid/reportlab-qrcode",
"name": "reportlab-qrcode",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "qrcode reportlab pdf",
"author": "Henning Prid\u00f6hl",
"author_email": "dev@hprid.de",
"download_url": "https://files.pythonhosted.org/packages/db/1d/7c7428dc162a5cabb1cd5b63be6095690a26e605feef30f88a54250b3fa8/reportlab-qrcode-0.1.6.tar.gz",
"platform": "any",
"description": "reportlab-qrcode\n================\n\nreportlab-qrcode implements a QR code flowable for the ReportLab PDF library\nusing the [qrcode package](https://pypi.org/project/qrcode/).\n\n\nInstallation\n------------\n\nreportlab-qrcode can be installed via pip:\n\n pip install reportlab-qrcode\n\n\nUsage\n-----\n\nSimply use the *QRCodeImage* class with your data. All non-recognized keyword\narguments will be passed to the *qrcode.QRCode* class from the qrcode package.\n\n from reportlab.lib.units import mm\n from reportlab.pdfgen.canvas import Canvas\n from reportlab_qrcode import QRCodeImage\n\n doc = Canvas('simple.pdf')\n qr = QRCodeImage('Some data here', size=30 * mm)\n qr.drawOn(doc, 0, 0)\n doc.showPage()\n doc.save()\n\nFor further examples, including setting fill and back colors, QR code size,\nerror correction level, as well as using the QR code as ReportLab Flowable\nobject, see the [examples directory](https://github.com/hprid/reportlab-qrcode/tree/master/examples).\n\n\nMaintenance note\n----------------\n\nThis package is considered completed. So please do not wonder if you see no\nfurther commits. Despite the lack of new commits, this package is still\nmaintained, i. e., I plan to keep this package compatible with the newest\nPython, qrcode and ReportLab version. If you find a bug, please open an issue\nin the issue tracker.\n\n\nLicense\n-------\n\nreportlab-qrcode is licensed under the MIT license. See LICENSE file for\ndetails.\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Allows to create QR codes for use with the ReportLab PDF library.",
"version": "0.1.6",
"project_urls": {
"Homepage": "https://github.com/hprid/reportlab-qrcode"
},
"split_keywords": [
"qrcode",
"reportlab",
"pdf"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "db1d7c7428dc162a5cabb1cd5b63be6095690a26e605feef30f88a54250b3fa8",
"md5": "44ebb45da67363a61a492ef46871ce34",
"sha256": "9bfa1eb80efdecc1013890481b5e7b5486bb4db11b45154afcef00af3fe83bfa"
},
"downloads": -1,
"filename": "reportlab-qrcode-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "44ebb45da67363a61a492ef46871ce34",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4411,
"upload_time": "2024-03-25T20:08:43",
"upload_time_iso_8601": "2024-03-25T20:08:43.015930Z",
"url": "https://files.pythonhosted.org/packages/db/1d/7c7428dc162a5cabb1cd5b63be6095690a26e605feef30f88a54250b3fa8/reportlab-qrcode-0.1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-25 20:08:43",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hprid",
"github_project": "reportlab-qrcode",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "reportlab-qrcode"
}