Calmcode - qr code: generate

Generate

1 2 3 4

QR codes are a convenient method of sending links in a world where everyone has a mobile camera. In this series of videos we'll show you how you can work with them from python.

Install qrcode

Before generating QR codes you'll need to install the dependencies.

%pip install "qrcode[pil]"

Generate a QR Code

Once installed you can generate a QR code by running:

import qrcode
img = qrcode.make('qr codes from python')

You can save these images to disk by running:

img.save("filename.png")