Skip to main content

QRCode Pix for python

Project description

Pix QRCode - Python

Versao: 1.0

Para geraçao de codigos QR e facilitar pagamentos ao consumidor

Exemplo

Crie a funçao PixQrCode abaixo e defina os parametros em ordem

  • nome

  • telefone (Chave PIX)

  • Cidade de envio

  • Valor de envio

    pix = PixQrCode("Fulano De Tal", "(70) 97070-7070", "Brasilia", "100")

Retorno do QRCode

O QRCode utiliza a biblioteca Pillow como base e aceita os seus parametros para serem gerados, como opacidade, cor e tamanho se necessario

pix.export_base64()

Exporta o QR Code como formato de base64 type image. Para exibiçao direta em tag HTML

pix.save_qrcode(folder, filename, **kwargs)

Salva o QRCode em uma pasta com um nome de arquivo. Formato padrao e PNG (Portable Network Graphic)

pix.generate_code()

Gera a hash convertida em QRCode e interpletada pelos bancos na imagem

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pixqrcode-1.0.2-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file pixqrcode-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pixqrcode-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

File hashes

Hashes for pixqrcode-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06612f75b2c2f3125488ed5737d84573f4fc74bd785107862a6ebcc2e489b696
MD5 98bb7ff709695daa8aecc62d13ada00c
BLAKE2b-256 20ead09021081904a97fedb2f0b924b68b9affcb287b979bd4b7953805ba8228

See more details on using hashes here.

Supported by

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