Skip to content

API Reference

Complete API documentation for PyWry.

Core

Module Description
pywry Main PyWry class for native windows
InlineWidget Browser/notebook widgets via FastAPI
Widget Notebook widget classes
Runtime PyTauri subprocess management
WindowProxy Native window control handle
MenuProxy Native menu management
TrayProxy System tray management

Events

Module Description
Event Reference All events, payloads, and the JavaScript bridge API

Models & Configuration

Module Description
pywry.models HtmlContent, WindowConfig, WindowMode
pywry.config Settings classes and configuration
pywry.types Type aliases and enums
pywry.exceptions Exception classes

CSS

Page Description
CSS Overview Variables, theming, custom CSS injection
Core Stylesheet Layout, toolbar, buttons, inputs, controls, modal, scrollbars
Chat Stylesheet Chat UI classes
Toast Stylesheet Toast notification classes
TradingView Stylesheet TradingView chart UI classes

Chat

Module Description
pywry.chat Core chat models, config, and HTML builder
pywry.chat_manager High-level chat orchestration, artifacts, and UI state

State Management

Module Description
State WidgetStore, EventBus, CallbackRegistry, Redis backend
State Mixins Grid, Plotly, TVChart, Toolbar state mixins

Toolbar & Modal

Module Description
Modal Modal dialog API
Toolbar Functions Secret management and event utilities

Toolbar component signatures are documented inline on each Components page.

Utilities

Module Description
pywry.callbacks Callback registry
pywry.asset_loader Asset loading
pywry.hot_reload Hot reload manager
pywry.templates HTML template builder
pywry.scripts JavaScript bridge code