MCPcopy Create free account
hub / github.com/MearaY/StegaPy / get_plugins_by_purpose

Method get_plugins_by_purpose

StegaPy/plugin_manager.py:62–71  ·  view source on GitHub ↗

根据指定用途(如数据隐藏、数字水印)过滤并获取支持该功能的插件列表。

(cls, purpose)

Source from the content-addressed store, hash-verified

60
61 @classmethod
62 def get_plugins_by_purpose(cls, purpose):
63 """根据指定用途(如数据隐藏、数字水印)过滤并获取支持该功能的插件列表。"""
64 if not cls._initialized:
65 cls.load_plugins()
66
67 result = []
68 for plugin in cls._plugins.values():
69 if purpose in plugin.get_purposes():
70 result.append(plugin)
71 return result
72

Callers

nothing calls this directly

Calls 2

load_pluginsMethod · 0.80
get_purposesMethod · 0.45

Tested by

no test coverage detected