MCPcopy Index your code
hub / github.com/wechaty/python-wechaty / get_plugins_nav

Method get_plugins_nav

src/wechaty/plugin.py:637–651  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

635
636 @app.route('/plugins/list')
637 async def get_plugins_nav() -> Response:
638
639 navs = []
640 for plugin in self.plugins():
641 if not plugin.VISIABLE:
642 continue
643
644 nav = NavDTO(
645 name=plugin.name,
646 status=int(
647 self._plugin_status[plugin.name] == PluginStatus.Running
648 ))
649 nav.update_metadata(plugin.metadata())
650 navs.append(asdict(nav))
651 return success(navs)
652
653 @app.route('/plugins/status', methods=["POST", 'PUT'])
654 async def change_status() -> Response:

Callers

nothing calls this directly

Calls 5

pluginsMethod · 0.95
update_metadataMethod · 0.95
NavDTOClass · 0.90
successFunction · 0.90
metadataMethod · 0.80

Tested by

no test coverage detected