logo

... qr code: generate



Notes

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

%pip install "qrcode[pil]"

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")

Feedback? See an issue? Something unclear? Feel free to mention it here.



If you want to be kept up to date, consider signing up for the newsletter.