--- id: qrcode version: "8.2" license: BSD license_treatment: permissive maintenance: active --- # qrcode — QR Code image generator License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install qrcode uv add qrcode poetry add qrcode ## Description ============================= 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... ## AI interpretation — verify before relying Generates QR codes as images (PNG, SVG) or ASCII art from text or binary data, with configurable error correction, size, colors, and styling options. 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. [View on SkillFed](https://skillfed.io/packages/qrcode) · [View on PyPI](https://pypi.org/project/qrcode/)