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…


This content originally appeared on DEV Community and was authored by Aditya Kumar

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 pyqrcode
from pyqrcode import QRCode
import 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


This content originally appeared on DEV Community and was authored by Aditya Kumar


Print Share Comment Cite Upload Translate Updates
APA

Aditya Kumar | Sciencx (2021-04-26T12:38:52+00:00) QRcode maker in Python. Retrieved from https://www.scien.cx/2021/04/26/qrcode-maker-in-python/

MLA
" » QRcode maker in Python." Aditya Kumar | Sciencx - Monday April 26, 2021, https://www.scien.cx/2021/04/26/qrcode-maker-in-python/
HARVARD
Aditya Kumar | Sciencx Monday April 26, 2021 » QRcode maker in Python., viewed ,<https://www.scien.cx/2021/04/26/qrcode-maker-in-python/>
VANCOUVER
Aditya Kumar | Sciencx - » QRcode maker in Python. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/04/26/qrcode-maker-in-python/
CHICAGO
" » QRcode maker in Python." Aditya Kumar | Sciencx - Accessed . https://www.scien.cx/2021/04/26/qrcode-maker-in-python/
IEEE
" » QRcode maker in Python." Aditya Kumar | Sciencx [Online]. Available: https://www.scien.cx/2021/04/26/qrcode-maker-in-python/. [Accessed: ]
rf:citation
» QRcode maker in Python | Aditya Kumar | Sciencx | https://www.scien.cx/2021/04/26/qrcode-maker-in-python/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.