MODULE REFERENCE
component
anomx.base.componentShared metadata for discoverable native algorithms.
Models, scorers, detectors, classifiers, and execution algorithms expose their configuration, capabilities, and signatures here. The platform builds its catalog payloads from this metadata in its own component-catalog helper.
classView source ↗
BaseComponent
BaseComponentCommon metadata surface for installable pipeline components.
Members
component_typeattribute
component_type: ClassVar[str | None] = Nonecomponent_keyattribute
component_key: ClassVar[str] = ''component_nameattribute
component_name: ClassVar[str] = ''component_descriptionattribute
component_description: ClassVar[str] = ''component_docsattribute
component_docs: ClassVar[str] = ''component_iconattribute
component_icon: ClassVar[str] = ''component_image_pathattribute
component_image_path: ClassVar[str] = ''component_statusattribute
component_status: ClassVar[str] = 'active'component_discoverableattribute
component_discoverable: ClassVar[bool] = Truecomponent_default_configattribute
component_default_config: ClassVar[dict[str, Any]] = {}component_config_schemaattribute
component_config_schema: ClassVar[dict[str, Any]] = {}component_code_versionattribute
component_code_version: ClassVar[str] = ''signatureattribute
signature: ClassVar[ModelSignature | None] = Noneis_component_abstractclassmethod
get_component_typeclassmethod
get_component_keyclassmethod
get_component_nameclassmethod
get_component_docsclassmethod
get_component_descriptionclassmethod
get_component_iconclassmethod
get_component_image_pathclassmethod
get_component_statusclassmethod
get_component_default_configclassmethod
get_component_default_config() -> dict[str, Any]Returns dict[str, Any]
get_component_config_schemaclassmethod
get_component_config_schema() -> dict[str, Any]Returns dict[str, Any]
get_component_code_versionclassmethod
get_component_source_pathclassmethod
get_component_import_pathclassmethod
get_component_capabilitiesclassmethod
get_component_capabilities() -> list[str]Returns list[str]
get_component_signatureclassmethod
get_component_signature() -> ModelSignature | NoneReturns ModelSignature | None
get_component_parametersclassmethod
get_component_parameters() -> list[dict[str, Any]]Describe the configurable parameters of this component.
The schema and defaults are the source of truth; the __init__ docstring may add per-parameter descriptions later.
Returns list[dict[str, Any]]
get_configmethod
get_config() -> dict[str, Any]Return the effective configuration of this component instance.
Returns dict[str, Any]
functionView source ↗
humanize_component_name
humanize_component_name(value: str | None) -> str| Parameter | Type | Default |
|---|---|---|
value | str | None | required |
Returns str
functionView source ↗
read_component_source_path
read_component_source_path(component_class: type[object]) -> str| Parameter | Type | Default |
|---|---|---|
component_class | type[object] | required |
Returns str
attributeView source ↗
PROJECT_ROOT
PROJECT_ROOT = Path(__file__).resolve().parents[3]