← all projects

webview-flask

Python desktop app that packages a Flask web UI into a native webview executable
repo desktop-app flask packaging proof-of-concept python pywebview

Archived. This project is replaced by hello-browser.

Proof of concept using web technologies for UI, and python to produce a desktop application.

The stack is currently:

This produces a 4mb executable, runnable by Python 3.12 and up. Tested on ubuntu 22.04.

image

Installation

Multiple options:

  1. Build the executable (see below), OR
  2. Install using pipx: pipx install webview-flask

Contributing

The project can also run from a venv:

Setup:

uv sync --dev
uv run webview-flask

Run the tests:

uv run pytest

Makefile: