A concise Flask extension to easily render QR codes on Jinja2 templates usingpython-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:
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")
- 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
- Pull Request!
Testing:
- Install dependencies and flask_qrcode on editable mode
uv sync --group dev
- Run pytest
uv run pytest