An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
April 26, 2021 12:38 pm GMT
Original Link: https://dev.to/aditya57/qrcode-maker-in-python-3al9
QRcode maker in Python
Qrcode maker in Python
-----------------------
*Requirement
- Python (3.9.4)
- 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
Result
Scan it and tell me in Discussion:
Thanks
Original Link: https://dev.to/aditya57/qrcode-maker-in-python-3al9
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To