Skip to content

StreamTree

Declarative, typed composition for Streamlit. Build virtual UI trees with Python, reuse @component functions, and let the renderer translate them into Streamlit widgets on every rerun.

Alpha software

APIs may evolve between releases. Pin versions in production and read Changelog when upgrading.

  • Get started


    Install, mental model, and next steps in Getting started.

  • Recipes


    Step-by-step patterns: state, forms, routing, async, multipage, CRUD, and more in the Recipes cookbook.

  • Examples


    Full source for every script under examples/ on Examples (full source).

  • API reference


    Autodoc for testing helpers, asyncio tasks, core context, CLI helpers — see API reference in the tab bar.

  • Design guides


    Plan, roadmap, dependency strategy, performance, and phase notes under Guides → Design & roadmap.

  • Testing & debugging


    AppTest, tree snapshots, and debug helpers in Testing & debugging.

Install (quick)

pip install streamtree

Optional extras ([tables], [charts], [ui], [auth], [cli], …) are described in Dependency strategy.

Canonical README

The root README on GitHub remains the single source for PyPI: full capability matrix, CLI examples, contributing, and badges.