INNER CODE UNIT · Python

__load_stage_attributes_from_module__

pdpipe/pdpipe · src/pdpipe/core.py:71

def __load_stage_attributes_from_module__(module_name: object) -> None:
    if not LOAD_STAGE_ATTRIBUTES:
        return  # pragma: no cover
    module_obj = sys.modules[module_name]
    for name, obj in inspect.getmembers(module_obj):
        if inspect.isclass(obj) and obj.__module__ == module_name:
            class_obj = getattr(module_obj, name)
            if issubclass(class_obj, PdPipelineStage) and (
                class_obj.__name__ != "PdPipelineStage"
            ):
                __load_stage_attribute__(class_obj)


# === basic classes ===


class PdpApplicationContext:
    """An object encapsulating the application context of a pipeline.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…