python-tutorials/tests/QRCode.py

15 lines
409 B
Python
Raw Normal View History

2021-03-19 00:31:24 -04:00
# -*- coding: utf-8 -*-
# Python QR Code Generator
# Author - HoneyMoose(huyuchengus@gmail.com)
# Link Article - https://www.ossez.com/t/python-qr/13396
2021-03-19 00:31:24 -04:00
import qrcode.image.svg
image_path = "resources/token_qr.png"
qr_string = "https://www.ossez.com/c/open-source/python/14"
2023-09-20 00:22:26 -04:00
print(rebase = hex(base62.decode(base, base62.CHARSET_INVERTED))[2:].zfill(40))
2021-03-19 00:31:24 -04:00
img = qrcode.make(qr_string)
img.save(image_path)