import{_ as e,o as a,c as t,e as s}from"./app-BvUYPzLF.js";const n={},o=s(`

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

class PluginType(Enum)

attr APPLICATION = 'application'

attr SERVICE = 'service'

attr MODULE = 'module'

attr UNCLASSIFIED = 'unclassified'

attr TEST = 'test'

class PluginMetadata(BaseModel)

attr name: str = NO_DEFAULT

attr description: str = ''

attr usage: str = ''

attr type: PluginType = PluginType.UNCLASSIFIED

attr author: str = ''

attr homepage: str = ''

attr extra: dict[str, Any] = {}

class Plugin(BaseModel)

def __hash__(self)

源代码在GitHub上查看
def __hash__(self):
    return hash(self.module_name)

attr model_config = {'arbitrary_types_allowed': True}

attr name: str = NO_DEFAULT

attr module: ModuleType = NO_DEFAULT

attr module_name: str = NO_DEFAULT

attr metadata: Optional[PluginMetadata] = None

`,25),r=[o];function i(l,d){return a(),t("div",null,r)}const c=e(n,[["render",i],["__file","model.html.vue"]]),m=JSON.parse('{"path":"/dev/api/plugin/model.html","title":"liteyuki.plugin.model","lang":"zh-CN","frontmatter":{"title":"liteyuki.plugin.model","lastUpdated":false,"description":"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....","head":[["link",{"rel":"alternate","hreflang":"en-us","href":"https://vuepress-theme-hope-docs-demo.netlify.app/en/dev/api/plugin/model.html"}],["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/dev/api/plugin/model.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot 轻雪机器人"}],["meta",{"property":"og:title","content":"liteyuki.plugin.model"}],["meta",{"property":"og:description","content":"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...."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["meta",{"property":"og:updated_time","content":"2024-08-29T06:19:39.000Z"}],["meta",{"property":"article:modified_time","content":"2024-08-29T06:19:39.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"liteyuki.plugin.model\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-08-29T06:19:39.000Z\\",\\"author\\":[]}"]]},"headers":[{"level":3,"title":"class PluginType(Enum)","slug":"class-plugintype-enum","link":"#class-plugintype-enum","children":[]},{"level":3,"title":"class PluginMetadata(BaseModel)","slug":"class-pluginmetadata-basemodel","link":"#class-pluginmetadata-basemodel","children":[]},{"level":3,"title":"class Plugin(BaseModel)","slug":"class-plugin-basemodel","link":"#class-plugin-basemodel","children":[]}],"git":{"createdTime":1724031826000,"updatedTime":1724912379000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":5}]},"readingTime":{"minutes":0.44,"words":132},"filePathRelative":"dev/api/plugin/model.md","localizedDate":"2024年8月19日","autoDesc":true}');export{c as comp,m as data};