Proof of concept using web technologies for UI, and python to produce a desktop application.
The stack is currently:
- pyenv: manage python versions.
- poetry: python dependency management
- pywebview: qt/gtk webview
- flask: local server and web framework
- pex: packaging
- makefile: build configuration
This produces a 4mb executable, runnable by Python 3.8 and up. Tested on ubuntu 22.04.
Multiple options:
- Build the executable (see below), OR
- Install using pipx:
pipx install webview-flask
The project can also run from a venv:
Setup:
poetry install
poetry run webview-flask
Makefile:
make build
: usepex
to build a single executable (dist/webview_flask
) with Python 3.8-3.11 as its only dependency.make run-build
: run it.