Repository navigation
TurboFrame 0.1.0
TurboFrame 0.1.0
The first release of TurboFrame: desktop applications for the terminal, the Turbo Vision way, in Python,
built on Textual and textual-vision. It gathers the infrastructure that
divide and turbodoo built and
proved in daily use, as components that run and are tested on their own.
TurboFrame is distributed from GitHub only. It is not on PyPI.
Install
pip install "turboframe @ git+https://github.com/divengine/turboframe@v0.1.0"Or the wheel attached to this release (check it against SHA256SUMS):
pip install "turboframe @ https://github.com/divengine/turboframe/releases/download/v0.1.0/turboframe-0.1.0-py3-none-any.whl"For real-terminal tests, add the terminal extra: turboframe[terminal] @ git+...@v0.1.0.
Requirements
- Python 3.11 or later; tested on 3.11 and 3.12.
- Linux and Windows, both required in CI. macOS is not tested yet.
textual>=8.2,<9andtextual-vision==0.0.1(pinned exactly: TurboFrame uses parts of it that may change).- The
terminalextra:tui-test==0.1.1andpsutil>=7.
What is in it
Core (no UI library):
| Module | What it is |
|---|---|
turboframe.process |
child processes that end with the application; a command runner that streams output and never waits on a prompt; quiet_env |
turboframe.git |
git through its machine formats: status, log, details, blame, diffs, branches, remotes, staging, commit and amend, discard, switch, fetch, pull, push, merge, stashes |
turboframe.search |
find and replace in plain text |
turboframe.lsp |
Language Server Protocol positions, snippets and hovers |
turboframe.text |
the glyph policy: ASCII and CP437, and its check |
turboframe.i18n |
the framework's language, with a Spanish catalogue |
User interface:
| Module | What it is |
|---|---|
turboframe.ui.app |
DesktopApp, the base of an application: themes, shadows, menus, status line, numbered windows, modal dialogs, child processes ended on exit |
turboframe.ui.desktop |
the menu bar, the status line, the reserved command range |
turboframe.ui.windows |
windows, Turbo Vision scroll bars, lists, the locations window |
turboframe.ui.filter |
lists and trees filtered by typing |
turboframe.ui.dialogs |
message boxes, File Open, Find and Replace, Go to line, input dialogs |
turboframe.ui.history |
input lines that remember, with a pluggable store |
turboframe.ui.progress |
the progress box, with Esc to stop |
turboframe.ui.themes |
nine palettes, colour roles, colour depth |
turboframe.ui.colors |
Options > Colors |
turboframe.ui.shadow |
Turbo Vision's drop shadows |
turboframe.ui.icons |
file marks |
turboframe.ui.diffview |
the diff viewer, unified or side by side |
turboframe.ui.compat |
terminal compatibility (Alt keys) |
Testing:
| Module | What it is |
|---|---|
turboframe.testing |
wait_for, dialog_ready and the isolated_config fixture |
turboframe.testing.terminal |
a pytest plugin that drives an application in a real terminal and checks that no process is left behind |
Also: a five-step tutorial in examples/tutorial (each step tested), and the
wiki with a guide per component and an API reference generated
from the code.
Breaking changes
None: this is the first release. Before 1.0, a minor release may change the public API; every such change is
listed here with a migration note.
Verification
- 212 unit and component tests on Linux (Python 3.11 and 3.12) and Windows (Python 3.12).
- The real-terminal tests on Linux and Windows.
- The sdist and the wheel are built by the release workflow, the wheel is installed in a clean environment and
the test suite runs against it before the release is published.
Integrating in divide
- Dependency:
turboframe @ git+https://github.com/divengine/turboframe@v0.1.0;turboframe[terminal]for
acceptance tests. - Replaces: the process lifecycle, compat, filter, windows, menus and status line (already adopted), and the
themes, shadows, search, history, dialogs, progress, colours, icons, diff viewer, git service, LSP helpers,
glyph policy, the desktop base ofapp.py, the test helpers and the real-terminal support. - Changes needed: each module becomes a re-export plus what is divide's own; stores are set once
(set_store(config),DiffView.store = config,colors_store = config);turboframe_acceptance_prefix = "DIVIDE". - Kept differences: divide's server table, its hover extras, its own dialogs and marks,
raise_window. - Verify: the unit suite, the acceptance journeys and the real-terminal scenarios; a wheel in a clean
environment and the binary, which must collectturboframewith itslocale/data. - Rollback: pin the previous commit; nothing else changes.
Integrating in turbodoo
- Dependency:
turboframe @ git+https://github.com/divengine/turboframe@v0.1.0;turboframe[terminal]for
acceptance tests. - Replaces: as divide, without progress (turbodoo has none of its own).
- Changes needed: re-exports;
set_store(preferences),DiffView.store = preferences,colors_store = preferences;FileDialog.SELECT_NAME = True;turboframe_acceptance_prefix = "TURBODOO". - Kept differences:
windows(),active_window()andraise_window; its own dialogs and marks. - Verify: the unit suite, the acceptance journeys and RT-001/002/003; the wheel and the binary.
- Rollback: pin the previous commit; nothing else changes.