A concise Flask extension to render QR codes on Jinja2 templates using python-qrcode
Project description
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
pip install -e . # for installing flask_qrcode on editable mode
- 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
pip install -e . # for installing flask_qrcode on editable mode
- Run pytest
python setup.py test # on package's root dir
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-QRcode-3.1.0.tar.gz
(39.8 kB
view hashes)
Built Distribution
Close
Hashes for Flask_QRcode-3.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e251fd843edc8f719d0690d9cc4496ccb83db8942d7fc8009dc8e92a040232d3 |
|
MD5 | ee8fdc8450c2a7b4e12758b27e723fcb |
|
BLAKE2b-256 | d8b715ef30557a40544400915c29c4cbbde0f68077ef715aac64db8e313d8cdb |