import_discovery
is_ignored
def is_ignored(symbol: Any, ignore_symbols: List[Any]) -> bool
Check whether a symbol should be ignored
Arguments:
symbol: symbol to checkignore_symbols: list of symbols to ignore
run_discovery
def run_discovery(
module: Union[ModuleType, dict],
ignore_symbols: Optional[List[Any]] = None,
**kwargs
) -> Tuple[Set[Type[ComponentInstance]], Set[Type[ActionImpl]]]
Recursively discover components available in the global namespace within the module
and its child modules.
Arguments:
module: module or a dict of global symbols to discover components fromignore_funcs: marked symbols to ignore; used internally to ignore encountered symbols when recursing into other modulesmodule_root: root module; used internally to scope discovery to sub-modules of current module
create_component_definition
def create_component_definition(component: Type[ComponentInstance],
local: bool = False)
Create a JsComponentDef for a given component class.
Arguments:
component: component to create definition forlocal: whether the component is local. For local components js_module is not required, as their location is defined via dara.config.json
create_action_definition
def create_action_definition(action: Type[ActionImpl], local: bool = False)
Create a ActionDef for a given action class.
Arguments:
action: action to create definition forlocal: whether the action is local For local actions js_module is not required, as their location is defined via dara.config.json