Introduction
This is a library that help us to generate a QR Code
Installation¶
Usage¶
There are several ways to generate the QR codes:
- Command Line.
- Basic Use.
- Advance Use.
Commands¶
The simple way to generate the code will be using command line.
Basic Use¶
we can use a short code make
:
Advance Use¶
We can we more control if we use the QRCode
Class
Now from the code we have:
version
it is a integer from 1 to 40 it control the sizes smallest been the version 1, or a matrix \(21X21\), we can set it toNone
and later usefit
parameter to determine the size automatically.fill_color
andback_color
it can change the color of the background and the painting color of the QR.box_size
controls how many pixels each "box" of the QR Code is.border
Controls how many boxes thick the border should be ( default 4, which is the maximum).
error_correction
¶
This parameter control the error correction use for the QR Code, it has four possible constant values:
ERROR_CORRECT_L
: 7% or less errors can be corrected.ERROR_CORRECT_M
: (default) 15% or less errors can be corrected.ERROR_CORRECT_Q
: 25% or less error can be corrected.ERROR_CORRECT_H
: 30% or less error can be corrected.