junnyxi / Flask-QRcode

A flask extension to render QR codes on the Jinja2 template for python3

Home Page:http://pypi.python.org/pypi/Flask-QRcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask-QRcode

A simple Flask extension to render QR codes on the template using python-qrcode

##Installation

pip install Flask-QRcode

##Usage:

###Extend the app:

from flask.ext.qrcode import QRcode
# [...]
QRcode(app)
# [...]

###Then use it within your templates:

####Basic usage:

<img src="{{ qrcode(STRING_TO_ENCODE) }}">

###More examples: Examples folder

###For Python3

update flask_qrcode/init.py to source code。

About

A flask extension to render QR codes on the Jinja2 template for python3

http://pypi.python.org/pypi/Flask-QRcode

License:MIT License


Languages

Language:Python 66.1%Language:HTML 33.9%