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.1
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.1.tar.gz | 17.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_qrcode-3.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.7 kB
Release files / flask_qrcode-3.2.1.tar.gz
| Download URL | flask_qrcode-3.2.1.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcb8ed899f5859b28643dbda3fef6f47d98814aacee508c400dce6aab4f7ff08
|
|
BLAKE2b-256 checksum How to use checksums |
10ca63a1eb308a651a2163400a352af958837f002beb83063ef478380da42b69
|
| 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.1-py3-none-any.whl
| Download URL | flask_qrcode-3.2.1-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b35212c7fe1107564efa5d762c5533df3f053b9ee4261bbb56fb3ca6a31d169a
|
|
BLAKE2b-256 checksum How to use checksums |
5d37db272433097cf29746466341e1e2916c8633203e77ce7744faffa5909973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|