Skip to main content

Nonebot_plugin_templates

pypi python pypi
onebot github

最新版本号0.1.3

功能:提供一些jinja2 templates渲染,并提供构建所需参数的类

构建一个菜单的示例

from nonebot import require
require("nonebot_plugin_templates")
from nonebot_plugin_templates.template_types import *
from nonebot_plugin_templates.templates_render import menu_render, colorlist_render

menu = Menu("私有bot", des="使用和管理自己独有的bot的命令,私有bot只有主人可使用,其他人无法使用",
            funcs=Funcs(
                Func("/bot名称+询问的问题",
                     "与指定属于自己的bot对话\n(可使用'回复'某bot最后一个答案来连续和它对话)\n(可回复'清除历史','刷新对话'来清除bot的对话记忆)") +
                Func("/所有bot",
                     "查询所有的可用的私有的bot,以获取bot名称和相关信息") +
                Func("/创建bot", "创建新的私有的bot") +
                Func("/改名bot", "更改自己的bot的名称") +
                Func("/删除bot", "删除指定自己的bot")))
menu += Menu("公有bot", des="使用和管理公有的bot的命令",
             funcs=Funcs(
                 Func("bot名称+询问的问题",
                      "与指定属于公共的bot对话\n(可使用'回复'某bot最后一个答案来连续和它对话)\n(可回复'清除历史','刷新对话'来清除bot的对话记忆)") +
                 Func("所有bot", "查询所有的可用的公共的bot,以获取bot名称和相关信息") +
                 Func("创建bot", "创建新的公用的bot") +
                 Func("改名bot", "更改公用的bot的名称") +
                 Func("删除bot", "删除指定公用的bot")))
pic_bytes = await menu_render(menu, 800)

menu.png

构建一个卡片列表的示例

Metadata

Release files for nonebot-plugin-templates 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-templates 0.1.6
File Size Uploaded Provenance Actions
nonebot_plugin_templates-0.1.6.tar.gz 7.1 MB Without provenance Details for nonebot_plugin_templates-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-templates 0.1.6
File Interpreter ABI Platform Actions
nonebot_plugin_templates-0.1.6-py3-none-any.whl Python 3 none any Details for nonebot_plugin_templates-0.1.6-py3-none-any.whl

Total release size: 14.2 MB

Release files / nonebot_plugin_templates-0.1.6.tar.gz

Download URL nonebot_plugin_templates-0.1.6.tar.gz
Size 7.1 MB
Tags Source
SHA-256 checksum
How to use checksums
c6b5cd516fddb821e741c1a2c69475c5abc54791106518b606522659f9aeb6f5
BLAKE2b-256 checksum
How to use checksums
92caa9c93ba96f4af49cbb03b883d54274a0909d7edc302898c0c13f1cb9b82a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / nonebot_plugin_templates-0.1.6-py3-none-any.whl

Download URL nonebot_plugin_templates-0.1.6-py3-none-any.whl
Size 7.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f0f483afc71d62403df94a7b22861946902e706ef116d28ba62e92c61b512d0c
BLAKE2b-256 checksum
How to use checksums
41bf4f52e51e42ae04680f6aeecb755cd0b0c9bd470779a4eb500666ffaf18cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for nonebot-plugin-templates 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page