Skip to content

TurboFrame 0.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 22:28
· 86 commits to main since this release
c0ec9d4

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,<9 and textual-vision==0.0.1 (pinned exactly: TurboFrame uses parts of it that may change).
  • The terminal extra: tui-test==0.1.1 and psutil>=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

  1. Dependency: turboframe @ git+https://github.com/divengine/turboframe@v0.1.0; turboframe[terminal] for
    acceptance tests.
  2. 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 of app.py, the test helpers and the real-terminal support.
  3. 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".
  4. Kept differences: divide's server table, its hover extras, its own dialogs and marks, raise_window.
  5. Verify: the unit suite, the acceptance journeys and the real-terminal scenarios; a wheel in a clean
    environment and the binary, which must collect turboframe with its locale/ data.
  6. Rollback: pin the previous commit; nothing else changes.

Integrating in turbodoo

  1. Dependency: turboframe @ git+https://github.com/divengine/turboframe@v0.1.0; turboframe[terminal] for
    acceptance tests.
  2. Replaces: as divide, without progress (turbodoo has none of its own).
  3. Changes needed: re-exports; set_store(preferences), DiffView.store = preferences, colors_store = preferences; FileDialog.SELECT_NAME = True; turboframe_acceptance_prefix = "TURBODOO".
  4. Kept differences: windows(), active_window() and raise_window; its own dialogs and marks.
  5. Verify: the unit suite, the acceptance journeys and RT-001/002/003; the wheel and the binary.
  6. Rollback: pin the previous commit; nothing else changes.