Skip to content

Instantly share code, notes, and snippets.

@DataSolveProblems
Created April 25, 2019 16:00
Show Gist options
  • Save DataSolveProblems/84f37b6ff3e22690ea6cfc295277ce66 to your computer and use it in GitHub Desktop.
Save DataSolveProblems/84f37b6ff3e22690ea6cfc295277ce66 to your computer and use it in GitHub Desktop.
import qrcode
qr = qrcode.QRCode(
version=1,
box_size=15,
border=5
)
data = 'your text here'
qr.add_data(data)
qr.make(fit=True)
img = qr.make_image(fill='black', back_color='white')
img.save('<file name>.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment