Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
SBL.gui_codegen_panel Namespace Reference

Packages

MVP-oriented Panel code generator for SBL GUI JSON specs.

This module defines :class:`GeneratorPanel`, which produces a
Panel application project folder using a template and a parsed GUI JSON schema.
The generated app:

- Uses a GridSpec-based input panel for form widgets.
- Places output widgets into fixed or stretchable panes according to widget
    dimensions, avoiding conflicting sizing parameters.
- Registers output widgets so they can be refreshed after the CLI or optional
    post-analysis step completes.
- Hosts an embedded NGL viewer via a lightweight HTTP server for molecular
    visualization, reloading it automatically after outputs refresh.

Primary API:

- ``GeneratorPanel.generate_codes(gui, exe_name, post_script) -> dict[str, str]``
    Returns a dictionary mapping file names to their generated source code.