Skip to main content

Generates UPN QR codes in PNG format

Project description

upnqr-png

Generates UPN QR payment codes in PNG format for fast payment using the Slovene Universalni Plačilni Nalog standard.

Installation

pip install upnqr-png

The package's distribution name is upnqr-png; the import name is upnqr.

Usage

from upnqr.upnqr import make_png

output_path = "qr.png"

payload = {
  "payee": {
    "name": "Foo d.o.o.",
    "iban": "SI56 0000 0000 0000 000",
    "address": {
      "street": "Lepa ulica 1",
      "postalCode": "1000",
      "postalLocality": "Ljubljana",
    },
  },
  "payer": {
    "name": "Bar d.o.o.",
    "address": {
      "street": "Lepa ulica 2",
      "postalCode": "1000",
      "postalLocality": "Ljubljana",
    },
  },
  "payment": {
    "dueCents": 4200,
    "code": "OTHR",
    "purpose": "Plačilo računa",
    "dueDate": "2024-01-01",
    "reference": "SI00 2024-000001",
  },
}

make_png(payload, output_path)

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

upnqr_png-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

upnqr_png-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: upnqr_png-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for upnqr_png-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a1292a1f92db1c95fa42f12d0247073b4928b5f8d7b196a09316078588dde643
MD5 37f48903bb68c542fd136bcae62243de
BLAKE2b-256 d2437b3a5dc9a239ea3cef994b929933b58639ed76654de436e4c6eeebf1bdad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: upnqr_png-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for upnqr_png-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b31f01ce33c243a911a23742ed720cb7fa304c8e1cc5ba36cbc77186a8f8a470
MD5 e8e3ecf1c05216715d61464bd31f0c77
BLAKE2b-256 339b66988e4a64dadadc30db72a902beb00e1a2092d44e2e3a5e8d19e111ad41

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