Python syntax, Rust libraries
Oxid
Write an application in Python syntax with Rust's rules and Rust libraries. Build a web page, an HTTP server, a desktop window or one native executable. Oxid checks types and ownership before execution; oxid run executes application code through the JIT, and oxid build makes a native executable through Rust.
print("Hello, Oxid")uvx oxid run hello.pySave the example as hello.py, then run it.
Language
Python syntax with checked integers, concrete types and ownership. One language for run and build.
Rust libraries
Data frames, an HTTP server, a database and an explicit export boundary for your own Rust code.
Web pages
Signals, memos and effects update the parts of a view that read them. Build static assets with oxid web build.
HTTP server
Write Oxid handlers with routes, sessions, authentication and WebSockets in oxid_server.
Desktop apps
Download Notes for macOS, Windows and Linux; bundle your own Python app with oxid native bundle.
Android apps
Package the same app as an APK with oxid native apk and the Android SDK.
Playground
Try an application in Python syntax in your browser, without installing Oxid.
Gallery
Example apps with dated browser and desktop measurements. Recorded releases stay attached to their results.
VS Code extension
Language-server diagnostics and completion while you write Oxid programs.
Academy
Documentation and worked examples for views, routing, servers and native apps.
What Oxid is not
Not CPython: import numpy and other CPython/PyPI packages do not run. Use the supported Rust-backed APIs, or call an external service over HTTP. Not a replacement for Rust: library authors still use Rust for low-level control. Not open source: Oxid is free to use and proprietary.
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")Try it in the playground. Paste the counter above and press Run.
Current release: 0.28.1. Python 3.14 is required for the tooling. Browser builds are static files and need no Python installation on the visitor's machine. Run and build use the same application language, not separate strict and loose modes.
Free to use · the wheels of every release stay at /dist/, because the chapters and their apps pin one by URL.