Skip to content

Latest commit

 

History

History
36 lines (20 loc) · 1009 Bytes

File metadata and controls

36 lines (20 loc) · 1009 Bytes

QR Code Generator

What is a QR code?

QR codes are used to encode and decode the data into a machine-readable form. The use of camera phones to read two-dimensional barcodes for various purposes is currently a popular topic in both types of research and practical applications. #

Steps:

  1. To generate QR Codes with Python you need to install only one Python library for this task:

pip install pyqrcode

  1. Now let’s see how to create a QR Code with Python programming language
import pyqrcode
from pyqrcode import QRCode

# String which represent the QR code

s = "https://github.com/laxmanbalaraman/"

# Generate QR code

url = pyqrcode.create(s)

# Create and save the png file naming "myqr.png"

url.svg("myQr.svg", scale = 8)
  1. View the Qr file that must be saved in your current directory

myQr

You have successfully created a QR code you using python!!