nonebot


Namenonebot JSON
Version 1.9.1 PyPI version JSON
download
home_pagehttps://github.com/nonebot/nonebot
SummaryAn asynchronous QQ bot framework based on CoolQ.
upload_time2021-09-28 03:29:38
maintainer
docs_urlNone
authorNoneBot Team
requires_python>=3.7
licenseMIT License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # NoneBot

[![License](https://img.shields.io/github/license/nonebot/nonebot.svg)](LICENSE)
[![PyPI](https://img.shields.io/pypi/v/nonebot.svg)](https://pypi.python.org/pypi/nonebot)
![Python Version](https://img.shields.io/badge/python-3.7+-blue.svg)
![OneBot Version](https://img.shields.io/badge/OneBot-v10,v11-black.svg)
[![QQ 群](https://img.shields.io/badge/qq%E7%BE%A4-768887710-orange.svg)](https://jq.qq.com/?_wv=1027&k=5OFifDh)
[![Telegram 频道](https://img.shields.io/badge/telegram-botuniverse-blue.svg)](https://t.me/botuniverse)
[![Discord Server](https://discordapp.com/api/guilds/847819937858584596/widget.png?style=shield)](https://discord.gg/VKtE6Gdc4h)

## 简介

NoneBot 是一个基于 [OneBot 标准](https://github.com/howmanybots/onebot)(原 CQHTTP) 的 Python 异步 QQ 机器人框架,它会对 QQ 机器人收到的消息进行解析和处理,并以插件化的形式,分发给消息所对应的命令处理器和自然语言处理器,来完成具体的功能。

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

NoneBot 在其底层与 OneBot 实现交互的部分使用 [aiocqhttp](https://github.com/nonebot/aiocqhttp) 库,后者在 [Quart](https://pgjones.gitlab.io/quart/) 的基础上封装了与 OneBot 实现的网络交互。

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

需要注意的是,NoneBot 仅支持 Python 3.7+。

## 文档

文档目前「指南」和「API」部分已经完成,「进阶」部分尚未完成,你可以在 [这里](https://docs.nonebot.dev/) 查看。

## 贡献

如果你在使用过程中发现任何问题,可以 [提交 issue](https://github.com/nonebot/nonebot/issues/new) 或自行 fork 修改后提交 pull request。

如果你要提交 pull request,请确保你的代码风格和项目已有的代码保持一致,遵循 [PEP 8](https://www.python.org/dev/peps/pep-0008/),变量命名清晰,有适当的注释。

# NoneBot

## Description

NoneBot is an asynchronous and [OneBot]((https://github.com/howmanybots/onebot))-compliant QQ robot framework written in Python. When NoneBot receives new messages, it parses the messages then pass them to user-defined command handlers or natural language processors accordingly using a plugin system to accomplish various tasks.

Beside message processing, NoneBot presents an amount of useful built-in actions and permission handling features. The command processors provide simple but comprehensive session-ing and calling mechanisms to handle continuous interactions and the reusing of functionalities inside plugins, respectively.

NoneBot communicates with OneBot implementations using [aiocqhttp](https://github.com/nonebot/aiocqhttp), a wrapper based on [Quart](https://pgjones.gitlab.io/quart/) for lower-level protocol work.

Thanks to [asyncio](https://docs.python.org/3/library/asyncio.html) and WebSocket messaging method (which is recommended), NoneBot ensures maximum possible message throughput to be twice as fast as HTTP messaging, and have great performance leap compared to traditional synchronous IO.

NoneBot only supports Python 3.7+.

## Documentation

For Guide and API manuals, check out [this page](https://docs.nonebot.dev/).

## Contributing

If you encounter any problems in using the project, you can [submit an issue](https://github.com/nonebot/nonebot/issues/new) or fork this project to submit an pull request.

For pull requests, please be sure to have consistent style to existing modules, follow [PEP 8](https://www.python.org/dev/peps/pep-0008/), have clear identifier naming, and have proper comments.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nonebot/nonebot",
    "name": "nonebot",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "NoneBot Team",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/b1/05/50c68ca896d36399b575a338595982f7d961e1ab9d7b1ace21117733c29f/nonebot-1.9.1.tar.gz",
    "platform": "any",
    "description": "# NoneBot\n\n[![License](https://img.shields.io/github/license/nonebot/nonebot.svg)](LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/nonebot.svg)](https://pypi.python.org/pypi/nonebot)\n![Python Version](https://img.shields.io/badge/python-3.7+-blue.svg)\n![OneBot Version](https://img.shields.io/badge/OneBot-v10,v11-black.svg)\n[![QQ \u7fa4](https://img.shields.io/badge/qq%E7%BE%A4-768887710-orange.svg)](https://jq.qq.com/?_wv=1027&k=5OFifDh)\n[![Telegram \u9891\u9053](https://img.shields.io/badge/telegram-botuniverse-blue.svg)](https://t.me/botuniverse)\n[![Discord Server](https://discordapp.com/api/guilds/847819937858584596/widget.png?style=shield)](https://discord.gg/VKtE6Gdc4h)\n\n## \u7b80\u4ecb\n\nNoneBot \u662f\u4e00\u4e2a\u57fa\u4e8e [OneBot \u6807\u51c6](https://github.com/howmanybots/onebot)\uff08\u539f CQHTTP\uff09 \u7684 Python \u5f02\u6b65 QQ \u673a\u5668\u4eba\u6846\u67b6\uff0c\u5b83\u4f1a\u5bf9 QQ \u673a\u5668\u4eba\u6536\u5230\u7684\u6d88\u606f\u8fdb\u884c\u89e3\u6790\u548c\u5904\u7406\uff0c\u5e76\u4ee5\u63d2\u4ef6\u5316\u7684\u5f62\u5f0f\uff0c\u5206\u53d1\u7ed9\u6d88\u606f\u6240\u5bf9\u5e94\u7684\u547d\u4ee4\u5904\u7406\u5668\u548c\u81ea\u7136\u8bed\u8a00\u5904\u7406\u5668\uff0c\u6765\u5b8c\u6210\u5177\u4f53\u7684\u529f\u80fd\u3002\n\n\u9664\u4e86\u8d77\u5230\u89e3\u6790\u6d88\u606f\u7684\u4f5c\u7528\uff0cNoneBot \u8fd8\u4e3a\u63d2\u4ef6\u63d0\u4f9b\u4e86\u5927\u91cf\u5b9e\u7528\u7684\u9884\u8bbe\u64cd\u4f5c\u548c\u6743\u9650\u63a7\u5236\u673a\u5236\uff0c\u5c24\u5176\u5bf9\u4e8e\u547d\u4ee4\u5904\u7406\u5668\uff0c\u5b83\u66f4\u662f\u63d0\u4f9b\u4e86\u5b8c\u5584\u4e14\u6613\u7528\u7684\u4f1a\u8bdd\u673a\u5236\u548c\u5185\u90e8\u8c03\u7528\u673a\u5236\uff0c\u4ee5\u5206\u522b\u9002\u5e94\u547d\u4ee4\u7684\u8fde\u7eed\u4ea4\u4e92\u548c\u63d2\u4ef6\u5185\u90e8\u529f\u80fd\u590d\u7528\u7b49\u9700\u6c42\u3002\n\nNoneBot \u5728\u5176\u5e95\u5c42\u4e0e OneBot \u5b9e\u73b0\u4ea4\u4e92\u7684\u90e8\u5206\u4f7f\u7528 [aiocqhttp](https://github.com/nonebot/aiocqhttp) \u5e93\uff0c\u540e\u8005\u5728 [Quart](https://pgjones.gitlab.io/quart/) \u7684\u57fa\u7840\u4e0a\u5c01\u88c5\u4e86\u4e0e OneBot \u5b9e\u73b0\u7684\u7f51\u7edc\u4ea4\u4e92\u3002\n\n\u5f97\u76ca\u4e8e Python \u7684 [asyncio](https://docs.python.org/3/library/asyncio.html) \u673a\u5236\uff0cNoneBot \u5904\u7406\u6d88\u606f\u7684\u541e\u5410\u91cf\u6709\u4e86\u5f88\u5927\u7684\u4fdd\u969c\uff0c\u518d\u914d\u5408 OneBot \u6807\u51c6\u7684 WebSocket \u901a\u4fe1\u65b9\u5f0f\uff08\u4e5f\u662f\u6700\u5efa\u8bae\u7684\u901a\u4fe1\u65b9\u5f0f\uff09\uff0cNoneBot \u7684\u6027\u80fd\u53ef\u4ee5\u8fbe\u5230 HTTP \u901a\u4fe1\u65b9\u5f0f\u7684\u4e24\u500d\u4ee5\u4e0a\uff0c\u76f8\u8f83\u4e8e\u4f20\u7edf\u540c\u6b65 I/O \u7684 HTTP \u901a\u4fe1\uff0c\u66f4\u662f\u6709\u8d28\u7684\u98de\u8dc3\u3002\n\n\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cNoneBot \u4ec5\u652f\u6301 Python 3.7+\u3002\n\n## \u6587\u6863\n\n\u6587\u6863\u76ee\u524d\u300c\u6307\u5357\u300d\u548c\u300cAPI\u300d\u90e8\u5206\u5df2\u7ecf\u5b8c\u6210\uff0c\u300c\u8fdb\u9636\u300d\u90e8\u5206\u5c1a\u672a\u5b8c\u6210\uff0c\u4f60\u53ef\u4ee5\u5728 [\u8fd9\u91cc](https://docs.nonebot.dev/) \u67e5\u770b\u3002\n\n## \u8d21\u732e\n\n\u5982\u679c\u4f60\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u4efb\u4f55\u95ee\u9898\uff0c\u53ef\u4ee5 [\u63d0\u4ea4 issue](https://github.com/nonebot/nonebot/issues/new) \u6216\u81ea\u884c fork \u4fee\u6539\u540e\u63d0\u4ea4 pull request\u3002\n\n\u5982\u679c\u4f60\u8981\u63d0\u4ea4 pull request\uff0c\u8bf7\u786e\u4fdd\u4f60\u7684\u4ee3\u7801\u98ce\u683c\u548c\u9879\u76ee\u5df2\u6709\u7684\u4ee3\u7801\u4fdd\u6301\u4e00\u81f4\uff0c\u9075\u5faa [PEP 8](https://www.python.org/dev/peps/pep-0008/)\uff0c\u53d8\u91cf\u547d\u540d\u6e05\u6670\uff0c\u6709\u9002\u5f53\u7684\u6ce8\u91ca\u3002\n\n# NoneBot\n\n## Description\n\nNoneBot is an asynchronous and [OneBot]((https://github.com/howmanybots/onebot))-compliant QQ robot framework written in Python. When NoneBot receives new messages, it parses the messages then pass them to user-defined command handlers or natural language processors accordingly using a plugin system to accomplish various tasks.\n\nBeside message processing, NoneBot presents an amount of useful built-in actions and permission handling features. The command processors provide simple but comprehensive session-ing and calling mechanisms to handle continuous interactions and the reusing of functionalities inside plugins, respectively.\n\nNoneBot communicates with OneBot implementations using [aiocqhttp](https://github.com/nonebot/aiocqhttp), a wrapper based on [Quart](https://pgjones.gitlab.io/quart/) for lower-level protocol work.\n\nThanks to [asyncio](https://docs.python.org/3/library/asyncio.html) and WebSocket messaging method (which is recommended), NoneBot ensures maximum possible message throughput to be twice as fast as HTTP messaging, and have great performance leap compared to traditional synchronous IO.\n\nNoneBot only supports Python 3.7+.\n\n## Documentation\n\nFor Guide and API manuals, check out [this page](https://docs.nonebot.dev/).\n\n## Contributing\n\nIf you encounter any problems in using the project, you can [submit an issue](https://github.com/nonebot/nonebot/issues/new) or fork this project to submit an pull request.\n\nFor pull requests, please be sure to have consistent style to existing modules, follow [PEP 8](https://www.python.org/dev/peps/pep-0008/), have clear identifier naming, and have proper comments.",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "An asynchronous QQ bot framework based on CoolQ.",
    "version": "1.9.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b10550c68ca896d36399b575a338595982f7d961e1ab9d7b1ace21117733c29f",
                "md5": "db035c8485a82150882d6c095afb3552",
                "sha256": "f66449578a20b0c92b61c7291d4ba3d937e54bb6b93b76f1331a4aa9191009d2"
            },
            "downloads": -1,
            "filename": "nonebot-1.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "db035c8485a82150882d6c095afb3552",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 34476,
            "upload_time": "2021-09-28T03:29:38",
            "upload_time_iso_8601": "2021-09-28T03:29:38.131198Z",
            "url": "https://files.pythonhosted.org/packages/b1/05/50c68ca896d36399b575a338595982f7d961e1ab9d7b1ace21117733c29f/nonebot-1.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-09-28 03:29:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "nonebot",
    "github_project": "nonebot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot"
}
        
Elapsed time: 0.12745s