Otoe
Otoe is a pre-alpha Python-first frontend runtime for local operational interfaces: hardware control panels, kiosks, appliances, dashboards, offline tools, and operator consoles.
It is for Python developers building controlled product surfaces around local services, device adapters, diagnostics, workflows, and operator actions. The goal is to make those interfaces feel modern, testable, and deployable without making a browser the mandatory runtime or forcing the product into an unrelated frontend stack.
Otoe is not a stable framework yet. Treat it as an active runtime experiment with a usable HTML preview path, early portable UI primitives, deterministic native render evidence, and technical-preview offline bundle tooling.
For the product thesis and anti-goals, read Product North Star.
What Works Today
- Python component functions with explicit widget props and event contracts.
signal,computed,effect, lifecycle cleanup,Show, and keyedFor.otoe.uiprimitives for app frames, cards, badges, action buttons, tabs, tables, dialogs, toasts, command palettes, sidebars, menus, selects, lists, metrics, and dense operational surfaces.- Static HTML rendering for fast visual preview.
- Local live HTML preview for development-time interaction checks.
- A documented portable CSS subset through
css(...),StyleSheet, class selectors, selected portable properties, simple values, and style artifacts. - Headless native layout, paint, PNG output, hit testing, click, focus,
keyboard, input, and scroll dispatch through
NativeSurface. - Offline planning, dependency audit, build, generated runner validation, and pack commands for the first constrained Linux hardware profile.
- Experimental renderer/backend evidence tooling for contributors.
Not Ready Yet
- Stable API guarantees.
- Production native rendering, GPU rendering, retained desktop windowing, or complete native text shaping.
- Platform accessibility tree output.
- Full browser CSS compatibility, DOM APIs, or browser extension points.
- A complete native-parity component library.
- Offline bundles as a security sandbox.
- A generic replacement promise for Qt, Flutter, Electron, React, or browser apps.
Quickstart
Use Python 3.11 or newer. Start with the generated app and keep advanced native/backend surfaces out of your first pass.
python -m pip install otoe
otoe new hello_otoe
cd hello_otoe
otoe check
otoe render app:app --out preview.html --css styles.css --pretty
otoe render app:app --out preview.png --native --css styles.css
otoe dev app:app --css styles.css
otoe build app:app --out dist/cage --css styles.css --validate
What each step proves:
otoe newwritesapp.py,styles.css, and a small app README.otoe checkcompiles the scaffold and catches basic Python errors.otoe render ... preview.htmlis the fastest static visual check. It is a usable preview surface, not a production deployment claim.otoe render ... --nativewrites a deterministic PNG through the current headless native path. Use it for fixtures and evidence, not as a production renderer.otoe devstarts a local live HTML preview for interaction checks. Keep it bound to localhost; it is not a public server or sandbox.otoe build ... --validatewrites a minimal offline bundle and runs the generated runner's verify/load/layout checks. This is a technical preview, not a sandbox or mature deployment platform.
Use otoe check --tests once your generated app has a tests/ directory.
For local development from a checkout:
python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install -e ".[dev]"
python3 -m pytest -q
Repository examples such as examples.quickstart:app are available from a
source checkout, not from the installed wheel:
PYTHONPATH=src:. python -m otoe render examples.quickstart:app --out preview.html --pretty
PYTHONPATH=src:. python -m otoe render examples.quickstart:app --out preview.png --native
PYTHONPATH=src:. python -m otoe dev examples.live_counter:app --port 8767
Surface Maturity
| Surface | Status | Use it for | Not for |
|---|---|---|---|
| Python components and reactivity | Public pre-alpha | Prototypes, local tools, app structure, tests | Stable API commitments |
otoe.ui primitives |
Product-preview | Operational layouts, dense panels, reference apps | Guaranteed native parity for every component |
| Static HTML render | Usable preview | Fast screenshots, reviews, simple visual checks | Final runtime proof |
| Live HTML preview | Local dev only | Iterating on interactions on localhost | Public serving, sandboxing, or deployment |
| Portable CSS subset | Public pre-alpha | Styles that can feed HTML, native evidence, and build artifacts | Full browser CSS compatibility |
Native PNG and NativeSurface |
Experimental evidence | Layout, paint, input, and fixture validation | Production desktop rendering |
| Offline build/pack | Technical preview | Auditable local bundle experiments for constrained Linux targets | Security sandboxing or mature release packaging |
| Backend evidence tooling | Experimental contributor path | Advanced renderer/backend contract checks | First app-author workflow |
Tiny Example
from otoe import Button, Text, VStack, component, computed, mount, signal
@component
def Counter():
count = signal(0)
label = computed(lambda: f"Clicked {count.value} times")
return VStack(
Text(label),
Button("Increment", onClick=lambda: count.set(count.value + 1)),
gap=8,
)
tree = mount(Counter())
Product Shape
Otoe should not be read as a generic replacement for Qt, Flutter, Electron, or browser apps. Its strongest current niche is Python-first operational software:
- hardware control panels
- kiosks and appliance UIs
- internal dashboards
- offline-testable local tools
- operator consoles and diagnostics
- renderer/backend experiments that need deterministic evidence
Wraith inspired some of the first real constraints, but it is a case study, not the product identity. Otoe should stand on its own for many appliance-shaped products.
Use STYLE_GUIDE.md when authoring --css files. Otoe accepts
only the current portable CSS subset for native, plan, and build paths. Richer
browser-only preview stylesheets can exist, but they are not part of the
portable contract yet.
Use otoe portable-core to inspect the current Portable Core UI v0 support
matrix from the installed package.
The Phase 5 professional reference apps are documented in REFERENCE_APP_PATTERNS.md and surfaced through the hardware, admin, data workflow, utility, SaaS, and UI examples.
Documentation
App Authors
- Quick Start
- Concepts
- Component Cookbook
- Widget Contracts
- Style Guide
- Reactive Model
- Portable Core UI v0
- Portable Input Core v0
- API Tiers
- Testing Guide
Operational UI/Product Demos
- Hardware Control Panel Demo
- Reference App Patterns
- Examples Guide
- Mission Exec Showcase - Wraith case study
- Wraith Input Console - Wraith case study
- Wraith Visual Benchmark - Wraith case study
Native/Offline Evidence
- Native Status
- Native Layout
- Native Workflows
- Native Yoga/Skia/SDL3 Roadmap
- Offline Build
- Security and Trust Boundaries
Renderer/Backend Contributors
This is the advanced route for backend candidates, RenderTree, styleOps, coverage declarations, and Path0. App authors do not need this path to start.
- Backend Candidates
- Backend Candidate Guide
- Layout v1 Plan
- Native Renderer Spike
- Backend Candidate Acceptance ADR
- Native Backend Adapter ADR
Project Process/Release
Repository Map
src/otoe/- runtime package.tests/- runtime, renderer, build, and example regression tests.examples/- source-checkout validation surfaces and case studies.preview/- generated preview artifacts.docs/- product-facing guides and support matrices.ADR-*.md- design decisions.ADR-019-native-pillow-text-backend.mdrecords the first real native text backend choice, andADR-020-native-layout-v0-v1-decision.mdrecords the stack-first native layout v0/v1 boundary.
Status
Current status: v0.1.9 pre-alpha product/evidence hardening. The project maintains broad test coverage and the suite is expected to pass locally; optional typing and Pillow tests skip cleanly when those dependencies are unavailable. See ROADMAP.md for the active phase plan.
Readable native PNG text is available through the optional Pillow-backed renderer path; the default native renderer stays dependency-free and deterministic.
License
MIT License. Copyright (c) 2026 Forvara.
Metadata
Release files for otoe 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| otoe-0.1.9.tar.gz | 658.8 kB | With provenance | Details for otoe-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| otoe-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for otoe-0.1.9-py3-none-any.whl |
Total release size: 857.5 kB
Release files / otoe-0.1.9.tar.gz
| Download URL | otoe-0.1.9.tar.gz |
|---|---|
| Size | 658.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f954d211bf42d23fb688621cd76ab1b3d27a9996a70c948dbbcf584cad81466
|
|
BLAKE2b-256 checksum How to use checksums |
ea1bb529dea79cc8563794027aeca3248ae22d09c0ddab59bc837279a3315bf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 21, 2026.
Transparency logRelease files / otoe-0.1.9-py3-none-any.whl
| Download URL | otoe-0.1.9-py3-none-any.whl |
|---|---|
| Size | 198.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a33cf7b3c9fee2c5ccb92b7e9882885e6f8de901e917fa80456a459c548eea22
|
|
BLAKE2b-256 checksum How to use checksums |
e992ae021e25bdf89b3cac3f0924d4b7f69acacac6860f9cba975f6fdc2b2f79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 21, 2026.
Transparency logSecurity for otoe 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for otoe-0.1.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.