/pue

server-driven ui with python/vue.js

Primary LanguagePython

pue

server-driven vue.js ui

example

see the example app running here.

overview

proof-of-concept i hacked together last weekend. omits all frontend build shenanigans and uses cdn vue/vue-router just to illustrate an e2e working example. vue components are written in python and served to the frontend via an api endpoint. there is a dsl to allow you to script some client side logic also in python, but the idea is more to just have python do stuff (data fetching/whatever) and render a layout that it returns to the frontend, maybe as a sub-application inside a larger vue app.

inspired by:

  • dash
  • bloks (ig internal library for server-driven mobile uis)

getting started

python --version # 3.12
git clone https://github.com/thejchap/pue.git
cd pue && make