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