Skip to main content

NoneBot

License PyPI Python Version CQHTTP Version QQ 群 Telegram QQ 版本发布群 Telegram 版本发布频道

简介

NoneBot 是一个基于 酷Q 的 Python 异步 QQ 机器人框架,它会对 QQ 机器人收到的消息进行解析和处理,并以插件化的形式,分发给消息所对应的命令处理器和自然语言处理器,来完成具体的功能。

除了起到解析消息的作用,NoneBot 还为插件提供了大量实用的预设操作和权限控制机制,尤其对于命令处理器,它更是提供了完善且易用的会话机制和内部调用机制,以分别适应命令的连续交互和插件内部功能复用等需求。

NoneBot 在其底层与 酷Q 交互的部分使用 python-aiocqhttp 库,后者是 CoolQ HTTP API 插件 的一个 Python 异步 SDK,在 Quart 的基础上封装了与 CoolQ HTTP API 插件的网络交互。

得益于 Python 的 asyncio 机制,NoneBot 处理消息的吞吐量有了很大的保障,再配合 CoolQ HTTP API 插件可选的 WebSocket 通信方式(也是最建议的通信方式),NoneBot 的性能可以达到 HTTP 通信方式的两倍以上,相较于传统同步 I/O 的 HTTP 通信,更是有质的飞跃。

需要注意的是,NoneBot 仅支持 Python 3.7+ 及 CoolQ HTTP API 插件 v4.8+。

示意图

文档

文档目前「指南」和「API」部分已经完成,「进阶」部分尚未完成,你可以在 这里 查看。

贡献

如果你在使用过程中发现任何问题,可以 提交 issue 或自行 fork 修改后提交 pull request。

如果你要提交 pull request,请确保你的代码风格和项目已有的代码保持一致,遵循 PEP 8,变量命名清晰,有适当的注释。

Metadata

Release files for nonebot-sanic 1.4.2

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-sanic 1.4.2
File Size Uploaded Provenance Actions
nonebot-sanic-1.4.2.tar.gz 21.8 kB Without provenance Details for nonebot-sanic-1.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-sanic 1.4.2
File Interpreter ABI Platform Actions
nonebot_sanic-1.4.2-py3-none-any.whl Python 3 none any Details for nonebot_sanic-1.4.2-py3-none-any.whl

Total release size: 49.5 kB

Release files / nonebot-sanic-1.4.2.tar.gz

Download URL nonebot-sanic-1.4.2.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6d3c8d75b762a35432ee2b6c48614d8f0dadd963c739c4a3f26cbc8c770de40c
BLAKE2b-256 checksum
How to use checksums
7aa1859be2400d498fb1aa84f10b8975a2d44e9b77ee0d2b295ea1a06a17f361
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

Release files / nonebot_sanic-1.4.2-py3-none-any.whl

Download URL nonebot_sanic-1.4.2-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e779731b812b67b4d592e978caea2adf84dfc24b1a1ee8c8710049ee27c52ad
BLAKE2b-256 checksum
How to use checksums
a83eff8ce406be654922a49ac27a63ebeb356aa0fb55ffeb0e47f657e777a31e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3

Security for nonebot-sanic 1.4.2

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