MCPcopy
hub / github.com/httpie/cli / iter_entry_points

Method iter_entry_points

httpie/plugins/manager.py:59–64  ·  view source on GitHub ↗
(self, directory: Optional[Path] = None)

Source from the content-addressed store, hash-verified

57 return [plugin for plugin in self if issubclass(plugin, by_type)]
58
59 def iter_entry_points(self, directory: Optional[Path] = None):
60 with enable_plugins(directory):
61 eps = importlib_metadata.entry_points()
62
63 for entry_point_name in ENTRY_POINT_NAMES:
64 yield from find_entry_points(eps, group=entry_point_name)
65
66 def load_installed_plugins(self, directory: Optional[Path] = None):
67 for entry_point in self.iter_entry_points(directory):

Callers 2

listMethod · 0.80

Calls 2

enable_pluginsFunction · 0.85
find_entry_pointsFunction · 0.85

Tested by

no test coverage detected