Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 26, 2021 12:38 pm GMT

QRcode maker in Python

Qrcode maker in Python

-----------------------

*Requirement

  1. Python (3.9.4)
  2. Python modules
    • PyQRCode
    • pypng

*What's Qrcode

Qrcode: A QR code is a type of matrix barcode invented in 1994 by the Japanese automotive company Denso Wave. A barcode is a machine-readable optical label that contains information about the item to which it is attached.

*Install modules

PyQRCode

Windows:
pip install PyQRCode
Mac:
python3 -m pip install PyQRCode
Linux:
python3 -m pip install PyQRCode

pypng

Windows:
pip install pypng
Mac:
python3 -m pip install pypng
Linux:
python3 -m pip install pypng

*Let's start coding!


import modules:

import pyqrcodefrom pyqrcode import QRCodeimport png

Now little code:

info = input("Info: ")qr = pyqrcode.create(info)qr.png('Qr.png', scale = 6)

*Tryit

image

Result

Scan it and tell me in Discussion:
image

image

Thanks


Original Link: https://dev.to/aditya57/qrcode-maker-in-python-3al9

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To