TobiasRothlin / SwissQRInvoiceGenerator

A small collection of python function to generate Swiss QR Invoices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swiss QR Invoice Generator

This is a library that can generate swiss QR invoices in pdf or html. Invoice Example

Installation

if the user wants to use a different html to pdf renderer this can be done by calling the function

createQRInvoice(data,returnHTML=True)

This will return the HTML as a string

wkthmltopdf

To create the pdf the class uses the wkhtmltopdf open source (LGPLv3) command line tool. This tool must be installed on the local machine.

Stable releases: download

Mac OS:

brew install homebrew/cask/wkhtmltopdf   

Python Modules

All needed modules should be installed automatically. If not follow the instructions below.

The module pdfkit is used to interface with wkthmltopdf

pip install pdfkit

To create the QR code the module qrcode is used

pip install qrcode

The library itself can be installed via pip

pip install git+https://github.com/TobiasRothlin/SwissQRInvoiceGenerator.git

About

A small collection of python function to generate Swiss QR Invoices


Languages

Language:Python 100.0%