Skip to content

Python for web and native apps

Oxid

Write reactive apps in Python for the browser, desktop and Android. Signals, memos and effects update the parts of the interface that read them. Build a static website, bundle a native app, or add HTTP handlers with the included oxid-server. The browser runs Oxid's own Python runtime compiled to WebAssembly; native apps use the same runtime with a native renderer.

uvx oxid build myapp/ --out site/

A counter, whole

from oxid import Signal, component, html, mount

@component
def counter():
    count = Signal(0)

    def inc(ev):
        count.update(lambda n: n + 1)

    return html(t"""
        <button on:click={inc}>clicked {count} times</button>
    """)

mount(counter, "#app")

Current release: 0.28.0. Python 3.14 is required for the tooling. Browser builds are static files and need no Python installation on the visitor's machine. Desktop and Android bundles include the runtime. Ahead-of-time compilation is a separate typed subset.

Free to use · the wheels of every release stay at /dist/, because the chapters and their apps pin one by URL.