Get a plugin by plugin_id. :param bundle_id: the bundle id. :param plugin_id: the plugin id. :return: the plugin or None if not found.
(bundle_id, plugin_id: str)
| 95 | |
| 96 | |
| 97 | def get_plugin(bundle_id, plugin_id: str) -> Optional[Plugin]: |
| 98 | """ |
| 99 | Get a plugin by plugin_id. |
| 100 | |
| 101 | :param bundle_id: the bundle id. |
| 102 | :param plugin_id: the plugin id. |
| 103 | :return: the plugin or None if not found. |
| 104 | """ |
| 105 | |
| 106 | return __bundle_plugin_dict.get(bundle_id, {}).get(plugin_id, None) |
| 107 | |
| 108 | |
| 109 | def get_plugin_cache() -> List[Dict]: |