This is a QR-generator service you can host on your own machine.
Basically its a Flask server wrapped around this QR code image generator providing an easy-to-use web UI (and an API) to generate QR-codes.
Hint: QR-Codes are cached in folder codes
. In production you should deploy a proper clean-up mechanism here ;)
Example: http://localhost:5000?url=https://mbarde.de&boxsize=50
Expected parameters:
url
: URL to "qr-encode"size
(optional): Size (width & height) of resulting QR code imageboxsize
(optional): Size of single box of the QR code (whensize
is set as well, this is the size of each box before image gets resized)fill
(optional): Hex code for fill color (without#
)back
(optional): Hex code for background color (without#
)
Within your virtual environment:
pip install -r requirements.txt
env FLASK_APP=server.py flask run --host=0.0.0.0
Access via http://localhost:5000/
In production enviroments I suggest serving the application via waitress:
pip install waitress
waitress-serve --port=5000 --call "server:create_app"