wesktop v0.11.1 /Glossary

#Glossary

Each primitive
Each primitive is a Pydantic model with validated fields. Call .to_node() to get the dict the renderer expects: Source
Here
Here is the full application combining all the pieces. Two files: app.py (the ASGI application) and main.py (the desktop launcher). Source
provider
A provider is an async function that returns a (ui_tree, initial_state) tuple. Register providers by name and serve them from a route: Source
pywebview
pywebview is a lightweight cross-platform library that opens a native webview window and points it at a URL or local HTML string. It provides the rendering surface that wesktop uses for all desktop windows. Out of the box, pywebview supports: Source
The runtime bridge
The runtime bridge is the host-side complement to the page-side update path. Native windows load the same page as the browser, so the framework's /__fastware/client.js reloads the page via SSE when the build id changes -- that is the primary update path, requiring no host involvement and no polling. Source
Search