Skip to content

API reference

This reference is generated from the source docstrings, so it tracks the code. For learning Golit, start with the Tutorial; come here for exact signatures and behavior.

App & nodes

App, the node decorators, NodeKind, and the per-session Session.

Widgets

Every input widget and its factory — slider, select, upload, button, …

Charts

anychart and the Lets-Plot re-exports.

UI components

The golit.ui presentational builders.

Layout

The golit.layout references and containers.

SQL / data

golit.sql and DuckDB relation helpers.

Server

create_app, the PubSub backends, and Invalidation.

Top-level exports

These are importable straight from golit:

from golit import (
    App, create_app, Session, NodeKind, sql,
    # widget factories
    slider, number, select, text, textarea, checkbox,
    switch, radio, multiselect, date, upload, button,
)
import golit.ui as ui
from golit import layout as L

golit.kernel_version() returns the version string of the compiled Rust kernel; golit.__version__ is the Python package version.