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.1

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.1
File Size Uploaded
flask_qrcode-3.2.1.tar.gz 17.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Flask-QRcode 3.2.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

3.2.2

2 release files

This release

3.2.1 This release

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