Welcome folks today in this post we will be generating
qr codes and saving it to
png image file using
pyqrcode library in python. All the source code of the application will be given below.
In order to get started you need to install the following libraries using
pip command inside your python project
pip install pyqrcode
pip install pypng
After installing all these libraries now make an
app.py file and copy paste the following code
address = "https://pythonprogramming.altervista.org/"
url = pyqrcode.create(address)
So now if you execute this python script by typing the below command
You will see a
qr code generated and save it as
png file inside your root directory as shown below