qrcode
QR Code image generator
Install
qrcode on PyPI
pip
pip install qrcodeuv
uv add qrcodepoetry
poetry add qrcodePackage facts
| License | BSD (permissive) |
| Python support | supports the current Python release (<4.0,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — colorama |
| Maintenance | actively maintained — 469 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: qrcode-8.2-py3-none-any.whl
Keywords: qr, denso-wave, IEC18004
About qrcode
from the package's own PyPI description — quoted content, verbatim
============================= Pure python QR Code generator =============================
Generate QR codes.
A standard install uses pypng_ to generate PNG files and can also render QR codes directly to the console. A standard install is just::
pip install qrcode
For more image functionality, install qrcode with the pil dependency so
that pillow_ is installed and can be used for generating images::
pip install "qrcode[pil]"
.. _pypng: https://pypi.python.org/pypi/pypng .. _pillow: https://pypi.python.org/pypi/Pillow
What is a QR Code?
A Quick Response code is a two-dimensional pictographic code used for its fast readability and comparatively large storage capacity. The code consists of black modules arranged in a square pattern on a white background. The information encoded can be made up of any kind of data (e.g., binary, alphanumeric, or Kanji symbols)
Usage
From the command line, use the installed qr script::
qr "Some text" > test.png
Or in Python, use the make shortcut function:
.. code:: python
import qrcode
img = qrcode.make('Some data here')
type(img) # qrcode.image.pil.PilImage...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Generates QR codes as images (PNG, SVG) or ASCII art from text or binary data, with configurable error correction, size, colors, and styling options.
Low friction: pure Python wheel with a single optional runtime dependency (colorama). Actively maintained as of May 2025 with recent commits and 4929 GitHub stars; supports Python 3.9–3.13.
BSD license (permissive); you may use, modify, and distribute freely provided you retain the license notice and disclaimer.
Usage
pip install qrcode
import qrcode
img = qrcode.make('Some data here')
img.save('qr.png')
PIL/Pillow optional for PNG output; without it, falls back to pure Python PNG encoder (pypng) or console rendering.
Verdict: A mature, well-maintained QR code generator with no known vulnerabilities, permissive licensing, and minimal dependencies. Suitable for production use in applications requiring QR code generation with flexible output formats and styling.
Needs verification
- Whether colorama is truly required at runtime or only for optional console coloring features.
- Performance characteristics and scalability limits for high-volume QR code generation.
Similar packages
permissive · top 1,000 on PyPI
httpcorepermissive · top 100 on PyPI
pillowpermissive · top 100 on PyPI
pytesseractpermissive · top 1,000 on PyPI
redispermissive · top 1,000 on PyPI
factory-boypermissive · top 1,000 on PyPI
mpmathpermissive · top 1,000 on PyPI
PyOTPpermissive · top 1,000 on PyPI
colorlogpermissive · top 1,000 on PyPI
weasyprintpermissive · top 1,000 on PyPI