import{_ as a,c as t,o as e,a6 as r}from"./chunks/framework.BcfwU5BI.js";const g=JSON.parse('{"title":"liteyuki.plugin.model","description":"","frontmatter":{"title":"liteyuki.plugin.model"},"headers":[],"relativePath":"en/dev/api/plugin/model.md","filePath":"en/dev/api/plugin/model.md","lastUpdated":1725101868000}'),o={name:"en/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