paidiverpy.frontend.json_dump#
This module provides functions to extract values from a Panel layout and convert them into a structured JSON-like dictionary.
Functions#
|
Recursively find all widgets and layouts in a Panel layout. |
|
Check if a widget is valid for extraction. |
|
Parse a widget name into a list of keys. |
|
Insert a value into a nested dictionary structure based on keys. |
|
Extract values from a list of widgets and return them as a structured dictionary. |
|
Extract JSON-like dictionary from a Panel layout or widget. |
Module Contents#
- paidiverpy.frontend.json_dump.find_deep_layout(layout: panel.widgets.Widget, founds: list[panel.widgets.Widget]) list[panel.widgets.Widget][source]#
Recursively find all widgets and layouts in a Panel layout.
- paidiverpy.frontend.json_dump.check_valid_inputs(widget: panel.widgets.Widget, step: bool = False) bool[source]#
Check if a widget is valid for extraction.
- paidiverpy.frontend.json_dump.parse_name(name: str) list[Any][source]#
Parse a widget name into a list of keys.
- paidiverpy.frontend.json_dump.insert_nested(result: dict[str, Any], keys: list[Any], value: Any) None[source]#
Insert a value into a nested dictionary structure based on keys.
- paidiverpy.frontend.json_dump.extract_values(widgets: list[panel.widgets.Widget], step: bool = False) dict[str, Any][source]#
Extract values from a list of widgets and return them as a structured dictionary.