Skip to main content

QR code or string generator for CZ banks payments

Project description

QR Payment CZ

Tool to generate QR code pictures in PNG format (410x410px) for QR payments in Czech Republic based on standart https://qr-platba.cz/pro-vyvojare/specifikace-formatu/

CLI TOOL

qr-payment-cz --help
usage: qr-payment-cz [-h] [-a ACCOUNT] [-i IBAN_ACC] -v AMMOUNT [-m MESSAGE] [-rn RN] [-vs VS] [-ss SS] [-ks KS] [-o OUTPUT_FILE] [-d] [-s] [-fs]

QR payment generator for CZE based on https://qr-platba.cz/pro-vyvojare/specifikace-formatu/

options:
  -h, --help            show this help message and exit
  -a ACCOUNT, --account ACCOUNT
                        Account number std bank account format
  -i IBAN_ACC, --iban-account IBAN_ACC
                        Account number in IBAN format
  -v AMMOUNT, --ammount-value AMMOUNT
                        Payment ammount
  -m MESSAGE, --message MESSAGE
                        Message text for payment
  -rn RN, --receiver-name RN
                        Payment receiver name
  -vs VS, --variable-symbol VS
                        Payment variable symbol
  -ss SS, --specific-symbol SS
                        Payment specific symbol
  -ks KS, --constant-symbol KS
                        Payment contant symbol
  -o OUTPUT_FILE, --output-file OUTPUT_FILE
                        Output PNG image file path
  -d, --display-image   Display generated QR code image
  -s, --silent          Silent mode for info messages
  -fs, --force-silent   Stronger silent mode for all messages

WEB APP

qr-payment-cz-server --help
usage: qr-payment-cz-server [-h] -a ACCOUNT [--host HOST] [--port PORT] [--url-prefix-dir URL_PREFIX]

Server part of QR payment generator for CZE based on https://qr-platba.cz/pro-vyvojare/specifikace-formatu/

options:
  -h, --help            show this help message and exit
  -a ACCOUNT, --account ACCOUNT
                        Account number std bank account format
  --host HOST           Server host address
  -p PORT, --port PORT  Server port
  -r APP_ROOT, --app-root APP_ROOT
                        Server url prefix direcory

System D

Install qr-payment-cz-server as a system service

# if you have app repository cloned
cp ./qr-payment-cz-server.service /lib/systemd/system/qr-payment-cz-server.service
# or
cp /usr/local/lib/python3.8/dist-packages/qr_payment_cz/qr-payment-cz-server.service /lib/systemd/system/qr-payment-cz-server.service
# or
ln -s /usr/local/lib/python3.8/dist-packages/qr_payment_cz/qr-payment-cz-server.service /lib/systemd/system/qr-payment-cz-server.service
systemctl enable qr-payment-cz-server.service

Changelog:

0.2.16

System.d configuration added

0.2.15

Server genearated image is labeled in HTML template

0.2.14

Template enhancements

0.2.13

Url rounting fixes

0.2.12

Template enhancements

0.2.11

Template routing fix for application root

0.2.9

Python 3.8 compatibility fix ii

0.2.8

Int conversion fix

0.2.7

Python 3.8 compatibility fix

0.2.6

Server app index page refactoring

0.2.5

Server app enhancements / CSS

0.2.4

Server app enhancements

0.2.0

Flask server added to serve generated images on specified port and host addess for selected account number. Run server via command qr-payment-cz-server

0.1.6

-d param added to display generater QR code image via system default PNG viewer app

0.1.5

Source code refactorng and tests added

0.1.4

Silent mode added.

0.1.3

Validation of account number format added.

0.1.2

Support for account number defined in usual bank format xxxxxx-xxxxxxxxxx/xxxx.

0.1.1

first version supporting IBAN account numbers only.

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

qr_payment_cz-0.2.16.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

qr_payment_cz-0.2.16-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file qr_payment_cz-0.2.16.tar.gz.

File metadata

  • Download URL: qr_payment_cz-0.2.16.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qr_payment_cz-0.2.16.tar.gz
Algorithm Hash digest
SHA256 bb1f1f20f39ecc4eb56244381d387e98345a7b5b31bcb08ded43da743a98d89c
MD5 115a22a0a663d71f7a4d97993d5160c8
BLAKE2b-256 9292fb3f900063c6f91fb7f6f1e0e0f85c56815a5b3a4e9827415289145ec9fb

See more details on using hashes here.

File details

Details for the file qr_payment_cz-0.2.16-py3-none-any.whl.

File metadata

  • Download URL: qr_payment_cz-0.2.16-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.2","id":"zara","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for qr_payment_cz-0.2.16-py3-none-any.whl
Algorithm Hash digest
SHA256 483fc4f446043378242816b82f38454fffef9f409e19a921522e3295ee1e6ce3
MD5 6f1b47795549b813898498218bd230ec
BLAKE2b-256 f6fa2af3de7ac04c5e78f9b7dca78ccd85693e9ac761ae47d01341428c2de65e

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