Python | Generate QR Code using pyqrcode module Last Updated : 17 May, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report Let's see how to generate QR code in Python using pyqrcode module. pyqrcode module is a QR code generator. The module automates most of the building process for creating QR codes. This module attempts to follow the QR code standard as closely as possible. The terminology and the encodings used in pyqrcode come directly from the standard. Installation $ pip install pyqrcode install an additional module pypng to save image in png format: $ pip install pypng pyqrcode.create(content, error='H', version=None, mode=None, encoding=None) : When creating a QR code only the content to be encoded is required, all the other properties of the code will be guessed based on the contents given. This function will return a QRCode object. One can specify all the properties of required QR code through the optional parameters of the pyqrcode.create() function. Below are some properties: error: This parameter sets the error correction level of the code. version: This parameter specifies the size and data capacity of the code. mode: This parameter sets how the contents will be encoded. Below is the code: Python3 # Import QRCode from pyqrcode import pyqrcode import png from pyqrcode import QRCode # String which represents the QR code s = "www.geeksforgeeks.org" # Generate QR code url = pyqrcode.create(s) # Create and save the svg file naming "myqr.svg" url.svg("myqr.svg", scale = 8) # Create and save the png file naming "myqr.png" url.png('myqr.png', scale = 6) Output: Comment More infoAdvertise with us Next Article Reading and Generating QR codes in Python using QRtools S sahil_rajput Follow Improve Article Tags : Python Practice Tags : python Similar Reads Wi-Fi QR Code Generator Using Python Prerequisite: Getting Saved Wifi Passwords using Python We know the wireless network is the most common network adapter for today, Because of its supports portability and User friendly. In this article, we will see how we can get the current saved Wi-Fi name and passwords and generate QR code to con 2 min read Generate QR Code using qrcode in Python A Quick Response Code or a QR Code is a two-dimensional bar code used for its fast readability and comparatively large storage capacity. It consists of black squares arranged in a square grid on a white background.Python has a library "qrcode" for generating QR code images. It can be installed using 2 min read Reading and Generating QR codes in Python using QRtools This article aims to introduce the use of the python library: qrtools. This library can be used to both read QR codes and generate them. What are QR codes? QR code, or quick response code, is a trademark for a type of 2 dimensional barcode. 2 dimensional barcodes are similar to one dimensional barco 5 min read Introduction to PyQtGraph Module in Python PyQtGraph is a graphics and user interface library for Python that provides functionality commonly required in designing and science applications. Its primary goals are to provide fast, interactive graphics for displaying data (plots, video, etc.) and second is to provide tools to aid in rapid appli 4 min read File Sharing App using Python Computer Networks is an important topic and to understand the concepts, practical application of the concepts is needed. In this particular article, we will see how to make a simple file-sharing app using Python. Â An HTTP Web Server is software that understands URLs (web address) and HTTP (the proto 4 min read Detect and Read Barcodes with OpenCV in Python A barcode is a graphical representation of data that is machine-readable. It consists of parallel lines or rectangles of varying widths and spacings, along with specific patterns, that encode information. Barcodes are widely used for automatic identification and tracking of products, assets, invento 3 min read Like