MCPcopy Index your code
hub / github.com/modelscope/modelscope / discover_file_plugins

Function discover_file_plugins

modelscope/utils/plugins.py:99–108  ·  view source on GitHub ↗

Discover plugins from file

(
        filename: str = LOCAL_PLUGINS_FILENAME)

Source from the content-addressed store, hash-verified

97
98
99def discover_file_plugins(
100 filename: str = LOCAL_PLUGINS_FILENAME) -> Iterable[str]:
101 """
102 Discover plugins from file
103 """
104 with open(filename) as f:
105 for module_name in f:
106 module_name = module_name.strip()
107 if module_name:
108 yield module_name
109
110
111def discover_plugins(requirement_path=None) -> Iterable[str]:

Callers 1

discover_pluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…