qrcode · PyPI
pypi.org › project › qrcodeOct 01, 2021 · import io import qrcode qr = qrcode. QRCode qr. add_data ("Some text") f = io. StringIO qr. print_ascii (out = f) f. seek (0) print (f. read ()) The add_data method will append data to the current QR object. To add new data by replacing previous content in the same object, first use clear method: import qrcode qr = qrcode.
qrcode - PyPI
https://pypi.org/project/qrcode01.10.2021 · import qrcode from qrcode.image.pure import PymagingImage img = qrcode.make('Some data here', image_factory=PymagingImage) Styled Image To apply styles to the QRCode, use the StyledPilImage image factory.