List plugins. :param bundle_id: the bundle id to filter by. :return: a list of plugins.
(bundle_id: Optional[str])
| 79 | |
| 80 | |
| 81 | def list_plugins(bundle_id: Optional[str]) -> List[Plugin]: |
| 82 | """ |
| 83 | List plugins. |
| 84 | |
| 85 | :param bundle_id: the bundle id to filter by. |
| 86 | :return: a list of plugins. |
| 87 | """ |
| 88 | |
| 89 | # Filter by bundle_id and type |
| 90 | if bundle_id: |
| 91 | filtered_schemas = [schema for schema in __bundle_plugin_list.get(bundle_id, [])] |
| 92 | return filtered_schemas |
| 93 | |
| 94 | return __plugins |
| 95 | |
| 96 | |
| 97 | def get_plugin(bundle_id, plugin_id: str) -> Optional[Plugin]: |