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

Method load_installed_plugins

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

Source from the content-addressed store, hash-verified

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):
68 plugin_name = get_dist_name(entry_point)
69 try:
70 plugin = entry_point.load()
71 except BaseException as exc:
72 warnings.warn(
73 f'While loading "{plugin_name}", an error occurred: {exc}\n'
74 f'For uninstallations, please use either "httpie plugins uninstall {plugin_name}" '
75 f'or "pip uninstall {plugin_name}" (depending on how you installed it in the first '
76 'place).'
77 )
78 continue
79 plugin.package_name = plugin_name
80 self.register(plugin)
81
82 # Auth
83 def get_auth_plugins(self) -> List[Type[AuthPlugin]]:

Callers 1

raw_mainFunction · 0.80

Calls 4

iter_entry_pointsMethod · 0.95
registerMethod · 0.95
get_dist_nameFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected