{
  "id": "task_libraries:barcode/python",
  "path": "/exapedia/python-barcode-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python barcode libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python barcode libraries generate barcode and QR code images and decode them from photos or scans. A generator encodes the data as bars or modules and writes the result to SVG, PNG, or PDF. These libraries let inventory, ticketing, and shipping systems print and scan codes from Python."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python barcode libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#reportlab",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#opencv-python-headless",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#qrcode",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#segno",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#zxing-cpp",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F202"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyzbar",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#python-barcode",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyqrcode",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F255"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#qrcode",
          "label": [
            {
              "t": "text",
              "text": "qrcode"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads among dedicated barcode and QR code libraries in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F165"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Encode symbols",
            "Decode images"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#reportlab",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F129"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#opencv-python-headless",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F144"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#qrcode",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#segno",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#zxing-cpp",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F202"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyzbar",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#python-barcode",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyqrcode",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F255"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "reportlab",
          "name": [
            {
              "t": "fact",
              "fact": "F129"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/MrBitBucket/reportlab-mirror"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/reportlab"
            },
            {
              "label": "Docs",
              "href": "https://docs.reportlab.com/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F136"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.reportlab.com/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F129"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from reportlab.graphics.barcode import createBarcodeDrawing\n\ndrawing = createBarcodeDrawing('Code128', value='ABC123')\nsvg = drawing.asString('svg')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/MrBitBucket/reportlab-mirror/blob/master/src/reportlab/graphics/barcode/__init__.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "__init__.py"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=reportlab%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F129"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "opencv-python-headless",
          "name": [
            {
              "t": "fact",
              "fact": "F144"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/opencv/opencv-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/opencv-python-headless"
            },
            {
              "label": "Docs",
              "href": "https://docs.opencv.org/5.1.0/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F151"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.opencv.org/5.1.0/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/opencv/opencv",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def runQR(self, qrCode, inputimg):\n    if not self.multi:\n        if not self.detect:\n            decode_info, points, _ = qrCode.detectAndDecode(inputimg)\n            dec_info = decode_info\n        else:\n            _, points = qrCode.detect(inputimg)\n            dec_info = []\n    else:\n        if not self.detect:\n            _, decode_info, points, _ = qrCode.detectAndDecodeMulti(\n                inputimg)\n            dec_info = decode_info\n        else:\n            _, points = qrCode.detectMulti(inputimg)\n            dec_info = []\n    if points is None:\n        points = []\n    return points, dec_info\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/opencv/opencv/blob/3e1cb2371a4c51a2da690ed64f763e94eeb1797e/samples/python/qrcode.py#L93-L111",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=opencv-python-headless%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F144"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import cv2\n\nimage = cv2.imread('barcode.png')\ndetector = cv2.QRCodeDetector()\ntext, points, straight = detector.detectAndDecode(image)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.opencv.org/5.1.0/de/dc3/classcv_1_1QRCodeDetector.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F149"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "qrcode",
          "name": [
            {
              "t": "fact",
              "fact": "F164"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/lincolnloop/python-qrcode"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/qrcode"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F171"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/lincolnloop/python-qrcode",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F164"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/jazzband/django-two-factor-auth",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F181"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def get(self, request, *args, **kwargs):\n    # Get the data from the session\n    try:\n        key = self.request.session[self.session_key_name]\n    except KeyError:\n        raise Http404()\n\n    # Get data for qrcode\n    image_factory_string = getattr(settings, 'TWO_FACTOR_QR_FACTORY', self.default_qr_factory)\n    image_factory = import_string(image_factory_string)\n    content_type = self.image_content_types[image_factory.kind]\n    username = self.get_username()\n\n    otpauth_url = get_otpauth_url(accountname=username,\n                                  issuer=self.get_issuer(),\n                                  secret=key,\n                                  digits=totp_digits())\n\n    # Make and return QR code\n    img = qrcode.make(otpauth_url, image_factory=image_factory)\n    resp = HttpResponse(content_type=content_type)\n    img.save(resp)\n    return resp",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/jazzband/django-two-factor-auth/blob/a9c0b2e5d12f2848e646a8af4a251b2afc358e08/two_factor/views/core.py#L725-L747",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=qrcode%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F164"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import qrcode\nimage = qrcode.make('Hello, world!')\nimage.save('qr.png')\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pypi.org/pypi/qrcode/8.2/json#info.description",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F169"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "segno",
          "name": [
            {
              "t": "fact",
              "fact": "F183"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/heuer/segno"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/segno"
            },
            {
              "label": "Docs",
              "href": "https://segno.readthedocs.io/en/stable/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F190"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://segno.readthedocs.io/en/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F183"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/dprog-philippe-docourt/django-qr-code",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F200"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@validate_call(config=PYDANTIC_CONFIG)\ndef make_qr(data: Any, qr_code_options: QRCodeOptions, force_text: bool = True):\n    \"\"\"Creates a QR code that encodes the given `data` with the given `qr_code_options`.\n\n    :param str data: The data to encode\n    :param qr_code_options: Options to create and serialize the QR code.\n    :param bool force_text: Tells whether we want to force the `data` to be considered as text string and encoded in byte mode.\n    :rtype: segno.QRCode\n    \"\"\"\n    # WARNING: For compatibility reasons, we still allow to pass __proxy__ class (lazy string). Moreover, it would be\n    # OK to pass anything that has __str__ attribute (e.g. class instance that handles phone numbers).\n    if force_text:\n        return segno.make(str(data), **qr_code_options.kw_make(), mode=\"byte\")\n    return segno.make(data, **qr_code_options.kw_make())",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/dprog-philippe-docourt/django-qr-code/blob/2803a185e56c8e286d77d24b4b7c46dfa1de2445/qr_code/qrcode/maker.py#L23-L36",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F199"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=segno%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F183"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import segno\nqr = segno.make_qr('Hello, world!')\nqr.save('qr.png', scale=5)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pypi.org/pypi/segno/1.6.6/json#info.description",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F188"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "zxing-cpp",
          "name": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/zxing-cpp/zxing-cpp"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/zxing-cpp"
            },
            {
              "label": "Docs",
              "href": "https://github.com/zxing-cpp/zxing-cpp/tree/master/wrappers/python"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F13"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/zxing-cpp/zxing-cpp/tree/master/wrappers/python",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F202"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/paperless-ngx/paperless-ngx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F218"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def read_barcodes_zxing(image: Image.Image) -> list[tuple[str, str]]:\n    \"\"\"\n    Returns the text and format (zxing enum name) of each barcode found in\n    the image\n    \"\"\"\n    barcodes = []\n\n    import zxingcpp\n\n    detected_barcodes = zxingcpp.read_barcodes(image)\n    for barcode in detected_barcodes:\n        if barcode.text:\n            barcodes.append((barcode.text, barcode.format.name))\n            logger.debug(\n                f\"Barcode of type {barcode.format} found: {barcode.text}\",\n            )\n\n    return barcodes\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/paperless-ngx/paperless-ngx/blob/28bb63824f795e8b4dc61e60c3b9919e36ff6855/src/documents/barcodes.py#L494-L511",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F217"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20zxing-cpp%20for%20barcode%20generation%20and%20image%20decoding&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F202"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import zxingcpp\n\nbarcode = zxingcpp.create_barcode('Hello, world!', zxingcpp.BarcodeFormat.QRCode)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/zxing-cpp/zxing-cpp/blob/master/wrappers/python/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F207"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pyzbar",
          "name": [
            {
              "t": "fact",
              "fact": "F220"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/NaturalHistoryMuseum/pyzbar"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pyzbar"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F36"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/NaturalHistoryMuseum/pyzbar",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F220"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/paperless-ngx/paperless-ngx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F236"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@staticmethod\ndef read_barcodes_pyzbar(image: Image.Image) -> list[str]:\n    barcodes = []\n\n    from pyzbar import pyzbar\n\n    # Decode the barcode image\n    detected_barcodes = pyzbar.decode(image)\n\n    # Traverse through all the detected barcodes in image\n    for barcode in detected_barcodes:\n        if barcode.data:\n            decoded_barcode = barcode.data.decode(\"utf-8\")\n            barcodes.append(decoded_barcode)\n            logger.debug(\n                f\"Barcode of type {barcode.type} found: {decoded_barcode}\",\n            )\n\n    return barcodes\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/paperless-ngx/paperless-ngx/blob/df5af5c8adbb6892f26c8240da8565c9a9fb143b/src/documents/barcodes.py#L199-L217",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F235"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20pyzbar%20for%20barcode%20generation%20and%20image%20decoding&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F220"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from PIL import Image\nfrom pyzbar.pyzbar import decode\n\nresults = decode(Image.open('barcode.png'))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/NaturalHistoryMuseum/pyzbar/blob/master/README.rst",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F225"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "python-barcode",
          "name": [
            {
              "t": "fact",
              "fact": "F238"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/WhyNotHugo/python-barcode"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/python-barcode"
            },
            {
              "label": "Docs",
              "href": "https://python-barcode.readthedocs.io/en/stable/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F61"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://python-barcode.readthedocs.io/en/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F238"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/inventree/InvenTree",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F253"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@register.simple_tag()\ndef barcode(data: str, barcode_class='code128', **kwargs) -> str:\n    \"\"\"Render a 1D barcode.\n\n    Arguments:\n        data: Data to encode\n        barcode_class (str): The type of barcode to generate (default = 'code128')\n\n    Keyword Arguments:\n        format (str): Image format (default = 'PNG')\n        fill_color (str): Foreground color (default = 'black')\n        back_color (str): Background color (default = 'white')\n        scale (float): Scaling factor (default = 1)\n\n    Returns:\n        image (str): base64 encoded image data\n    \"\"\"\n    data = str(data).strip()\n\n    if not data:\n        raise ValidationError(\"barcode: No data provided to 'barcode' template tag\")\n\n    constructor = python_barcode.get_barcode_class(barcode_class)\n\n    img_format = kwargs.pop('format', 'PNG')\n\n    data = str(data).zfill(constructor.digits)\n\n    writer = python_barcode_writer.ImageWriter\n\n    barcode_image = constructor(data, writer=writer())\n\n    image = barcode_image.render(writer_options=kwargs)\n\n    # Render to byte-encoded image\n    return image_data(image, fmt=img_format)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/inventree/InvenTree/blob/1f51dfe64bf4717fd95df51f1055ffb7a991a01d/src/backend/InvenTree/report/templatetags/barcode.py#L200-L235",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F252"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20python-barcode%20for%20barcode%20generation%20and%20image%20decoding&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F238"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from io import BytesIO\nfrom barcode import EAN13\n\noutput = BytesIO()\nEAN13('100000902922').write(output)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://python-barcode.readthedocs.io/en/stable/getting-started.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "getting-started.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pyqrcode",
          "name": [
            {
              "t": "fact",
              "fact": "F255"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mnooner256/pyqrcode"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pyqrcode"
            },
            {
              "label": "Docs",
              "href": "https://pythonhosted.org/PyQRCode/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F262"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pythonhosted.org/PyQRCode/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F255"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F273"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/home-assistant/core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F272"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _generate_qr_code(data: str) -> str:\n    \"\"\"Generate a base64 PNG string represent QR Code image of data.\"\"\"\n    import pyqrcode  # noqa: PLC0415\n\n    qr_code = pyqrcode.create(data)\n\n    with BytesIO() as buffer:\n        qr_code.svg(file=buffer, scale=4)\n        return str(\n            buffer.getvalue()\n            .decode(\"ascii\")\n            .replace(\"\\n\", \"\")\n            .replace(\n                (\n                    '<?xml version=\"1.0\" encoding=\"UTF-8\"?>'\n                    '<svg xmlns=\"http://www.w3.org/2000/svg\"'\n                ),\n                \"<svg\",\n            )\n        )",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/home-assistant/core/blob/aef7c996cbf2a46a37215ea768ab274f2a302506/homeassistant/auth/mfa_modules/totp.py#L39-L58",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F271"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pyqrcode%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F255"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pyqrcode\nqr = pyqrcode.create('Hello, world!')\nqr.svg('qr.svg', scale=4)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pythonhosted.org/PyQRCode/moddoc.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "moddoc.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F260"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python barcode library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#python-barcode",
          "label": [
            {
              "t": "text",
              "text": "python-barcode"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits generating linear barcodes such as EAN and UPC. "
        },
        {
          "t": "link",
          "href": "#segno",
          "label": [
            {
              "t": "text",
              "text": "Segno"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#qrcode",
          "label": [
            {
              "t": "text",
              "text": "qrcode"
            }
          ]
        },
        {
          "t": "text",
          "text": " suit QR codes. "
        },
        {
          "t": "link",
          "href": "#zxing-cpp",
          "label": [
            {
              "t": "text",
              "text": "zxing-cpp"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits reading and writing many barcode formats from one package."
        }
      ]
    },
    {
      "q": "What is Segno?",
      "a": [
        {
          "t": "link",
          "href": "#segno",
          "label": [
            {
              "t": "text",
              "text": "Segno"
            }
          ]
        },
        {
          "t": "text",
          "text": " generates QR codes and Micro QR codes in pure Python. It writes SVG, PNG, and other formats with no extra dependencies."
        }
      ]
    },
    {
      "q": "How do I generate a QR code in Python?",
      "a": [
        {
          "t": "text",
          "text": "Install "
        },
        {
          "t": "link",
          "href": "#qrcode",
          "label": [
            {
              "t": "text",
              "text": "qrcode"
            }
          ]
        },
        {
          "t": "text",
          "text": " or "
        },
        {
          "t": "link",
          "href": "#segno",
          "label": [
            {
              "t": "text",
              "text": "Segno"
            }
          ]
        },
        {
          "t": "text",
          "text": ", pass the text or URL, and save the result as an image. Both control error correction and module size."
        }
      ]
    },
    {
      "q": "What is pyzbar?",
      "a": [
        {
          "t": "link",
          "href": "#pyzbar",
          "label": [
            {
              "t": "text",
              "text": "pyzbar"
            }
          ]
        },
        {
          "t": "text",
          "text": " reads linear barcodes and QR codes from images through the ZBar library. It needs the ZBar shared library installed on the system."
        }
      ]
    },
    {
      "q": "How do I generate a barcode in Python?",
      "a": [
        {
          "t": "link",
          "href": "#python-barcode",
          "label": [
            {
              "t": "text",
              "text": "python-barcode"
            }
          ]
        },
        {
          "t": "text",
          "text": " generates EAN, UPC, and other linear barcodes as SVG or, with Pillow, as raster images."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, zxing-cpp",
      "display": "zxing-cpp",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, zxing-cpp",
      "display": "5.4M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, zxing-cpp",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, zxing-cpp",
      "display": "3.1.1, Jul 2026",
      "asOf": "2026-07-29"
    },
    "F5": {
      "label": "Package release date, zxing-cpp",
      "display": "Jul 2026",
      "asOf": "2026-07-29"
    },
    "F6": {
      "label": "Repository stars, zxing-cpp",
      "display": "2.1K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Reads barcodes, zxing-cpp",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Writes barcodes, zxing-cpp",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Linear barcodes, zxing-cpp",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Matrix barcodes, zxing-cpp",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Output formats, zxing-cpp",
      "display": "SVG",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, zxing-cpp",
      "display": "pip install zxing-cpp pillow",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, zxing-cpp",
      "display": "Provides Python bindings for reading and generating barcode images with ZXing-C++.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, zxing-cpp",
      "display": "Reads and writes barcodes",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, zxing-cpp",
      "display": "Decode image data or construct a barcode for rendering.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, zxing-cpp",
      "display": "Accepts multiple image containers",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, zxing-cpp",
      "display": "Read OpenCV, Pillow, Qt, or supported array buffers.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, zxing-cpp",
      "display": "Color arrays default to BGR",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, zxing-cpp",
      "display": "Convert RGB arrays or declare their memory layout with ImageView.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, zxing-cpp",
      "display": "import zxingcpp\nfrom PIL import Image\n\nbarcode = zxingcpp.create_barcode('This is a test', zxingcpp.BarcodeFormat.QRCode, ec_level = \"50%\")\n\nimg = barcode.to_image(scale = 5)\nImage.fromarray(img).save(\"test.png\")\n\nsvg = barcode.to_svg(add_quiet_zones = False)\nwith open(\"test.svg\", \"w\") as svg_file:\n\tsvg_file.write(svg)\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, zxing-cpp",
      "display": "def read_barcodes_zxing(image: Image.Image) -> list[tuple[str, str]]:\n    \"\"\"\n    Returns the text and format (zxing enum name) of each barcode found in\n    the image\n    \"\"\"\n    barcodes = []\n\n    import zxingcpp\n\n    detected_barcodes = zxingcpp.read_barcodes(image)\n    for barcode in detected_barcodes:\n        if barcode.text:\n            barcodes.append((barcode.text, barcode.format.name))\n            logger.debug(\n                f\"Barcode of type {barcode.format} found: {barcode.text}\",\n            )\n\n    return barcodes\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, zxing-cpp",
      "display": "barcodes.py · read_barcodes_zxing()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, zxing-cpp",
      "display": "paperless-ngx/paperless-ngx",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, paperless-ngx/paperless-ngx",
      "display": "48.2K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, paperless-ngx/paperless-ngx",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F26": {
      "label": "Library name, pyzbar",
      "display": "pyzbar",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, pyzbar",
      "display": "2.8M",
      "asOf": "2026-11-16"
    },
    "F28": {
      "label": "License, pyzbar",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, pyzbar",
      "display": "0.1.9, Mar 2022",
      "asOf": "2022-03-15"
    },
    "F30": {
      "label": "Package release date, pyzbar",
      "display": "Mar 2022",
      "asOf": "2022-03-15"
    },
    "F31": {
      "label": "Repository stars, pyzbar",
      "display": "831",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Reads barcodes, pyzbar",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Linear barcodes, pyzbar",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Matrix barcodes, pyzbar",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Install, pyzbar",
      "display": "pip install pyzbar pillow",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "What it does, pyzbar",
      "display": "Reads linear barcodes and QR codes through the ZBar library.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths lead, pyzbar",
      "display": "Returns barcode locations",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths, pyzbar",
      "display": "Use rectangle and polygon coordinates alongside each decoded payload.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, pyzbar",
      "display": "Accepts common image objects",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, pyzbar",
      "display": "Decode Pillow images, image arrays, or raw pixel buffers.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations lead, pyzbar",
      "display": "Unix systems need ZBar installed",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations, pyzbar",
      "display": "Install the shared library separately on non-Windows systems.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, pyzbar",
      "display": "Bundled Windows builds omit orientation",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, pyzbar",
      "display": "Bundled Windows DLLs cannot report barcode orientation.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Quickstart, pyzbar",
      "display": "from pyzbar.pyzbar import decode\nfrom PIL import Image\ndecode(Image.open('pyzbar/tests/code128.png'))\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function, pyzbar",
      "display": "@staticmethod\ndef read_barcodes_pyzbar(image: Image.Image) -> list[str]:\n    barcodes = []\n\n    from pyzbar import pyzbar\n\n    # Decode the barcode image\n    detected_barcodes = pyzbar.decode(image)\n\n    # Traverse through all the detected barcodes in image\n    for barcode in detected_barcodes:\n        if barcode.data:\n            decoded_barcode = barcode.data.decode(\"utf-8\")\n            barcodes.append(decoded_barcode)\n            logger.debug(\n                f\"Barcode of type {barcode.type} found: {decoded_barcode}\",\n            )\n\n    return barcodes\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function reference, pyzbar",
      "display": "barcodes.py · read_barcodes_pyzbar()",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project repository, pyzbar",
      "display": "paperless-ngx/paperless-ngx",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project stars, paperless-ngx/paperless-ngx",
      "display": "48.2K",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project push date, paperless-ngx/paperless-ngx",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F51": {
      "label": "Library name, python-barcode",
      "display": "python-barcode",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Monthly downloads, python-barcode",
      "display": "2.5M",
      "asOf": "2026-11-16"
    },
    "F53": {
      "label": "License, python-barcode",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Package release, python-barcode",
      "display": "0.16.1, Aug 2025",
      "asOf": "2025-08-27"
    },
    "F55": {
      "label": "Package release date, python-barcode",
      "display": "Aug 2025",
      "asOf": "2025-08-27"
    },
    "F56": {
      "label": "Repository stars, python-barcode",
      "display": "659",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Writes barcodes, python-barcode",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Linear barcodes, python-barcode",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Output formats, python-barcode",
      "display": "SVG",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Install, python-barcode",
      "display": "pip install python-barcode",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "What it does, python-barcode",
      "display": "Generates barcodes with vector and optional raster image writers.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths lead, python-barcode",
      "display": "Creates SVG without external dependencies",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths, python-barcode",
      "display": "Generate scalable barcode artwork without installing an image engine.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, python-barcode",
      "display": "Calculates checksums automatically",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, python-barcode",
      "display": "Supply the barcode value without calculating its checksum yourself.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations lead, python-barcode",
      "display": "Raster output needs Pillow",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations, python-barcode",
      "display": "Install the images extra before generating raster images.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Quickstart, python-barcode",
      "display": "from io import BytesIO\n\nfrom barcode import EAN13\nfrom barcode.writer import SVGWriter\n\n# Write to a file-like object:\nrv = BytesIO()\nEAN13(\"100000902922\", writer=SVGWriter()).write(rv)\n\n# Or to an actual file:\nwith open(\"somefile.svg\", \"wb\") as f:\n    EAN13(str(100000011111), writer=SVGWriter()).write(f)\n",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project function, python-barcode",
      "display": "@register.simple_tag()\ndef barcode(data: str, barcode_class='code128', **kwargs) -> str:\n    \"\"\"Render a 1D barcode.\n\n    Arguments:\n        data: Data to encode\n        barcode_class (str): The type of barcode to generate (default = 'code128')\n\n    Keyword Arguments:\n        format (str): Image format (default = 'PNG')\n        fill_color (str): Foreground color (default = 'black')\n        back_color (str): Background color (default = 'white')\n        scale (float): Scaling factor (default = 1)\n\n    Returns:\n        image (str): base64 encoded image data\n    \"\"\"\n    data = str(data).strip()\n\n    if not data:\n        raise ValidationError(\"barcode: No data provided to 'barcode' template tag\")\n\n    constructor = python_barcode.get_barcode_class(barcode_class)\n\n    img_format = kwargs.pop('format', 'PNG')\n\n    data = str(data).zfill(constructor.digits)\n\n    writer = python_barcode_writer.ImageWriter\n\n    barcode_image = constructor(data, writer=writer())\n\n    image = barcode_image.render(writer_options=kwargs)\n\n    # Render to byte-encoded image\n    return image_data(image, fmt=img_format)\n",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project function reference, python-barcode",
      "display": "barcode.py · barcode()",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project repository, python-barcode",
      "display": "inventree/InvenTree",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project stars, inventree/InvenTree",
      "display": "7.9K",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project push date, inventree/InvenTree",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F74": {
      "label": "Library name, treepoem",
      "display": "Treepoem",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Monthly downloads, treepoem",
      "display": "45.1K",
      "asOf": "2026-11-16"
    },
    "F76": {
      "label": "License, treepoem",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Package release, treepoem",
      "display": "3.29.0, Sep 2026",
      "asOf": "2026-09-29"
    },
    "F78": {
      "label": "Package release date, treepoem",
      "display": "Sep 2026",
      "asOf": "2026-09-29"
    },
    "F79": {
      "label": "Repository stars, treepoem",
      "display": "165",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Writes barcodes, treepoem",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Linear barcodes, treepoem",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Matrix barcodes, treepoem",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Install, treepoem",
      "display": "pip install treepoem",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "What it does, treepoem",
      "display": "Renders barcode images through BWIPP and the Ghostscript command-line tool.",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths lead, treepoem",
      "display": "Renders different barcode families",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths, treepoem",
      "display": "Choose linear, QR, Aztec, or other supported barcode types.",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths lead, treepoem",
      "display": "Passes barcode options through BWIPP",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths, treepoem",
      "display": "Set encoder options using the generate_barcode options dictionary.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations lead, treepoem",
      "display": "Requires a separate Ghostscript install",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "limitations, treepoem",
      "display": "Install Ghostscript alongside the Python package.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Quickstart, treepoem",
      "display": "import treepoem\nfrom PIL import ImageOps\n\nimage = treepoem.generate_barcode(\n    barcode_type=\"qrcode\",\n    data=\"https://example.com\",\n)\nimage = ImageOps.expand(image, border=10, fill=\"white\")\nimage.convert(\"1\").save(\"barcode.png\")\n",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Developer need",
      "display": "Dependency-light SVG generation",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Why choose python-barcode",
      "display": "SVG without external image dependencies",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Developer need in introduction",
      "display": "dependency-light SVG generation",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "When to consider treepoem",
      "display": "the required encoder belongs to the BWIPP family",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Developer need",
      "display": "Decoding with barcode locations",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Why choose pyzbar",
      "display": "decoded rectangles and polygons",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need in introduction",
      "display": "decoding with barcode locations",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "When to consider zxing-cpp",
      "display": "encoding is also required",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need",
      "display": "Encoding and decoding together",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Why choose zxing-cpp",
      "display": "native read and write workflows",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need in introduction",
      "display": "encoding and decoding together",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "When to consider python-barcode",
      "display": "dependency-light SVG generation is sufficient",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "BWIPP rendering workflows",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose treepoem",
      "display": "different barcode families",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "BWIPP rendering workflows",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "When to consider python-barcode",
      "display": "SVG generation without Ghostscript is sufficient",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Page introduction",
      "display": "Python barcode libraries let application developers generate or read barcodes.",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "FAQ: Which Python barcode library should I use?",
      "display": "python-barcode generates SVG without external dependencies.",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "FAQ: Which Python barcode library should I use?",
      "display": "pyzbar reads linear barcodes and QR codes through ZBar.",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "FAQ: Which Python barcode library should I use?",
      "display": "ZXing-C++ supports barcode reading and writing.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Which Python barcode library should I use?",
      "display": "Treepoem renders through BWIPP and Ghostscript.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Are barcode types the same as output formats?",
      "display": "Code 128 is a supported barcode family.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Are barcode types the same as output formats?",
      "display": "SVGWriter serializes barcode artwork as SVG.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Does python-barcode require Pillow for SVG output?",
      "display": "SVG generation has no external dependencies, while raster image generation requires Pillow.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Should I calculate a barcode checksum before calling python-barcode?",
      "display": "Checksums are calculated automatically; some barcode systems expose an option to disable them.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Should I calculate a barcode checksum before calling python-barcode?",
      "display": "The optional checksum setting is illustrated for Code 39.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Does pip install pyzbar install its native engine?",
      "display": "Windows Python wheels include ZBar DLLs.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Does pip install pyzbar install its native engine?",
      "display": "Other operating systems need the shared library installed separately.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Why does pyzbar return an empty orientation?",
      "display": "Older ZBar releases do not support orientation; the bundled Windows DLLs use the older project.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Is pyzbar quality a confidence percentage?",
      "display": "The quality field is an unscaled relative value with only its ordering defined.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: What color channel order does zxing-cpp expect?",
      "display": "Three-channel arrays are treated as BGR, matching OpenCV’s default image loader.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: What color channel order does zxing-cpp expect?",
      "display": "ImageView allows explicit memory layout and stride declarations.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Can zxing-cpp create an SVG barcode?",
      "display": "The Python barcode object exposes to_svg and the own example writes that SVG string to a file.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Does Treepoem require Ghostscript?",
      "display": "Ghostscript must be installed alongside Treepoem.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: What does Treepoem return?",
      "display": "generate_barcode returns a Pillow image object.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Does every ZXing barcode family support writing?",
      "display": "The supported-format table marks read-only and write-only variants.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Does every ZXing barcode family support writing?",
      "display": "The legacy writer configuration supports a narrower set of barcode families.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "Library name, reportlab",
      "display": "ReportLab",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Monthly downloads, reportlab",
      "display": "91.2M",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "License, reportlab",
      "display": "BSD",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Package release, reportlab",
      "display": "5.1.0",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Package release date, reportlab",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Install, reportlab",
      "display": "pip install reportlab",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Quickstart, reportlab",
      "display": "from reportlab.graphics.barcode import createBarcodeDrawing\n\ndrawing = createBarcodeDrawing('Code128', value='ABC123')\nsvg = drawing.asString('svg')\n",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Official description, reportlab",
      "display": "Provides the ReportLab PDF toolkit.",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Quickstart source file, reportlab",
      "display": "src/reportlab/graphics/barcode/__init__.py",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Repository stars, reportlab",
      "display": "88",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Encode symbols, reportlab",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Decode images, reportlab",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Native barcode role, reportlab",
      "display": "Mixed linear and QR barcode generation as Drawing widgets integrated with vector/PDF/raster rendering; broad PDF package counter,not barcode-user adoption.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Setup and first input, reportlab",
      "display": "Offline barcode vector serialization into SVG text. Uses no raster backend,PDF file,HTTP response,or camera. Actual source recipe combines factory and Drawing serialization API references. Install metadata is retained from the official ReportLab setup proof.",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Raster backend and component terms, reportlab",
      "display": "SVG/PDF drawing is distinct from PNG rendering via renderPM backend. Barcode module header contains a historical four-clause BSD-style notice including advertising acknowledgement; broad package metadata says BSD. Keep scoped component terms instead of substituting the independent Odoo source LGPL grant.",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Library name, opencv-python-headless",
      "display": "opencv-python-headless",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Monthly downloads, opencv-python-headless",
      "display": "64.1M",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "License, opencv-python-headless",
      "display": "Apache 2.0",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Package release, opencv-python-headless",
      "display": "5.1.0.95",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Package release date, opencv-python-headless",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Install, opencv-python-headless",
      "display": "pip install opencv-python-headless",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Quickstart, opencv-python-headless",
      "display": "import cv2\n\nimage = cv2.imread('barcode.png')\ndetector = cv2.QRCodeDetector()\ntext, points, straight = detector.detectAndDecode(image)\n",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Official description, opencv-python-headless",
      "display": "Wraps the OpenCV Python bindings.",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Quickstart source file, opencv-python-headless",
      "display": "classcv_1_1QRCodeDetector.html",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Repository stars, opencv-python-headless",
      "display": "5.5K",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Encode symbols, opencv-python-headless",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Decode images, opencv-python-headless",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Native barcode role, opencv-python-headless",
      "display": "Native QR detection/decoding and QR encoding inside broad computer-vision toolkit. Headless distribution has no GUI dependency; same cv2 import as other mutually exclusive wheel variants.",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Setup and first input, opencv-python-headless",
      "display": "Provide an existing readable image at barcode.png; imread returns None if loading fails. This headless first call has no camera or GUI. QR-only sample; linear BarcodeDetector is a separate API and is not demonstrated here.",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Whole project argument/return contract, opencv-python-headless",
      "display": "{\"status\": \"verified\", \"arguments\": \"Whole authored OpenCV QrSample.runQR method. Its actual same-file caller constructs native cv.QRCodeDetector or cv.QRCodeDetectorAruco and passes an already decoded image. Both expose inherited graphical-code detector methods. Current5.1 class reference retains those exact methods. Single/multi and detect-only switches select one native operation per runtime path; four call sites are not represented as four actual detections. Original method itself has no imshow/camera loop and can be used with the headless distribution,though surrounding interactive sample UI requires a GUI-enabled host.\", \"return_shape\": \"Single detectAndDecode Python returns decoded str,points,and straight image; multi returns success flag,sequence[str],points,and straight images. Detect-only variants return success flag plus points. Method discards flags/straight images and converts absent points to []; it returns (points,decoded-string-or-sequence-or-empty-list). Input must be valid grayscale/BGR image; it does not auto-load arbitrary bytes or guarantee a successfully decoded payload.\"}",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Wheel family and headless scope, opencv-python-headless",
      "display": "opencv-python-headless is the highest observed distribution in the mutually exclusive cv2 wheel family; GUI/contrib variants retain separate counters without summation. Native dedicated QR and barcode APIs establish task eligibility; counts include all computer-vision uses. Selected runQR method does not call GUI APIs,but the surrounding interactive sample can.",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project function, opencv-python-headless",
      "display": "def runQR(self, qrCode, inputimg):\n    if not self.multi:\n        if not self.detect:\n            decode_info, points, _ = qrCode.detectAndDecode(inputimg)\n            dec_info = decode_info\n        else:\n            _, points = qrCode.detect(inputimg)\n            dec_info = []\n    else:\n        if not self.detect:\n            _, decode_info, points, _ = qrCode.detectAndDecodeMulti(\n                inputimg)\n            dec_info = decode_info\n        else:\n            _, points = qrCode.detectMulti(inputimg)\n            dec_info = []\n    if points is None:\n        points = []\n    return points, dec_info\n",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project source file, opencv-python-headless",
      "display": "samples/python/qrcode.py",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project full_name, opencv-python-headless",
      "display": "opencv/opencv",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project stargazers_count, opencv-python-headless",
      "display": "91.6K",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Library name, qrcode",
      "display": "qrcode",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Monthly downloads, qrcode",
      "display": "36.5M",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "License, qrcode",
      "display": "BSD",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Package release, qrcode",
      "display": "8.2",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Package release date, qrcode",
      "display": "May 2025",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Install, qrcode",
      "display": "pip install \"qrcode[pil]\"",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Quickstart, qrcode",
      "display": "import qrcode\nimage = qrcode.make('Hello, world!')\nimage.save('qr.png')\n",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Official description, qrcode",
      "display": "Generates QR code images.",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Quickstart source file, qrcode",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Repository stars, qrcode",
      "display": "5.0K",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Encode symbols, qrcode",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Decode images, qrcode",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Native barcode role, qrcode",
      "display": "Dedicated QR generation,with swappable image factories and SVG/PNG rendering; no native barcode image decoder.",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Setup and first input, qrcode",
      "display": "Pillow backend installed explicitly; writes one PNG. No external service, secret, or image viewer.",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Whole project argument/return contract, qrcode",
      "display": "Current8.2 qrcode.make accepts image_factory forwarding to QRCode and current first-party renderer classes expose save(stream). Host sets content-type from configured factory.kind. Pillow/PyPNG install depends on bitmap renderer; SVG uses first-party SVG factory.",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Project function, qrcode",
      "display": "def get(self, request, *args, **kwargs):\n    # Get the data from the session\n    try:\n        key = self.request.session[self.session_key_name]\n    except KeyError:\n        raise Http404()\n\n    # Get data for qrcode\n    image_factory_string = getattr(settings, 'TWO_FACTOR_QR_FACTORY', self.default_qr_factory)\n    image_factory = import_string(image_factory_string)\n    content_type = self.image_content_types[image_factory.kind]\n    username = self.get_username()\n\n    otpauth_url = get_otpauth_url(accountname=username,\n                                  issuer=self.get_issuer(),\n                                  secret=key,\n                                  digits=totp_digits())\n\n    # Make and return QR code\n    img = qrcode.make(otpauth_url, image_factory=image_factory)\n    resp = HttpResponse(content_type=content_type)\n    img.save(resp)\n    return resp",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Project source file, qrcode",
      "display": "two_factor/views/core.py",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Project full_name, qrcode",
      "display": "jazzband/django-two-factor-auth",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project stargazers_count, qrcode",
      "display": "1.9K",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Library name, segno",
      "display": "Segno",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Monthly downloads, segno",
      "display": "12.2M",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "License, segno",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Package release, segno",
      "display": "1.6.6",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Package release date, segno",
      "display": "Mar 2025",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Install, segno",
      "display": "pip install segno",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Quickstart, segno",
      "display": "import segno\nqr = segno.make_qr('Hello, world!')\nqr.save('qr.png', scale=5)\n",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Official description, segno",
      "display": "Generates QR codes and Micro QR codes.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Quickstart source file, segno",
      "display": "README.rst",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Repository stars, segno",
      "display": "823",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Encode symbols, segno",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Decode images, segno",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Native barcode role, segno",
      "display": "Dedicated QR and Micro QR generation with format writers; no image-decoding engine.",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Setup and first input, segno",
      "display": "make_qr forces standard QR; native PNG serializer needs no external imaging package.",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Whole project argument/return contract, segno",
      "display": "Current1.6.6 make accepts content plus version,error,micro,eci,boost_error,encoding, and mode=byte. All forwarded names were inspected in same-commit host kw_make, not assumed arbitrary kwargs. force_text converts lazy/custom objects throughstr; non-forced content must satisfy current Segno input contract.",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Project function, segno",
      "display": "@validate_call(config=PYDANTIC_CONFIG)\ndef make_qr(data: Any, qr_code_options: QRCodeOptions, force_text: bool = True):\n    \"\"\"Creates a QR code that encodes the given `data` with the given `qr_code_options`.\n\n    :param str data: The data to encode\n    :param qr_code_options: Options to create and serialize the QR code.\n    :param bool force_text: Tells whether we want to force the `data` to be considered as text string and encoded in byte mode.\n    :rtype: segno.QRCode\n    \"\"\"\n    # WARNING: For compatibility reasons, we still allow to pass __proxy__ class (lazy string). Moreover, it would be\n    # OK to pass anything that has __str__ attribute (e.g. class instance that handles phone numbers).\n    if force_text:\n        return segno.make(str(data), **qr_code_options.kw_make(), mode=\"byte\")\n    return segno.make(data, **qr_code_options.kw_make())",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Project source file, segno",
      "display": "qr_code/qrcode/maker.py",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Project full_name, segno",
      "display": "dprog-philippe-docourt/django-qr-code",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Project stargazers_count, segno",
      "display": "175",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Library name, zxing-cpp",
      "display": "zxing-cpp",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Monthly downloads, zxing-cpp",
      "display": "5.9M",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "License, zxing-cpp",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Package release, zxing-cpp",
      "display": "3.1.1",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Package release date, zxing-cpp",
      "display": "Jul 2026",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Install, zxing-cpp",
      "display": "pip install zxing-cpp",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Quickstart, zxing-cpp",
      "display": "import zxingcpp\n\nbarcode = zxingcpp.create_barcode('Hello, world!', zxingcpp.BarcodeFormat.QRCode)\n",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Repository stars, zxing-cpp",
      "display": "2.1K",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Encode symbols, zxing-cpp",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Decode images, zxing-cpp",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Native barcode role, zxing-cpp",
      "display": "C++ multi-format barcode image reading plus current barcode creation/serialization through Python bindings.",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Setup and first input, zxing-cpp",
      "display": "Offline QR barcode object creation; serialization can follow with to_image or to_svg. No arbitrary image/file input needed for this first call. Wheels/native-build availability depends on platform.",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Whole project argument/return contract, zxing-cpp",
      "display": "{\"status\": \"verified\", \"arguments\": \"Whole Paperless image-reading helper. Current3.1.1 Python binding accepts Pillow images via native image conversion,with default format/rotation options. Original caller provides a Pillow Image. No unsupported constructor or removed Result alias is used.\", \"return_shape\": \"Native returns sequence of Barcode objects. Their .text is decoded str and .format is BarcodeFormat enum exposing .name. Helper appends nonempty text+format-name pairs; raw bytes and position are intentionally not returned. Decode success and supported image modes still depend on input. No PDF,file,or scanner was opened.\"}",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Decoded payload contract, zxing-cpp",
      "display": "Native returns sequence of Barcode objects. Their .text is decoded str and .format is BarcodeFormat enum exposing .name. Helper appends nonempty text+format-name pairs; raw bytes and position are intentionally not returned. Decode success and supported image modes still depend on input. No PDF,file,or scanner was opened.",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Project function, zxing-cpp",
      "display": "def read_barcodes_zxing(image: Image.Image) -> list[tuple[str, str]]:\n    \"\"\"\n    Returns the text and format (zxing enum name) of each barcode found in\n    the image\n    \"\"\"\n    barcodes = []\n\n    import zxingcpp\n\n    detected_barcodes = zxingcpp.read_barcodes(image)\n    for barcode in detected_barcodes:\n        if barcode.text:\n            barcodes.append((barcode.text, barcode.format.name))\n            logger.debug(\n                f\"Barcode of type {barcode.format} found: {barcode.text}\",\n            )\n\n    return barcodes\n",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Project source file, zxing-cpp",
      "display": "src/documents/barcodes.py",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project full_name, zxing-cpp",
      "display": "paperless-ngx/paperless-ngx",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project stargazers_count, zxing-cpp",
      "display": "48.2K",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Library name, pyzbar",
      "display": "pyzbar",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Monthly downloads, pyzbar",
      "display": "3.0M",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "License, pyzbar",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Package release, pyzbar",
      "display": "0.1.9",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Package release date, pyzbar",
      "display": "Mar 2022",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Install, pyzbar",
      "display": "pip install pyzbar pillow",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Quickstart, pyzbar",
      "display": "from PIL import Image\nfrom pyzbar.pyzbar import decode\n\nresults = decode(Image.open('barcode.png'))\n",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Repository stars, pyzbar",
      "display": "831",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Encode symbols, pyzbar",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Decode images, pyzbar",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Native barcode role, pyzbar",
      "display": "ZBar-backed reading of linear barcodes and QR images; native shared library and platform-supported symbols matter.",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Setup and first input, pyzbar",
      "display": "Provide an existing readable barcode image and install Pillow plus the native ZBar shared library as required by platform. Literal file path is sample input; no image opened.",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Whole project argument/return contract, pyzbar",
      "display": "{\"status\": \"verified\", \"arguments\": \"Whole static Paperless decoding helper. pyzbar.decode accepts the caller Pillow image and uses installed native ZBar. Current0.1.9 default symbols=None allows supported symbols. This is ZBar-backed reading,not encoding and not an independently implemented pure-Python decoder.\", \"return_shape\": \"Current Decoded namedtuple supplies .data bytes and .type str. Function explicitly decodes bytes as UTF-8 and skips empty payloads; non-UTF8 binary barcode data can raise UnicodeDecodeError. It does not return rectangles or polygons even though native results contain them. Native shared library/install and supported symbology vary by platform.\"}",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Decoded payload contract, pyzbar",
      "display": "Current Decoded namedtuple supplies .data bytes and .type str. Function explicitly decodes bytes as UTF-8 and skips empty payloads; non-UTF8 binary barcode data can raise UnicodeDecodeError. It does not return rectangles or polygons even though native results contain them. Native shared library/install and supported symbology vary by platform.",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Project function, pyzbar",
      "display": "@staticmethod\ndef read_barcodes_pyzbar(image: Image.Image) -> list[str]:\n    barcodes = []\n\n    from pyzbar import pyzbar\n\n    # Decode the barcode image\n    detected_barcodes = pyzbar.decode(image)\n\n    # Traverse through all the detected barcodes in image\n    for barcode in detected_barcodes:\n        if barcode.data:\n            decoded_barcode = barcode.data.decode(\"utf-8\")\n            barcodes.append(decoded_barcode)\n            logger.debug(\n                f\"Barcode of type {barcode.type} found: {decoded_barcode}\",\n            )\n\n    return barcodes\n",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Project source file, pyzbar",
      "display": "src/documents/barcodes.py",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Project full_name, pyzbar",
      "display": "paperless-ngx/paperless-ngx",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Project stargazers_count, pyzbar",
      "display": "48.2K",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Library name, python-barcode",
      "display": "python-barcode",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Monthly downloads, python-barcode",
      "display": "2.8M",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "License, python-barcode",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Package release, python-barcode",
      "display": "0.16.1",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Package release date, python-barcode",
      "display": "Aug 2025",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Install, python-barcode",
      "display": "pip install python-barcode",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Quickstart, python-barcode",
      "display": "from io import BytesIO\nfrom barcode import EAN13\n\noutput = BytesIO()\nEAN13('100000902922').write(output)\n",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Repository stars, python-barcode",
      "display": "659",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Encode symbols, python-barcode",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Decode images, python-barcode",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Native barcode role, python-barcode",
      "display": "Pure-Python linear barcode generation; SVG default has no image engine,and raster output needs Pillow.",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Setup and first input, python-barcode",
      "display": "Offline12-digit EAN13 data; library computes checksum and default SVG writer writes to an in-memory binary stream. Pillow needed for raster ImageWriter,not this SVG setup.",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Whole project argument/return contract, python-barcode",
      "display": "{\"status\": \"verified\", \"arguments\": \"Whole InvenTree Django barcode template tag. Native constructor is obtained from actual get_barcode_class mapping. Base Barcode.digits=0 exists for variable-length Code128; fixed-digit subclasses override it. Thus original zfill(constructor.digits) is not rejected merely because Code128 has no local digits declaration. Current ImageWriter is a native Pillow-backed writer and render accepts writer_options mapping. Caller supplies writer option names and supported image format for the final application image_data helper.\", \"return_shape\": \"With ImageWriter,render returns Pillow Image; local image_data encodes application base64 output and is not a native barcode call. Empty input raises host ValidationError. zfill pads short numeric codes but is not general validity/checksum validation; the native symbol constructor can reject unsupported characters or lengths.\"}",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Project function, python-barcode",
      "display": "@register.simple_tag()\ndef barcode(data: str, barcode_class='code128', **kwargs) -> str:\n    \"\"\"Render a 1D barcode.\n\n    Arguments:\n        data: Data to encode\n        barcode_class (str): The type of barcode to generate (default = 'code128')\n\n    Keyword Arguments:\n        format (str): Image format (default = 'PNG')\n        fill_color (str): Foreground color (default = 'black')\n        back_color (str): Background color (default = 'white')\n        scale (float): Scaling factor (default = 1)\n\n    Returns:\n        image (str): base64 encoded image data\n    \"\"\"\n    data = str(data).strip()\n\n    if not data:\n        raise ValidationError(\"barcode: No data provided to 'barcode' template tag\")\n\n    constructor = python_barcode.get_barcode_class(barcode_class)\n\n    img_format = kwargs.pop('format', 'PNG')\n\n    data = str(data).zfill(constructor.digits)\n\n    writer = python_barcode_writer.ImageWriter\n\n    barcode_image = constructor(data, writer=writer())\n\n    image = barcode_image.render(writer_options=kwargs)\n\n    # Render to byte-encoded image\n    return image_data(image, fmt=img_format)\n",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Project source file, python-barcode",
      "display": "src/backend/InvenTree/report/templatetags/barcode.py",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Project full_name, python-barcode",
      "display": "inventree/InvenTree",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Project stargazers_count, python-barcode",
      "display": "7.9K",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Library name, pyqrcode",
      "display": "PyQRCode",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Monthly downloads, pyqrcode",
      "display": "1.7M",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "License, pyqrcode",
      "display": "BSD",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Package release, pyqrcode",
      "display": "1.2.1",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Package release date, pyqrcode",
      "display": "Jun 2016",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Install, pyqrcode",
      "display": "pip install pyqrcode",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Quickstart, pyqrcode",
      "display": "import pyqrcode\nqr = pyqrcode.create('Hello, world!')\nqr.svg('qr.svg', scale=4)\n",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Official description, pyqrcode",
      "display": "Generates QR codes in pure Python with SVG, EPS, PNG, and terminal output.",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Quickstart source file, pyqrcode",
      "display": "moddoc (API recipe)",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Repository stars, pyqrcode",
      "display": "428",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Encode symbols, pyqrcode",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Decode images, pyqrcode",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Native barcode role, pyqrcode",
      "display": "Dedicated QR generation with SVG and optional PyPNG raster output; returned SVG is not a base64 PNG despite the historical Home Assistant helper docstring.",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Setup and first input, pyqrcode",
      "display": "Native SVG first output; no optional PyPNG dependency needed.",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Whole project argument/return contract, pyqrcode",
      "display": "Current published1.2.1 create accepts str; QRCode.svg supports file keyword with writable BytesIO plus integer scale4. Native SVG writer does not require PyPNG/Pillow. No stale API flag is inferred from consumer/release age.",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Project function, pyqrcode",
      "display": "def _generate_qr_code(data: str) -> str:\n    \"\"\"Generate a base64 PNG string represent QR Code image of data.\"\"\"\n    import pyqrcode  # noqa: PLC0415\n\n    qr_code = pyqrcode.create(data)\n\n    with BytesIO() as buffer:\n        qr_code.svg(file=buffer, scale=4)\n        return str(\n            buffer.getvalue()\n            .decode(\"ascii\")\n            .replace(\"\\n\", \"\")\n            .replace(\n                (\n                    '<?xml version=\"1.0\" encoding=\"UTF-8\"?>'\n                    '<svg xmlns=\"http://www.w3.org/2000/svg\"'\n                ),\n                \"<svg\",\n            )\n        )",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Project source file, pyqrcode",
      "display": "homeassistant/auth/mfa_modules/totp.py",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Project full_name, pyqrcode",
      "display": "home-assistant/core",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Project stargazers_count, pyqrcode",
      "display": "92.3K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python barcode libraries python-barcode pyzbar zxing-cpp Treepoem code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
