2024-08-18 08:06:06 +08:00
|
|
|
from liteyuki.plugin.model import Plugin, PluginMetadata, PluginType
|
2024-07-26 14:35:47 +08:00
|
|
|
from liteyuki.plugin.load import load_plugin, load_plugins, _plugins
|
2024-07-24 02:36:46 +08:00
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
"PluginMetadata",
|
|
|
|
"Plugin",
|
2024-08-18 08:06:06 +08:00
|
|
|
"PluginType",
|
2024-07-24 02:36:46 +08:00
|
|
|
"load_plugin",
|
2024-07-26 14:35:47 +08:00
|
|
|
"load_plugins",
|
2024-07-24 02:36:46 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
def get_loaded_plugins() -> dict[str, Plugin]:
|
|
|
|
"""
|
|
|
|
获取已加载的插件
|
|
|
|
Returns:
|
|
|
|
dict[str, Plugin]: 插件字典
|
|
|
|
"""
|
|
|
|
return _plugins
|