import{_ as a,c as t,o as e,a4 as r}from"./chunks/framework.BZiUP1E-.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"dev/api/plugin/model.md","filePath":"zh/dev/api/plugin/model.md","lastUpdated":null}'),o={name:"dev/api/plugin/model.md"},s=r('
说明: Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
@Time : 2024/7/24 上午12:02 @Author : snowykami @Email : snowykami@outlook.com @File : model.py @Software: PyCharm
PluginType(Enum)
APPLICATION = 'application'
SERVICE = 'service'
MODULE = 'module'
UNCLASSIFIED = 'unclassified'
TEST = 'test'
PluginMetadata(BaseModel)
name: str = NO_DEFAULT
description: str = ''
usage: str = ''
type: PluginType = PluginType.UNCLASSIFIED
author: str = ''
homepage: str = ''
extra: dict[str, Any] = {}
Plugin(BaseModel)
__hash__(self)
def __hash__(self):\n return hash(self.module_name)
model_config = {'arbitrary_types_allowed': True}
name: str = NO_DEFAULT
module: ModuleType = NO_DEFAULT
module_name: str = NO_DEFAULT
metadata: Optional[PluginMetadata] = None