How to Create QR Code using Python
In this post, I will show you how to create QR Code using Python.
What is a QR Code?
Often when transacting with digital wallets, we scan the QR Code. Not just any code, QR Code is able to speed up and simplify the transaction process. The existence of a QR Code supports cardless transactions which are now echoed everywhere. Exactly what is a QR Code and how does it work?
QR Code is a matrix code or two-dimensional barcode derived from the word “Quick Response”, where the contents of the code can be deciphered quickly and precisely. QR Code was developed by Denso Wave, a Japanese company published in 1994.
QR Code has two types, namely Static QR Code and Dynamic QR Code.
Steps
- Install qrcode library
pip install qrcode
- import qrcode
import qrcode
- Basic Usage
img = qrcode.make("Asep Saputra")
img.save("qrcode1.png")
Using make
is the simplest way to add data to the QR Code that we will create.