Pre-release
This release is a pre-release and may not be stable for production use.
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系统 启发
早期开发阶段,请勿实际使用!
Metadata
Release files for nonutils 0.1a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonutils-0.1a0.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonutils-0.1a0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 18.5 kB
Release files / nonutils-0.1a0.tar.gz
| Download URL | nonutils-0.1a0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d296e84836352631a299f4ef74dad555150fb5d858d601fbafc9ee198f2705e
|
|
BLAKE2b-256 checksum How to use checksums |
6eea056a09a9a6be39c0a3af4acc5952968f5bf096108701211093473b78936b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / nonutils-0.1a0-py2.py3-none-any.whl
| Download URL | nonutils-0.1a0-py2.py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f108ee2ed484d18fbbf7e79f874c2b049a668f2a0d272793d12b677aa50fc9fa
|
|
BLAKE2b-256 checksum How to use checksums |
9efcad58e78719ef869964b6049cc29ece7255972a3a516d8d75cde067489506
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|