python api gets a post request for qrcode generator and gives a pdf to download code example
Example 1: qr code in python
import qrcode
qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=10,
border=4,
)
qr.add_data('Some data')
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
Example 2: qrcode.make python
pip install qrcode[pil]