Skip to content

svandragt/webview-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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:

poetry install
poetry run webview-flask

Makefile:

  • make build: use pex to build a single executable (dist/webview_flask) with Python 3.8-3.11 as its only dependency.
  • make run-build: run it.

About

pywebview flask proof of concept

Resources

Stars

Watchers

Forks

Packages

No packages published