pyscript-template

pyscript-template — Offline PWA starter template.

pyscript-template Progressive Web App starter template repository for deploying offline-capable client-side PyDevices applications on GitHub Pages.

Live Pure-Python Device

Progressive Web App Architecture

Zero-server client-side Python execution in modern web browsers.

Quickstart: Use This Template

# 1. Click "Use this template" on GitHub to create your web app repository
# 2. Edit main.py to write your PyDevices application code:
import displaydev
from pygraphics import FrameBuffer, Area

print("Hello from PyScript & PyDevices!")

# 3. Push to GitHub — GitHub Actions automatically deploys to GitHub Pages!

PWA Offline Manifest & Service Worker

// manifest.json defines standalone desktop & mobile installation:
{
  "name": "PyDevices PyScript PWA",
  "short_name": "PyDevices PWA",
  "display": "standalone",
  "start_url": "./",
  "theme_color": "#121316",
  "background_color": "#121316"
}