nexusLIMS.tui.apps.instruments.app#

Instrument Management TUI Application.

Provides an interactive terminal UI for CRUD operations on the NexusLIMS instruments database.

Module Contents#

Classes#

InstrumentManagerApp

TUI application for managing NexusLIMS instruments.

API#

class nexusLIMS.tui.apps.instruments.app.InstrumentManagerApp(db_path: Path | None = None, **kwargs)[source]#

Bases: nexusLIMS.tui.common.base_app.BaseNexusApp

TUI application for managing NexusLIMS instruments.

Provides:

  • List view of all instruments

  • Add new instruments

  • Edit existing instruments

  • Delete instruments (with confirmation)

  • Theme switching

  • Help screen

Parameters:

db_path (Path | None) – Path to the database file. If provided, overrides NX_DB_PATH from config. If None, uses the value from config.settings.NX_DB_PATH.

property db_path: Path#

Get the database path (override or from config).

on_mount() None[source]#

Set up the app and show instrument list.

get_app_name() str[source]#

Get application name for help screen.

get_keybindings() list[tuple[str, str]][source]#

Get app-specific keybindings for help screen.