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.17

System.d configuration added

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.17.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.17-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qr_payment_cz-0.2.17.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.17.tar.gz
Algorithm Hash digest
SHA256 93f2830903c571752486ad7b5bb81801655957053f70d9b08ce3b3e0154828f6
MD5 989ed59062568237ba3709b04aa1ad32
BLAKE2b-256 d916d57d36b9bc7892b247250821bb3c919157c2376d8d4ae0f4a62c995246f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qr_payment_cz-0.2.17-py3-none-any.whl
  • Upload date:
  • Size: 15.3 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.17-py3-none-any.whl
Algorithm Hash digest
SHA256 6f109cf9d33c0bbaf8e0cddf755ca86bd5a62110b5c1b0770ac175ece0aa0126
MD5 2b2e60b96042096868e443670235547e
BLAKE2b-256 d993345effc2522e6f11935e80b1943dec8f332db7c67ce5e6d11bcbd247eb6e

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