Skip to content

Installation

rafageist edited this page Dec 4, 2026 · 6 revisions

Installation

TurboFrame is installed from GitHub. It is not published on PyPI.

Requirements

  • Python 3.11 or 3.12. Later versions are expected to work but are not tested in CI.
  • Linux or Windows: see Platforms.
  • A terminal with a monospace font. Any modern terminal works: GNOME Terminal, Konsole, Windows Terminal, kitty, WezTerm, tmux.

TurboFrame installs its own dependencies: Textual 8.2, textual-vision 0.0.1 (pinned exactly, since TurboFrame uses parts of it that may change) and Rich 14.2 or later, which Textual needs too.

Install

In a virtual environment:

python -m venv .venv
. .venv/bin/activate            # Windows: .venv\Scripts\activate
pip install "turboframe @ git+https://github.com/divengine/turboframe@v0.3.0"

A tag (@v0.3.0) always installs the same code. The Releases page lists every version, with its notes, its wheel, its sdist and their SHA256SUMS. You can install the wheel directly:

pip install "turboframe @ https://github.com/divengine/turboframe/releases/download/v0.3.0/turboframe-0.3.0-py3-none-any.whl"

To try a fix before it is released, pin a full commit SHA instead (@<commit-sha>); @main follows the latest commit and is for experiments only.

In your project's pyproject.toml:

[project]
dependencies = [
    "turboframe @ git+https://github.com/divengine/turboframe@v0.3.0",
]

Optional extras

Some modules need one more package. Each is imported only by its own module, so an application installs only the extras it uses:

Extra Installs For
watch watchdog >=6,<8 turboframe.watch and the explorer's folder watching (see Files, The Explorer)
lsp pygls >=2.1,<3 turboframe.lsp.session and turboframe.ui.lsp, the language server in the editor (see LSP Helpers, The Editor)
i18n Babel >=2.12 python -m turboframe.i18n_tools, a development tool (see Translating Your Application)
web aiohttp >=3.9.5,<4 turboframe.web.server: your application in a web browser with --web (see Web Mode); the launcher, turboframe.web, needs no extra
terminal tui-test 0.1.1, psutil >=7 turboframe.testing.terminal, the real-terminal tests (below)

Everything else needs no extra: the desktop, the dialogs, the editor, the explorer (it then refreshes with Ctrl+R), the git windows (they need the git program), the command palette, the languages. The editor's syntax colours come from Textual's tree-sitter grammars: install textual[syntax] for them.

pip install "turboframe[watch,lsp] @ git+https://github.com/divengine/turboframe@v0.3.0"
pip install "turboframe[web] @ git+https://github.com/divengine/turboframe@v0.3.0"   # --web, the browser

The real-terminal test extra

The plugin that tests your application in a real terminal (see Testing) needs two more packages, tui-test and psutil. Install them with the terminal extra:

pip install "turboframe[terminal] @ git+https://github.com/divengine/turboframe@v0.3.0"

Check it

python -c "import turboframe; print(turboframe.__version__)"

Then run the tutorial's first step from a clone of the repository:

git clone https://github.com/divengine/turboframe
cd turboframe
pip install -e .
python examples/tutorial/step1_hello.py

Alt+X exits. Next: Your First Application.

From a clone, to work on TurboFrame itself

git clone https://github.com/divengine/turboframe
cd turboframe
python -m venv .venv
.venv/bin/pip install -e ".[dev,terminal]"
.venv/bin/pytest                       # unit and component tests
.venv/bin/pytest acceptance/terminal   # in a real terminal

Clone this wiki locally