remove default fastapi installation (#1557)

This commit is contained in:
Ju4tCode
2023-01-06 20:07:28 +08:00
committed by GitHub
parent c38437a22f
commit 87e767fa25
9 changed files with 270 additions and 256 deletions

View File

@ -24,7 +24,7 @@ nb adapter list
或者自行输入命令安装:
```bash
nb adapter install <adapter-name>
nb adapter install <adapter-package>
```
或者使用交互模式安装:
@ -36,7 +36,7 @@ nb adapter install
也可以使用 pip 安装
```bash
pip install <adapter-name>
pip install <adapter-package>
```
<Asciinema

View File

@ -7,7 +7,7 @@ import Asciinema from "@site/src/components/Asciinema";
# 安装驱动器
NoneBot 在默认安装情况下内置了 `fastapi` 服务端驱动器,其他驱动器如 `httpx`、`aiohttp` 则需要额外安装。
NoneBot 在默认安装情况下内置了 `none` 驱动器,其他驱动器如 `fastapi`、`httpx`、`aiohttp` 则需要额外安装。
## 查看
@ -38,7 +38,7 @@ nb driver install
也可以使用 pip 安装
```bash
pip install <driver-name>
pip install <driver-package>
```
<Asciinema

View File

@ -24,7 +24,7 @@ nb plugin list
或者自行输入命令安装:
```bash
nb plugin install <plugin-name>
nb plugin install <plugin-package>
```
或者使用交互模式安装:
@ -36,7 +36,7 @@ nb plugin install
也可以使用 pip 安装
```bash
pip install <plugin-name>
pip install <plugin-package>
```
<Asciinema

View File

@ -48,9 +48,9 @@ nb-cli 的使用方法详见[使用脚手架](./nb-cli.md)
如果你不想使用脚手架,可以直接安装 NoneBot2并自行完成开发配置。
```bash
pip install nonebot2
pip install nonebot2[fastapi]
# 也可以通过 Poetry 安装
poetry add nonebot2
poetry add nonebot2[fastapi]
```
## 从 GitHub 安装

View File

@ -1,7 +1,17 @@
[
{
"module_name": "nonebot.drivers.fastapi",
"module_name": "~none",
"project_link": "",
"name": "None",
"desc": "None 驱动器",
"author": "yanyongyu",
"homepage": "/docs/tutorial/choose-driver",
"tags": [],
"is_official": true
},
{
"module_name": "~fastapi",
"project_link": "nonebot2[fastapi]",
"name": "FastAPI",
"desc": "FastAPI 驱动器",
"author": "yanyongyu",
@ -10,8 +20,8 @@
"is_official": true
},
{
"module_name": "nonebot.drivers.quart",
"project_link": "quart",
"module_name": "~quart",
"project_link": "nonebot2[quart]",
"name": "Quart",
"desc": "Quart 驱动器",
"author": "yanyongyu",
@ -20,8 +30,8 @@
"is_official": true
},
{
"module_name": "nonebot.drivers.httpx",
"project_link": "httpx",
"module_name": "~httpx",
"project_link": "nonebot2[httpx]",
"name": "HTTPX",
"desc": "HTTPX 驱动器",
"author": "yanyongyu",
@ -30,8 +40,8 @@
"is_official": true
},
{
"module_name": "nonebot.drivers.websockets",
"project_link": "websockets",
"module_name": "~websockets",
"project_link": "nonebot2[websockets]",
"name": "websockets",
"desc": "websockets 驱动器",
"author": "yanyongyu",
@ -40,23 +50,13 @@
"is_official": true
},
{
"module_name": "nonebot.drivers.aiohttp",
"project_link": "aiohttp",
"module_name": "~aiohttp",
"project_link": "nonebot2[aiohttp]",
"name": "AIOHTTP",
"desc": "AIOHTTP 驱动器",
"author": "yanyongyu",
"homepage": "/docs/tutorial/choose-driver",
"tags": [],
"is_official": true
},
{
"module_name": "nonebot.drivers.none",
"project_link": "",
"name": "None",
"desc": "None 驱动器",
"author": "yanyongyu",
"homepage": "/docs/tutorial/choose-driver",
"tags": [],
"is_official": true
}
]