Skip to main content

Flask-QRcode

PyPI version

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.

Sample Application

Contributing:

Thank you for considering contributing to this package.

As this is a simple package, the process is pretty straightforward...

  1. Fork this repository
  2. 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).

  1. Install dependencies and flask_qrcode on editable mode
    uv sync --group dev
    
  2. Do your magic
  3. Provide new tests for your work and check that both this and the old ones are passing
  4. Pull Request!

Testing:

  1. Install dependencies and flask_qrcode on editable mode
uv sync --group dev
  1. Run pytest
uv run pytest

Metadata

Release files for Flask-QRcode 3.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-QRcode 3.2.2
File Size Uploaded
flask_qrcode-3.2.2.tar.gz 17.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Flask-QRcode 3.2.2
File Interpreter ABI Platform
flask_qrcode-3.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 35.1 kB

Release files / flask_qrcode-3.2.2.tar.gz

Download URL flask_qrcode-3.2.2.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a3aa94c91afd03c268c745b300a377c95e2d61a104b6b39e426e3b3367c22fe1
BLAKE2b-256 checksum
How to use checksums
c064d7c4ae4d1420eac432e3c2d08271ae27cfea59ee8312ae54cf3d46ff7a0b
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.2-py3-none-any.whl

Download URL flask_qrcode-3.2.2-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dfbf957a782be22b431ac8f8b1b33501f1d56d9cf3749ac09d021ddae0013e5
BLAKE2b-256 checksum
How to use checksums
51778c413e5ca14a6b53dacd50f7a844ce159b7f672304c8d896397e1f270d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

3.2.2 This release

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.0

1 release file

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.0.1

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page