Skip to content
Vivek Kumar Kanaujia edited this page Mar 30, 2018 · 4 revisions

Welcome to the python-qrcode wiki!

Sample example to generate QR code

` import qrcode qr = qrcode.QRCode( version=1, error_correction=qrcode.constants.ERROR_CORRECT_L, box_size=10, border=4, ) qr.add_data('Some data') qr.make(fit=True)

img = qr.make_image(fill_color="black", back_color="white")

#img.show()

img.save('abc1.png') `

Clone this wiki locally