Flask-QRcode
A concise Flask extension to easily render QR codes on Jinja2 templates using python-qrcode
You can read the full documentation here.
Installation
pip install Flask-QRcode
Usage:
Extend the app:
from flask_qrcode import QRcode
# [...]
QRcode(app)
# [...]
Then use it within your templates:
Basic usage:
<img src="{{ qrcode(STRING_TO_ENCODE) }}">
More examples:
For more examples, just run the sample application in this repository.
Contributing:
Thank you for considering contributing to this package.
As this is a simple package, the process is pretty straightforward...
- Fork this repository
- Checkout from master with to a feature branch with a name related to what is being contributed (e.g. "colored-qrcodes")
*It's highly recommended that your contribution either creates a new feature, fixes something OR refactors the code and does not mix these (e.g. one PR fixing some existent feature and refactoring non-related code).
- Install dependencies and flask_qrcode on editable mode
uv sync --group dev - Do your magic
- Provide new tests for your work and check that both this and the old ones are passing
- Pull Request!
Testing:
- Install dependencies and flask_qrcode on editable mode
uv sync --group dev
- Run pytest
uv run pytest
Metadata
Release files for Flask-QRcode 3.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_qrcode-3.2.2.tar.gz | 17.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_qrcode-3.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.1 kB
Release files / flask_qrcode-3.2.2.tar.gz
| Download URL | flask_qrcode-3.2.2.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3aa94c91afd03c268c745b300a377c95e2d61a104b6b39e426e3b3367c22fe1
|
|
BLAKE2b-256 checksum How to use checksums |
c064d7c4ae4d1420eac432e3c2d08271ae27cfea59ee8312ae54cf3d46ff7a0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / flask_qrcode-3.2.2-py3-none-any.whl
| Download URL | flask_qrcode-3.2.2-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3dfbf957a782be22b431ac8f8b1b33501f1d56d9cf3749ac09d021ddae0013e5
|
|
BLAKE2b-256 checksum How to use checksums |
51778c413e5ca14a6b53dacd50f7a844ce159b7f672304c8d896397e1f270d14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|