Unofficial utilities for nonebot2.
Project description
Nonutils
非官方的Nonebot2的便捷工具类模块
早期开发阶段,请勿实际使用!!!
尚无完整的说明文档。
功能简介
本模块的核心功能及为服务(Service)系统。
服务(Service) 是一套命令管理工具,功能方面类似于 Nonebot 中的 command_group,而在管理方面类似于 (sub)plugin
每一个 Service 都可以添加多个命令,在会话中通过以下方式激活:
<command_start><sv_name|sv_aliases> <cmd|aliases> <args>
如 /test_service test_cmd arg1 arg2,即可触发 test_service 的 test_cmd
其中 sv_name 与 cmd 都可设置相应的 aliases
可以通过 service.on_command 声明命令,用法同 nonebot.on_command
除基础的命令组的功能外,服务提供以下功能:
- 自动生成 服务帮助 & 命令帮助,可用
/help命令在会话中查询 - 提供基于
pydantic的配置持久化服务 - 格式化会话信息
- 完全可自定义的内部会话信息
- 自动化API管理
- 错误处理与追踪
- 权限与命令停用的动态化管理
- 数据库系统
本项目受 ATRI的Service系统 启发
早期开发阶段,请勿实际使用!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonutils-0.1a0.tar.gz.
File metadata
- Download URL: nonutils-0.1a0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d296e84836352631a299f4ef74dad555150fb5d858d601fbafc9ee198f2705e
|
|
| MD5 |
93f85b92d3eb1db2fd66d022a36b5ec0
|
|
| BLAKE2b-256 |
6eea056a09a9a6be39c0a3af4acc5952968f5bf096108701211093473b78936b
|
File details
Details for the file nonutils-0.1a0-py2.py3-none-any.whl.
File metadata
- Download URL: nonutils-0.1a0-py2.py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f108ee2ed484d18fbbf7e79f874c2b049a668f2a0d272793d12b677aa50fc9fa
|
|
| MD5 |
6c4e6a32ad5a96fb65886f3ab5bff03a
|
|
| BLAKE2b-256 |
9efcad58e78719ef869964b6049cc29ece7255972a3a516d8d75cde067489506
|