Skip to main content

A simple flask extension to render QR codes on template

Project description

A simple Flask extension to render QR codes on the template using [python-qrcode](https://github.com/lincolnloop/python-qrcode)

![](QRcode.png)

##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:

{{ qrcode(STRING_TO_ENCODE) }}

###More examples: [Examples folder](https://github.com/marcoagner/Flask-QRcode/tree/master/sample_application)

This will render the given string as a QR code image.

Project details


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-0.4.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page