Generate QR Code image in the format of Thai QR Payment
available on pip https://pypi.org/project/thaiqrpayment/
pip install thaiqrpayment
import thaiqrpayment
# Your code from Bank
code = "01" * 100
# Save to image file
thaiqrpayment.save(code, "/tmp/qr.png")
# base64 format
base64_str = thaiqrpayment.to_base64(code)
# PIL image
pil_image = thaiqrpayment.generate(code)