Skip to main content

An asynchronous python bot framework.

Reason this release was yanked:

critical bug in block

Project description

nonebot

NoneBot

✨ Python 异步机器人框架 ✨

license pypi python cqhttp
QQ Chat Telegram Chat QQ Release Telegram Release

文档 · 安装 · 开始使用

简介

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

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

目前 NoneBot2 在 FastAPI 的基础上封装了与 CQHTTP(OneBot) 协议插件的网络交互。

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

需要注意的是,NoneBot 仅支持 Python 3.7+ 及 CQHTTP(OneBot) 插件 v11+。

此外,NoneBot2 还有可配套使用的额外脚手架/框架:

文档

文档目前尚未完成,「API」部分由 sphinx 自动生成,你可以在 这里 查看。

贡献

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot2-2.0.0a5.tar.gz (41.2 kB view details)

Uploaded Source

Built Distribution

nonebot2-2.0.0a5-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

File details

Details for the file nonebot2-2.0.0a5.tar.gz.

File metadata

  • Download URL: nonebot2-2.0.0a5.tar.gz
  • Upload date:
  • Size: 41.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-53-generic

File hashes

Hashes for nonebot2-2.0.0a5.tar.gz
Algorithm Hash digest
SHA256 81af70f1b26a7cfe93e617154cffd905ed7eef428e6d69fd440daa853bbc8ed1
MD5 8509fb0c844b02dc886bec87766b3726
BLAKE2b-256 3822a7df5166553df3457902e0b9e23b0852012011b7c6ee97726a437d55a465

See more details on using hashes here.

File details

Details for the file nonebot2-2.0.0a5-py3-none-any.whl.

File metadata

  • Download URL: nonebot2-2.0.0a5-py3-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-53-generic

File hashes

Hashes for nonebot2-2.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 4cb8bbd4064ef7ee1947723695363cbd3c267885146257886a428d35cc4f1973
MD5 258a08273fbc213cbed6301a5829eb35
BLAKE2b-256 b8a1cffd51a74a2025c602cc03261301eed9ad3941ee8094e02e42f2c70368b9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page