Generating Your Own Awesome QR Codes Using Python

@lee-rowe
4 min readJan 24, 2022
Photo by Claudio Schwarz on Unsplash

A QR code (quick response code) is a type of matrix barcode (or two-dimensional barcode) invented in 1994 by the Japanese automotive company Denso Wave. A barcode is a machine-readable optical label that can contain information about the item to which it is attached. In practice, QR codes often contain data for a locator, identifier, or tracker that points to a website or application. A QR code uses four standardized encoding modes (numeric, alphanumeric, byte/binary, and kanji) to store data efficiently; extensions may also be used. In this short blog post I will be going over two libraries that allow you to generate your own awesome QR codes using very simple lines of Python.

Now that we have briefly gone over what a QR code is as well as how they function it’s time to get started using the first library. To get started, we will want to pip install qrcode. This can be done using the code found in the cell below.

pip install qrcode

Once installed, we can get started using it’s functions. First things first we will need to provide a website link or whatever it is that we want the code to direct us to when it’s finished. For this step I am…

--

--

@lee-rowe
@lee-rowe

Written by @lee-rowe

Data Scientist/Engineer | Create Value | if data: data.science()

No responses yet