Skip to main content

Thai QR Payment Generator

Project description

thai-qr-payment

Generate QR Code image in the format of Thai QR Payment

Installation

available on pip https://pypi.org/project/thaiqrpayment/

pip install thaiqrpayment

Usage

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)

Example Image

Thai QR Payment example

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thaiqrpayment-0.1.0.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

thaiqrpayment-0.1.0-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file thaiqrpayment-0.1.0.tar.gz.

File metadata

  • Download URL: thaiqrpayment-0.1.0.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

File hashes

Hashes for thaiqrpayment-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5719a5db78854c95de1cd38f9d206e6ef176a5e686ff2902c7cae6c612355d2f
MD5 c2774c0c6c8b66b4c9c3ee1065fb9c5c
BLAKE2b-256 f6c66964e3cfa495b484a5be1c6f23012c65e587d9f636216b074406e9f3202b

See more details on using hashes here.

File details

Details for the file thaiqrpayment-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: thaiqrpayment-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

File hashes

Hashes for thaiqrpayment-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d36267baaf11235d6307213a4719c66580ef841632a4cc4610912ece16a69b1e
MD5 0ca629a60c6e3d54b9ec1486857dafc1
BLAKE2b-256 ac4e10d634dbe4c9cc9aa9f0c8241d37c4ba553ac02066317eaeea545d5f03f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page