import{_ as t,c as e,a7 as r,o}from"./chunks/framework.Z6UMW4JZ.js";const m=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}'),s={name:"dev/api/plugin/model.md"};function i(l,a,n,d,h,u){return o(),e("div",null,a[0]||(a[0]=[r('
liteyuki.plugin.model
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