(self, directory: Optional[Path] = None)
| 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]]: |
no test coverage detected