Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

create qr code in python

# Import QRCode from pyqrcode
import pyqrcode
import png
from pyqrcode import QRCode
  
  
# String which represents the QR code
s = "www.codingforfree.com"
  
# Generate QR code
url = pyqrcode.create(s)
  
# Create and save the svg file naming "myqr.svg"
url.svg("myqr.svg", scale = 8)
  
# Create and save the png file naming "myqr.png"
url.png('myqr.png', scale = 6)
Source by pypi.org #
 
PREVIOUS NEXT
Tagged: #create #qr #code #python
ADD COMMENT
Topic
Name
4+3 =