mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-10-07 03:07:07 +00:00
Compare commits
43 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
622e8e8af3 | ||
|
2bbb83d3f2 | ||
|
54756134d4 | ||
|
932b212e04 | ||
|
3b40e5b20c | ||
|
f594db207d | ||
|
70e23427e8 | ||
|
c1a303fd3d | ||
|
a62b9a5e1a | ||
|
36eece311a | ||
|
29ea5f5787 | ||
|
c00e3aacfc | ||
|
cf9f78528c | ||
|
68d4795de6 | ||
|
e689d7f7d2 | ||
|
a607f868c2 | ||
|
84ac1c4bad | ||
|
e11ff528e2 | ||
|
047f4d1878 | ||
|
0294c33baf | ||
|
11a8b6e40b | ||
|
cade86b62a | ||
|
df836ec1c6 | ||
|
12cc00a3d3 | ||
|
24aa81f0be | ||
|
339706a3a6 | ||
|
b43c9adb7a | ||
|
c2783039d4 | ||
|
c4706e4123 | ||
|
8a997540b3 | ||
|
045022b22a | ||
|
723fa4b3d8 | ||
|
41b59cff06 | ||
|
bed1b46527 | ||
|
ad695ca6e8 | ||
|
33e997708c | ||
|
56b6ee1d38 | ||
|
27b2cf52a5 | ||
|
b532130f6e | ||
|
d16b8594ad | ||
|
ad8442c6de | ||
|
4edf7e2c2c | ||
|
ea49318809 |
@@ -7,7 +7,7 @@ ci:
|
|||||||
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
|
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.4.2
|
rev: v0.4.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args: [--fix, --exit-non-zero-on-fix]
|
args: [--fix, --exit-non-zero-on-fix]
|
||||||
|
@@ -123,6 +123,7 @@ NoneBot2 是一个现代、跨平台、可扩展的 Python 聊天机器人框架
|
|||||||
| Discord([仓库](https://github.com/nonebot/adapter-discord),[协议](https://discord.com/developers/docs/intro)) | ✅ | Discord Bot 协议 |
|
| Discord([仓库](https://github.com/nonebot/adapter-discord),[协议](https://discord.com/developers/docs/intro)) | ✅ | Discord Bot 协议 |
|
||||||
| DoDo([仓库](https://github.com/nonebot/adapter-dodo),[协议](https://open.imdodo.com/)) | ✅ | DoDo Bot 协议 |
|
| DoDo([仓库](https://github.com/nonebot/adapter-dodo),[协议](https://open.imdodo.com/)) | ✅ | DoDo Bot 协议 |
|
||||||
| Kritor([仓库](https://github.com/nonebot/adapter-kritor),[协议](https://github.com/KarinJS/kritor)) | ✅ | Kritor (OnebotX) 协议,QQ 机器人接口标准 |
|
| Kritor([仓库](https://github.com/nonebot/adapter-kritor),[协议](https://github.com/KarinJS/kritor)) | ✅ | Kritor (OnebotX) 协议,QQ 机器人接口标准 |
|
||||||
|
| Mirai([仓库](https://github.com/nonebot/adapter-mirai),[协议](https://docs.mirai.mamoe.net/mirai-api-http/)) | ✅ | QQ 协议 |
|
||||||
| 钉钉([仓库](https://github.com/nonebot/adapter-ding),[协议](https://open.dingtalk.com/document/)) | 🤗 | 寻找 Maintainer(暂不可用) |
|
| 钉钉([仓库](https://github.com/nonebot/adapter-ding),[协议](https://open.dingtalk.com/document/)) | 🤗 | 寻找 Maintainer(暂不可用) |
|
||||||
| 开黑啦([仓库](https://github.com/Tian-que/nonebot-adapter-kaiheila),[协议](https://developer.kookapp.cn/)) | ↗️ | 由社区贡献 |
|
| 开黑啦([仓库](https://github.com/Tian-que/nonebot-adapter-kaiheila),[协议](https://developer.kookapp.cn/)) | ↗️ | 由社区贡献 |
|
||||||
| Mirai([仓库](https://github.com/ieew/nonebot_adapter_mirai2),[协议](https://docs.mirai.mamoe.net/mirai-api-http/)) | ↗️ | QQ 协议,由社区贡献 |
|
| Mirai([仓库](https://github.com/ieew/nonebot_adapter_mirai2),[协议](https://docs.mirai.mamoe.net/mirai-api-http/)) | ↗️ | QQ 协议,由社区贡献 |
|
||||||
@@ -132,6 +133,7 @@ NoneBot2 是一个现代、跨平台、可扩展的 Python 聊天机器人框架
|
|||||||
| Walle-Q([仓库](https://github.com/onebot-walle/nonebot_adapter_walleq)) | ↗️ | QQ 协议,由社区贡献 |
|
| Walle-Q([仓库](https://github.com/onebot-walle/nonebot_adapter_walleq)) | ↗️ | QQ 协议,由社区贡献 |
|
||||||
| Villa([仓库](https://github.com/CMHopeSunshine/nonebot-adapter-villa)) | ❌ | 米游社大别野 Bot 协议,官方已下线 |
|
| Villa([仓库](https://github.com/CMHopeSunshine/nonebot-adapter-villa)) | ❌ | 米游社大别野 Bot 协议,官方已下线 |
|
||||||
| Rocket.Chat([仓库](https://github.com/IUnlimit/nonebot-adapter-rocketchat),[协议](https://developer.rocket.chat/)) | ↗️ | Rocket.Chat Bot 协议,由社区贡献 |
|
| Rocket.Chat([仓库](https://github.com/IUnlimit/nonebot-adapter-rocketchat),[协议](https://developer.rocket.chat/)) | ↗️ | Rocket.Chat Bot 协议,由社区贡献 |
|
||||||
|
| Tailchat([仓库](https://github.com/eya46/nonebot-adapter-tailchat),[协议](https://tailchat.msgbyte.com/)) | ↗️ | Tailchat 开放平台 Bot 协议,由社区贡献 |
|
||||||
|
|
||||||
- 坚实后盾:支持多种 web 框架,可自定义替换、组合
|
- 坚实后盾:支持多种 web 框架,可自定义替换、组合
|
||||||
|
|
||||||
|
@@ -59,6 +59,16 @@
|
|||||||
"tags": [],
|
"tags": [],
|
||||||
"is_official": false
|
"is_official": false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot.adapters.mirai",
|
||||||
|
"project_link": "nonebot-adapter-mirai",
|
||||||
|
"name": "Mirai",
|
||||||
|
"desc": "mirai-api-http v2 协议适配",
|
||||||
|
"author": "RF-Tar-Railt",
|
||||||
|
"homepage": "https://github.com/nonebot/adapter-mirai",
|
||||||
|
"tags": [],
|
||||||
|
"is_official": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"module_name": "nonebot.adapters.mirai2",
|
"module_name": "nonebot.adapters.mirai2",
|
||||||
"project_link": "nonebot_adapter_mirai2",
|
"project_link": "nonebot_adapter_mirai2",
|
||||||
@@ -238,5 +248,15 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"is_official": true
|
"is_official": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_adapter_tailchat",
|
||||||
|
"project_link": "nonebot-adapter-tailchat",
|
||||||
|
"name": "Tailchat",
|
||||||
|
"desc": "Tailchat 适配器",
|
||||||
|
"author": "eya46",
|
||||||
|
"homepage": "https://github.com/eya46/nonebot-adapter-tailchat",
|
||||||
|
"tags": [],
|
||||||
|
"is_official": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@@ -866,13 +866,6 @@
|
|||||||
"tags": [],
|
"tags": [],
|
||||||
"is_official": false
|
"is_official": false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"module_name": "nonebot_plugin_covid",
|
|
||||||
"project_link": "nonebot-plugin-covid",
|
|
||||||
"author": "nicklly",
|
|
||||||
"tags": [],
|
|
||||||
"is_official": false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"module_name": "nonebot_plugin_yulu",
|
"module_name": "nonebot_plugin_yulu",
|
||||||
"project_link": "nonebot-plugin-yulu",
|
"project_link": "nonebot-plugin-yulu",
|
||||||
@@ -2543,13 +2536,6 @@
|
|||||||
"tags": [],
|
"tags": [],
|
||||||
"is_official": false
|
"is_official": false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"module_name": "nonebot_plugin_molar_mass",
|
|
||||||
"project_link": "nonebot-plugin-molar-mass",
|
|
||||||
"author": "kifuan",
|
|
||||||
"tags": [],
|
|
||||||
"is_official": false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"module_name": "nonebot_plugin_report_manager",
|
"module_name": "nonebot_plugin_report_manager",
|
||||||
"project_link": "nonebot-plugin-report-manager",
|
"project_link": "nonebot-plugin-report-manager",
|
||||||
@@ -5903,5 +5889,176 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"is_official": false
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_anime_downloader",
|
||||||
|
"project_link": "nonebot-plugin-anime-downloader",
|
||||||
|
"author": "zhaomaoniu",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "Anime",
|
||||||
|
"color": "#ff7474"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_with_ai_agents",
|
||||||
|
"project_link": "nonebot-plugin-with-ai-agents",
|
||||||
|
"author": "yejue",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "AI 智能体",
|
||||||
|
"color": "#5dac81"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "多平台模型",
|
||||||
|
"color": "#5dac81"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_RanFurryPic",
|
||||||
|
"project_link": "nonebot-plugin-RanFurryPic",
|
||||||
|
"author": "Ekac00",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "furry",
|
||||||
|
"color": "#8cb9e3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_furryfusion",
|
||||||
|
"project_link": "nonebot-plugin-furryfusion",
|
||||||
|
"author": "Ekac00",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "furry",
|
||||||
|
"color": "#8cb9e3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_mysticism",
|
||||||
|
"project_link": "nonebot-plugin-mysticism",
|
||||||
|
"author": "Yan-Zero",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "占卜",
|
||||||
|
"color": "#ea5252"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "tarot",
|
||||||
|
"color": "#ea5252"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "神秘学",
|
||||||
|
"color": "#2d4168"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_tsugu_frontend",
|
||||||
|
"project_link": "nonebot-plugin-tsugu-frontend",
|
||||||
|
"author": "zhaomaoniu",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "BanGDream",
|
||||||
|
"color": "#e70050"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_kurogames",
|
||||||
|
"project_link": "nonebot-plugin-kurogames",
|
||||||
|
"author": "ConcyWee",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "战双帕弥什",
|
||||||
|
"color": "#ea5252"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "鸣潮",
|
||||||
|
"color": "#ea5252"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "库洛",
|
||||||
|
"color": "#ea5252"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_valve_server_query",
|
||||||
|
"project_link": "nonebot-plugin-valve-server-query",
|
||||||
|
"author": "LiLuo-B",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "valve",
|
||||||
|
"color": "#ea5252"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "query",
|
||||||
|
"color": "#ea5252"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "a2s",
|
||||||
|
"color": "#ea5252"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_sparkapi",
|
||||||
|
"project_link": "nonebot-plugin-sparkapi",
|
||||||
|
"author": "CCLMSY",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "AI",
|
||||||
|
"color": "#00ff00"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_tsugu_bangdream_bot",
|
||||||
|
"project_link": "nonebot-plugin-tsugu-bangdream-bot",
|
||||||
|
"author": "WindowsSov8forUs",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "tsugu",
|
||||||
|
"color": "#ffee88"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_calc24",
|
||||||
|
"project_link": "nonebot-plugin-calc24",
|
||||||
|
"author": "ajdgg",
|
||||||
|
"tags": [],
|
||||||
|
"is_official": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"module_name": "nonebot_plugin_nai3_bot",
|
||||||
|
"project_link": "nonebot-plugin-nai3-bot",
|
||||||
|
"author": "Alpaca4610",
|
||||||
|
"tags": [
|
||||||
|
{
|
||||||
|
"label": "NovelAI",
|
||||||
|
"color": "#52ea52"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "NAI3",
|
||||||
|
"color": "#52ea52"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"is_official": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
471
envs/pydantic-v1/poetry.lock
generated
471
envs/pydantic-v1/poetry.lock
generated
@@ -1,4 +1,4 @@
|
|||||||
# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
|
# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "aiodns"
|
name = "aiodns"
|
||||||
@@ -223,13 +223,13 @@ tests-no-zope = ["attrs[tests-mypy]", "cloudpickle", "hypothesis", "pympler", "p
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "blinker"
|
name = "blinker"
|
||||||
version = "1.8.1"
|
version = "1.8.2"
|
||||||
description = "Fast, simple object-to-object and broadcast signaling"
|
description = "Fast, simple object-to-object and broadcast signaling"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "blinker-1.8.1-py3-none-any.whl", hash = "sha256:5f1cdeff423b77c31b89de0565cd03e5275a03028f44b2b15f912632a58cced6"},
|
{file = "blinker-1.8.2-py3-none-any.whl", hash = "sha256:1779309f71bf239144b9399d06ae925637cf6634cf6bd131104184531bf67c01"},
|
||||||
{file = "blinker-1.8.1.tar.gz", hash = "sha256:da44ec748222dcd0105ef975eed946da197d5bdf8bafb6aa92f5bc89da63fa25"},
|
{file = "blinker-1.8.2.tar.gz", hash = "sha256:8f77b09d3bf7c795e969e9486f39c2c5e9c39d4ee07424be2bc594ece9642d83"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -564,63 +564,63 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "coverage"
|
name = "coverage"
|
||||||
version = "7.5.0"
|
version = "7.5.1"
|
||||||
description = "Code coverage measurement for Python"
|
description = "Code coverage measurement for Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "coverage-7.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:432949a32c3e3f820af808db1833d6d1631664d53dd3ce487aa25d574e18ad1c"},
|
{file = "coverage-7.5.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0884920835a033b78d1c73b6d3bbcda8161a900f38a488829a83982925f6c2e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2bd7065249703cbeb6d4ce679c734bef0ee69baa7bff9724361ada04a15b7e3b"},
|
{file = "coverage-7.5.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:39afcd3d4339329c5f58de48a52f6e4e50f6578dd6099961cf22228feb25f38f"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bbfe6389c5522b99768a93d89aca52ef92310a96b99782973b9d11e80511f932"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4a7b0ceee8147444347da6a66be737c9d78f3353b0681715b668b72e79203e4a"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:39793731182c4be939b4be0cdecde074b833f6171313cf53481f869937129ed3"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a9ca3f2fae0088c3c71d743d85404cec8df9be818a005ea065495bedc33da35"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:85a5dbe1ba1bf38d6c63b6d2c42132d45cbee6d9f0c51b52c59aa4afba057517"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5fd215c0c7d7aab005221608a3c2b46f58c0285a819565887ee0b718c052aa4e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:357754dcdfd811462a725e7501a9b4556388e8ecf66e79df6f4b988fa3d0b39a"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:4bf0655ab60d754491004a5efd7f9cccefcc1081a74c9ef2da4735d6ee4a6223"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:a81eb64feded34f40c8986869a2f764f0fe2db58c0530d3a4afbcde50f314880"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:61c4bf1ba021817de12b813338c9be9f0ad5b1e781b9b340a6d29fc13e7c1b5e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:51431d0abbed3a868e967f8257c5faf283d41ec882f58413cf295a389bb22e58"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:db66fc317a046556a96b453a58eced5024af4582a8dbdc0c23ca4dbc0d5b3146"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-win32.whl", hash = "sha256:f609ebcb0242d84b7adeee2b06c11a2ddaec5464d21888b2c8255f5fd6a98ae4"},
|
{file = "coverage-7.5.1-cp310-cp310-win32.whl", hash = "sha256:b016ea6b959d3b9556cb401c55a37547135a587db0115635a443b2ce8f1c7228"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:6782cd6216fab5a83216cc39f13ebe30adfac2fa72688c5a4d8d180cd52e8f6a"},
|
{file = "coverage-7.5.1-cp310-cp310-win_amd64.whl", hash = "sha256:df4e745a81c110e7446b1cc8131bf986157770fa405fe90e15e850aaf7619bc8"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e768d870801f68c74c2b669fc909839660180c366501d4cc4b87efd6b0eee375"},
|
{file = "coverage-7.5.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:796a79f63eca8814ca3317a1ea443645c9ff0d18b188de470ed7ccd45ae79428"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:84921b10aeb2dd453247fd10de22907984eaf80901b578a5cf0bb1e279a587cb"},
|
{file = "coverage-7.5.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4fc84a37bfd98db31beae3c2748811a3fa72bf2007ff7902f68746d9757f3746"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:710c62b6e35a9a766b99b15cdc56d5aeda0914edae8bb467e9c355f75d14ee95"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6175d1a0559986c6ee3f7fccfc4a90ecd12ba0a383dcc2da30c2b9918d67d8a3"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c379cdd3efc0658e652a14112d51a7668f6bfca7445c5a10dee7eabecabba19d"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fc81d5878cd6274ce971e0a3a18a8803c3fe25457165314271cf78e3aae3aa2"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fea9d3ca80bcf17edb2c08a4704259dadac196fe5e9274067e7a20511fad1743"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:556cf1a7cbc8028cb60e1ff0be806be2eded2daf8129b8811c63e2b9a6c43bca"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:41327143c5b1d715f5f98a397608f90ab9ebba606ae4e6f3389c2145410c52b1"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:9981706d300c18d8b220995ad22627647be11a4276721c10911e0e9fa44c83e8"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:565b2e82d0968c977e0b0f7cbf25fd06d78d4856289abc79694c8edcce6eb2de"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d7fed867ee50edf1a0b4a11e8e5d0895150e572af1cd6d315d557758bfa9c057"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:cf3539007202ebfe03923128fedfdd245db5860a36810136ad95a564a2fdffff"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:ef48e2707fb320c8f139424a596f5b69955a85b178f15af261bab871873bb987"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-win32.whl", hash = "sha256:bf0b4b8d9caa8d64df838e0f8dcf68fb570c5733b726d1494b87f3da85db3a2d"},
|
{file = "coverage-7.5.1-cp311-cp311-win32.whl", hash = "sha256:9314d5678dcc665330df5b69c1e726a0e49b27df0461c08ca12674bcc19ef136"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:9c6384cc90e37cfb60435bbbe0488444e54b98700f727f16f64d8bfda0b84656"},
|
{file = "coverage-7.5.1-cp311-cp311-win_amd64.whl", hash = "sha256:5fa567e99765fe98f4e7d7394ce623e794d7cabb170f2ca2ac5a4174437e90dd"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:fed7a72d54bd52f4aeb6c6e951f363903bd7d70bc1cad64dd1f087980d309ab9"},
|
{file = "coverage-7.5.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b6cf3764c030e5338e7f61f95bd21147963cf6aa16e09d2f74f1fa52013c1206"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:cbe6581fcff7c8e262eb574244f81f5faaea539e712a058e6707a9d272fe5b64"},
|
{file = "coverage-7.5.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2ec92012fefebee89a6b9c79bc39051a6cb3891d562b9270ab10ecfdadbc0c34"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad97ec0da94b378e593ef532b980c15e377df9b9608c7c6da3506953182398af"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:16db7f26000a07efcf6aea00316f6ac57e7d9a96501e990a36f40c965ec7a95d"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bd4bacd62aa2f1a1627352fe68885d6ee694bdaebb16038b6e680f2924a9b2cc"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:beccf7b8a10b09c4ae543582c1319c6df47d78fd732f854ac68d518ee1fb97fa"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:adf032b6c105881f9d77fa17d9eebe0ad1f9bfb2ad25777811f97c5362aa07f2"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8748731ad392d736cc9ccac03c9845b13bb07d020a33423fa5b3a36521ac6e4e"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:4ba01d9ba112b55bfa4b24808ec431197bb34f09f66f7cb4fd0258ff9d3711b1"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7352b9161b33fd0b643ccd1f21f3a3908daaddf414f1c6cb9d3a2fd618bf2572"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:f0bfe42523893c188e9616d853c47685e1c575fe25f737adf473d0405dcfa7eb"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:7a588d39e0925f6a2bff87154752481273cdb1736270642aeb3635cb9b4cad07"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a9a7ef30a1b02547c1b23fa9a5564f03c9982fc71eb2ecb7f98c96d7a0db5cf2"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:68f962d9b72ce69ea8621f57551b2fa9c70509af757ee3b8105d4f51b92b41a7"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-win32.whl", hash = "sha256:3c2b77f295edb9fcdb6a250f83e6481c679335ca7e6e4a955e4290350f2d22a4"},
|
{file = "coverage-7.5.1-cp312-cp312-win32.whl", hash = "sha256:f152cbf5b88aaeb836127d920dd0f5e7edff5a66f10c079157306c4343d86c19"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:427e1e627b0963ac02d7c8730ca6d935df10280d230508c0ba059505e9233475"},
|
{file = "coverage-7.5.1-cp312-cp312-win_amd64.whl", hash = "sha256:5a5740d1fb60ddf268a3811bcd353de34eb56dc24e8f52a7f05ee513b2d4f596"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9dd88fce54abbdbf4c42fb1fea0e498973d07816f24c0e27a1ecaf91883ce69e"},
|
{file = "coverage-7.5.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:e2213def81a50519d7cc56ed643c9e93e0247f5bbe0d1247d15fa520814a7cd7"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a898c11dca8f8c97b467138004a30133974aacd572818c383596f8d5b2eb04a9"},
|
{file = "coverage-7.5.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:5037f8fcc2a95b1f0e80585bd9d1ec31068a9bcb157d9750a172836e98bc7a90"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:07dfdd492d645eea1bd70fb1d6febdcf47db178b0d99161d8e4eed18e7f62fe7"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c3721c2c9e4c4953a41a26c14f4cef64330392a6d2d675c8b1db3b645e31f0e"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d3d117890b6eee85887b1eed41eefe2e598ad6e40523d9f94c4c4b213258e4a4"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ca498687ca46a62ae590253fba634a1fe9836bc56f626852fb2720f334c9e4e5"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6afd2e84e7da40fe23ca588379f815fb6dbbb1b757c883935ed11647205111cb"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0cdcbc320b14c3e5877ee79e649677cb7d89ef588852e9583e6b24c2e5072661"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:a9960dd1891b2ddf13a7fe45339cd59ecee3abb6b8326d8b932d0c5da208104f"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:57e0204b5b745594e5bc14b9b50006da722827f0b8c776949f1135677e88d0b8"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:ced268e82af993d7801a9db2dbc1d2322e786c5dc76295d8e89473d46c6b84d4"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:8fe7502616b67b234482c3ce276ff26f39ffe88adca2acf0261df4b8454668b4"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:e7c211f25777746d468d76f11719e64acb40eed410d81c26cefac641975beb88"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:9e78295f4144f9dacfed4f92935fbe1780021247c2fabf73a819b17f0ccfff8d"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-win32.whl", hash = "sha256:262fffc1f6c1a26125d5d573e1ec379285a3723363f3bd9c83923c9593a2ac25"},
|
{file = "coverage-7.5.1-cp38-cp38-win32.whl", hash = "sha256:1434e088b41594baa71188a17533083eabf5609e8e72f16ce8c186001e6b8c41"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-win_amd64.whl", hash = "sha256:eed462b4541c540d63ab57b3fc69e7d8c84d5957668854ee4e408b50e92ce26a"},
|
{file = "coverage-7.5.1-cp38-cp38-win_amd64.whl", hash = "sha256:0646599e9b139988b63704d704af8e8df7fa4cbc4a1f33df69d97f36cb0a38de"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d0194d654e360b3e6cc9b774e83235bae6b9b2cac3be09040880bb0e8a88f4a1"},
|
{file = "coverage-7.5.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4cc37def103a2725bc672f84bd939a6fe4522310503207aae4d56351644682f1"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:33c020d3322662e74bc507fb11488773a96894aa82a622c35a5a28673c0c26f5"},
|
{file = "coverage-7.5.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:fc0b4d8bfeabd25ea75e94632f5b6e047eef8adaed0c2161ada1e922e7f7cece"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbdf2cae14a06827bec50bd58e49249452d211d9caddd8bd80e35b53cb04631"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d0a0f5e06881ecedfe6f3dd2f56dcb057b6dbeb3327fd32d4b12854df36bf26"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3235d7c781232e525b0761730e052388a01548bd7f67d0067a253887c6e8df46"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9735317685ba6ec7e3754798c8871c2f49aa5e687cc794a0b1d284b2389d1bd5"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2de4e546f0ec4b2787d625e0b16b78e99c3e21bc1722b4977c0dddf11ca84e"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d21918e9ef11edf36764b93101e2ae8cc82aa5efdc7c5a4e9c6c35a48496d601"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:4d0e206259b73af35c4ec1319fd04003776e11e859936658cb6ceffdeba0f5be"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c3e757949f268364b96ca894b4c342b41dc6f8f8b66c37878aacef5930db61be"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:2055c4fb9a6ff624253d432aa471a37202cd8f458c033d6d989be4499aed037b"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:79afb6197e2f7f60c4824dd4b2d4c2ec5801ceb6ba9ce5d2c3080e5660d51a4f"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:075299460948cd12722a970c7eae43d25d37989da682997687b34ae6b87c0ef0"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:d1d0d98d95dd18fe29dc66808e1accf59f037d5716f86a501fc0256455219668"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-win32.whl", hash = "sha256:280132aada3bc2f0fac939a5771db4fbb84f245cb35b94fae4994d4c1f80dae7"},
|
{file = "coverage-7.5.1-cp39-cp39-win32.whl", hash = "sha256:1cc0fe9b0b3a8364093c53b0b4c0c2dd4bb23acbec4c9240b5f284095ccf7981"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:c58536f6892559e030e6924896a44098bc1290663ea12532c78cef71d0df8493"},
|
{file = "coverage-7.5.1-cp39-cp39-win_amd64.whl", hash = "sha256:dde0070c40ea8bb3641e811c1cfbf18e265d024deff6de52c5950677a8fb1e0f"},
|
||||||
{file = "coverage-7.5.0-pp38.pp39.pp310-none-any.whl", hash = "sha256:2b57780b51084d5223eee7b59f0d4911c31c16ee5aa12737c7a02455829ff067"},
|
{file = "coverage-7.5.1-pp38.pp39.pp310-none-any.whl", hash = "sha256:6537e7c10cc47c595828b8a8be04c72144725c383c4702703ff4e42e44577312"},
|
||||||
{file = "coverage-7.5.0.tar.gz", hash = "sha256:cf62d17310f34084c59c01e027259076479128d11e4661bb6c9acb38c5e19bb8"},
|
{file = "coverage-7.5.1.tar.gz", hash = "sha256:54de9ef3a9da981f7af93eafde4ede199e0846cd819eb27c88e2b712aae9708c"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -645,6 +645,41 @@ coverage = ">=7,<8"
|
|||||||
importlib_metadata = {version = "*", markers = "python_version < \"3.10\""}
|
importlib_metadata = {version = "*", markers = "python_version < \"3.10\""}
|
||||||
packaging = ">=20.4"
|
packaging = ">=20.4"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "dnspython"
|
||||||
|
version = "2.6.1"
|
||||||
|
description = "DNS toolkit"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "dnspython-2.6.1-py3-none-any.whl", hash = "sha256:5ef3b9680161f6fa89daf8ad451b5f1a33b18ae8a1c6778cdf4b43f08c0a6e50"},
|
||||||
|
{file = "dnspython-2.6.1.tar.gz", hash = "sha256:e8f0f9c23a7b7cb99ded64e6c3a6f3e701d78f50c55e002b839dea7225cff7cc"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
dev = ["black (>=23.1.0)", "coverage (>=7.0)", "flake8 (>=7)", "mypy (>=1.8)", "pylint (>=3)", "pytest (>=7.4)", "pytest-cov (>=4.1.0)", "sphinx (>=7.2.0)", "twine (>=4.0.0)", "wheel (>=0.42.0)"]
|
||||||
|
dnssec = ["cryptography (>=41)"]
|
||||||
|
doh = ["h2 (>=4.1.0)", "httpcore (>=1.0.0)", "httpx (>=0.26.0)"]
|
||||||
|
doq = ["aioquic (>=0.9.25)"]
|
||||||
|
idna = ["idna (>=3.6)"]
|
||||||
|
trio = ["trio (>=0.23)"]
|
||||||
|
wmi = ["wmi (>=1.5.1)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "email-validator"
|
||||||
|
version = "2.1.1"
|
||||||
|
description = "A robust email address syntax and deliverability validation library."
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "email_validator-2.1.1-py3-none-any.whl", hash = "sha256:97d882d174e2a65732fb43bfce81a3a834cbc1bde8bf419e30ef5ea976370a05"},
|
||||||
|
{file = "email_validator-2.1.1.tar.gz", hash = "sha256:200a70680ba08904be6d1eef729205cc0d687634399a5924d842533efb824b84"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
dnspython = ">=2.0.0"
|
||||||
|
idna = ">=2.0.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "exceptiongroup"
|
name = "exceptiongroup"
|
||||||
version = "1.2.1"
|
version = "1.2.1"
|
||||||
@@ -675,23 +710,48 @@ testing = ["hatch", "pre-commit", "pytest", "tox"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fastapi"
|
name = "fastapi"
|
||||||
version = "0.110.3"
|
version = "0.111.0"
|
||||||
description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
|
description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "fastapi-0.110.3-py3-none-any.whl", hash = "sha256:fd7600612f755e4050beb74001310b5a7e1796d149c2ee363124abdfa0289d32"},
|
{file = "fastapi-0.111.0-py3-none-any.whl", hash = "sha256:97ecbf994be0bcbdadedf88c3150252bed7b2087075ac99735403b1b76cc8fc0"},
|
||||||
{file = "fastapi-0.110.3.tar.gz", hash = "sha256:555700b0159379e94fdbfc6bb66a0f1c43f4cf7060f25239af3d84b63a656626"},
|
{file = "fastapi-0.111.0.tar.gz", hash = "sha256:b9db9dd147c91cb8b769f7183535773d8741dd46f9dc6676cd82eab510228cd7"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
|
email_validator = ">=2.0.0"
|
||||||
|
fastapi-cli = ">=0.0.2"
|
||||||
|
httpx = ">=0.23.0"
|
||||||
|
jinja2 = ">=2.11.2"
|
||||||
|
orjson = ">=3.2.1"
|
||||||
pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0 || >2.0.0,<2.0.1 || >2.0.1,<2.1.0 || >2.1.0,<3.0.0"
|
pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0 || >2.0.0,<2.0.1 || >2.0.1,<2.1.0 || >2.1.0,<3.0.0"
|
||||||
|
python-multipart = ">=0.0.7"
|
||||||
starlette = ">=0.37.2,<0.38.0"
|
starlette = ">=0.37.2,<0.38.0"
|
||||||
typing-extensions = ">=4.8.0"
|
typing-extensions = ">=4.8.0"
|
||||||
|
ujson = ">=4.0.1,<4.0.2 || >4.0.2,<4.1.0 || >4.1.0,<4.2.0 || >4.2.0,<4.3.0 || >4.3.0,<5.0.0 || >5.0.0,<5.1.0 || >5.1.0"
|
||||||
|
uvicorn = {version = ">=0.12.0", extras = ["standard"]}
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
all = ["email_validator (>=2.0.0)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)", "jinja2 (>=2.11.2)", "orjson (>=3.2.1)", "pydantic-extra-types (>=2.0.0)", "pydantic-settings (>=2.0.0)", "python-multipart (>=0.0.7)", "pyyaml (>=5.3.1)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0)", "uvicorn[standard] (>=0.12.0)"]
|
all = ["email_validator (>=2.0.0)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)", "jinja2 (>=2.11.2)", "orjson (>=3.2.1)", "pydantic-extra-types (>=2.0.0)", "pydantic-settings (>=2.0.0)", "python-multipart (>=0.0.7)", "pyyaml (>=5.3.1)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0)", "uvicorn[standard] (>=0.12.0)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "fastapi-cli"
|
||||||
|
version = "0.0.4"
|
||||||
|
description = "Run and manage FastAPI apps from the command line with FastAPI CLI. 🚀"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "fastapi_cli-0.0.4-py3-none-any.whl", hash = "sha256:a2552f3a7ae64058cdbb530be6fa6dbfc975dc165e4fa66d224c3d396e25e809"},
|
||||||
|
{file = "fastapi_cli-0.0.4.tar.gz", hash = "sha256:e2e9ffaffc1f7767f488d6da34b6f5a377751c996f397902eb6abb99a67bde32"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
typer = ">=0.12.3"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
standard = ["fastapi", "uvicorn[standard] (>=0.15.0)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "flask"
|
name = "flask"
|
||||||
version = "3.0.3"
|
version = "3.0.3"
|
||||||
@@ -1022,13 +1082,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jinja2"
|
name = "jinja2"
|
||||||
version = "3.1.3"
|
version = "3.1.4"
|
||||||
description = "A very fast and expressive template engine."
|
description = "A very fast and expressive template engine."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.7"
|
||||||
files = [
|
files = [
|
||||||
{file = "Jinja2-3.1.3-py3-none-any.whl", hash = "sha256:7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa"},
|
{file = "jinja2-3.1.4-py3-none-any.whl", hash = "sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d"},
|
||||||
{file = "Jinja2-3.1.3.tar.gz", hash = "sha256:ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90"},
|
{file = "jinja2-3.1.4.tar.gz", hash = "sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1055,6 +1115,30 @@ win32-setctime = {version = ">=1.0.0", markers = "sys_platform == \"win32\""}
|
|||||||
[package.extras]
|
[package.extras]
|
||||||
dev = ["Sphinx (==7.2.5)", "colorama (==0.4.5)", "colorama (==0.4.6)", "exceptiongroup (==1.1.3)", "freezegun (==1.1.0)", "freezegun (==1.2.2)", "mypy (==v0.910)", "mypy (==v0.971)", "mypy (==v1.4.1)", "mypy (==v1.5.1)", "pre-commit (==3.4.0)", "pytest (==6.1.2)", "pytest (==7.4.0)", "pytest-cov (==2.12.1)", "pytest-cov (==4.1.0)", "pytest-mypy-plugins (==1.9.3)", "pytest-mypy-plugins (==3.0.0)", "sphinx-autobuild (==2021.3.14)", "sphinx-rtd-theme (==1.3.0)", "tox (==3.27.1)", "tox (==4.11.0)"]
|
dev = ["Sphinx (==7.2.5)", "colorama (==0.4.5)", "colorama (==0.4.6)", "exceptiongroup (==1.1.3)", "freezegun (==1.1.0)", "freezegun (==1.2.2)", "mypy (==v0.910)", "mypy (==v0.971)", "mypy (==v1.4.1)", "mypy (==v1.5.1)", "pre-commit (==3.4.0)", "pytest (==6.1.2)", "pytest (==7.4.0)", "pytest-cov (==2.12.1)", "pytest-cov (==4.1.0)", "pytest-mypy-plugins (==1.9.3)", "pytest-mypy-plugins (==3.0.0)", "sphinx-autobuild (==2021.3.14)", "sphinx-rtd-theme (==1.3.0)", "tox (==3.27.1)", "tox (==4.11.0)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "markdown-it-py"
|
||||||
|
version = "3.0.0"
|
||||||
|
description = "Python port of markdown-it. Markdown parsing, done right!"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb"},
|
||||||
|
{file = "markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
mdurl = ">=0.1,<1.0"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
benchmarking = ["psutil", "pytest", "pytest-benchmark"]
|
||||||
|
code-style = ["pre-commit (>=3.0,<4.0)"]
|
||||||
|
compare = ["commonmark (>=0.9,<1.0)", "markdown (>=3.4,<4.0)", "mistletoe (>=1.0,<2.0)", "mistune (>=2.0,<3.0)", "panflute (>=2.3,<3.0)"]
|
||||||
|
linkify = ["linkify-it-py (>=1,<3)"]
|
||||||
|
plugins = ["mdit-py-plugins"]
|
||||||
|
profiling = ["gprof2dot"]
|
||||||
|
rtd = ["jupyter_sphinx", "mdit-py-plugins", "myst-parser", "pyyaml", "sphinx", "sphinx-copybutton", "sphinx-design", "sphinx_book_theme"]
|
||||||
|
testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "markupsafe"
|
name = "markupsafe"
|
||||||
version = "2.1.5"
|
version = "2.1.5"
|
||||||
@@ -1124,6 +1208,17 @@ files = [
|
|||||||
{file = "MarkupSafe-2.1.5.tar.gz", hash = "sha256:d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b"},
|
{file = "MarkupSafe-2.1.5.tar.gz", hash = "sha256:d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "mdurl"
|
||||||
|
version = "0.1.2"
|
||||||
|
description = "Markdown URL utilities"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
files = [
|
||||||
|
{file = "mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"},
|
||||||
|
{file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "multidict"
|
name = "multidict"
|
||||||
version = "6.0.5"
|
version = "6.0.5"
|
||||||
@@ -1247,7 +1342,7 @@ url = "../test"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nonebot2"
|
name = "nonebot2"
|
||||||
version = "2.3.0"
|
version = "2.3.1"
|
||||||
description = "An asynchronous python bot framework."
|
description = "An asynchronous python bot framework."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = "^3.9"
|
python-versions = "^3.9"
|
||||||
@@ -1299,6 +1394,61 @@ nonebot2 = ">=2.2.0,<3.0.0"
|
|||||||
pytest = ">=7.0.0,<9.0.0"
|
pytest = ">=7.0.0,<9.0.0"
|
||||||
typing-extensions = ">=4.0.0,<5.0.0"
|
typing-extensions = ">=4.0.0,<5.0.0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "orjson"
|
||||||
|
version = "3.10.3"
|
||||||
|
description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:9fb6c3f9f5490a3eb4ddd46fc1b6eadb0d6fc16fb3f07320149c3286a1409dd8"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:252124b198662eee80428f1af8c63f7ff077c88723fe206a25df8dc57a57b1fa"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9f3e87733823089a338ef9bbf363ef4de45e5c599a9bf50a7a9b82e86d0228da"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c8334c0d87103bb9fbbe59b78129f1f40d1d1e8355bbed2ca71853af15fa4ed3"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1952c03439e4dce23482ac846e7961f9d4ec62086eb98ae76d97bd41d72644d7"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:c0403ed9c706dcd2809f1600ed18f4aae50be263bd7112e54b50e2c2bc3ebd6d"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:382e52aa4270a037d41f325e7d1dfa395b7de0c367800b6f337d8157367bf3a7"},
|
||||||
|
{file = "orjson-3.10.3-cp310-none-win32.whl", hash = "sha256:be2aab54313752c04f2cbaab4515291ef5af8c2256ce22abc007f89f42f49109"},
|
||||||
|
{file = "orjson-3.10.3-cp310-none-win_amd64.whl", hash = "sha256:416b195f78ae461601893f482287cee1e3059ec49b4f99479aedf22a20b1098b"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:73100d9abbbe730331f2242c1fc0bcb46a3ea3b4ae3348847e5a141265479700"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:544a12eee96e3ab828dbfcb4d5a0023aa971b27143a1d35dc214c176fdfb29b3"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:520de5e2ef0b4ae546bea25129d6c7c74edb43fc6cf5213f511a927f2b28148b"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ccaa0a401fc02e8828a5bedfd80f8cd389d24f65e5ca3954d72c6582495b4bcf"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a7bc9e8bc11bac40f905640acd41cbeaa87209e7e1f57ade386da658092dc16"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:3582b34b70543a1ed6944aca75e219e1192661a63da4d039d088a09c67543b08"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1c23dfa91481de880890d17aa7b91d586a4746a4c2aa9a145bebdbaf233768d5"},
|
||||||
|
{file = "orjson-3.10.3-cp311-none-win32.whl", hash = "sha256:1770e2a0eae728b050705206d84eda8b074b65ee835e7f85c919f5705b006c9b"},
|
||||||
|
{file = "orjson-3.10.3-cp311-none-win_amd64.whl", hash = "sha256:93433b3c1f852660eb5abdc1f4dd0ced2be031ba30900433223b28ee0140cde5"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:a39aa73e53bec8d410875683bfa3a8edf61e5a1c7bb4014f65f81d36467ea098"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0943a96b3fa09bee1afdfccc2cb236c9c64715afa375b2af296c73d91c23eab2"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e852baafceff8da3c9defae29414cc8513a1586ad93e45f27b89a639c68e8176"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:18566beb5acd76f3769c1d1a7ec06cdb81edc4d55d2765fb677e3eaa10fa99e0"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1bd2218d5a3aa43060efe649ec564ebedec8ce6ae0a43654b81376216d5ebd42"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:cf20465e74c6e17a104ecf01bf8cd3b7b252565b4ccee4548f18b012ff2f8069"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ba7f67aa7f983c4345eeda16054a4677289011a478ca947cd69c0a86ea45e534"},
|
||||||
|
{file = "orjson-3.10.3-cp312-none-win32.whl", hash = "sha256:17e0713fc159abc261eea0f4feda611d32eabc35708b74bef6ad44f6c78d5ea0"},
|
||||||
|
{file = "orjson-3.10.3-cp312-none-win_amd64.whl", hash = "sha256:4c895383b1ec42b017dd2c75ae8a5b862fc489006afde06f14afbdd0309b2af0"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:be2719e5041e9fb76c8c2c06b9600fe8e8584e6980061ff88dcbc2691a16d20d"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cb0175a5798bdc878956099f5c54b9837cb62cfbf5d0b86ba6d77e43861bcec2"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:978be58a68ade24f1af7758626806e13cff7748a677faf95fbb298359aa1e20d"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:16bda83b5c61586f6f788333d3cf3ed19015e3b9019188c56983b5a299210eb5"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4ad1f26bea425041e0a1adad34630c4825a9e3adec49079b1fb6ac8d36f8b754"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:9e253498bee561fe85d6325ba55ff2ff08fb5e7184cd6a4d7754133bd19c9195"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:0a62f9968bab8a676a164263e485f30a0b748255ee2f4ae49a0224be95f4532b"},
|
||||||
|
{file = "orjson-3.10.3-cp38-none-win32.whl", hash = "sha256:8d0b84403d287d4bfa9bf7d1dc298d5c1c5d9f444f3737929a66f2fe4fb8f134"},
|
||||||
|
{file = "orjson-3.10.3-cp38-none-win_amd64.whl", hash = "sha256:8bc7a4df90da5d535e18157220d7915780d07198b54f4de0110eca6b6c11e290"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:9059d15c30e675a58fdcd6f95465c1522b8426e092de9fff20edebfdc15e1cb0"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8d40c7f7938c9c2b934b297412c067936d0b54e4b8ab916fd1a9eb8f54c02294"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d4a654ec1de8fdaae1d80d55cee65893cb06494e124681ab335218be6a0691e7"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:831c6ef73f9aa53c5f40ae8f949ff7681b38eaddb6904aab89dca4d85099cb78"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:99b880d7e34542db89f48d14ddecbd26f06838b12427d5a25d71baceb5ba119d"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:2e5e176c994ce4bd434d7aafb9ecc893c15f347d3d2bbd8e7ce0b63071c52e25"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:b69a58a37dab856491bf2d3bbf259775fdce262b727f96aafbda359cb1d114d8"},
|
||||||
|
{file = "orjson-3.10.3-cp39-none-win32.whl", hash = "sha256:b8d4d1a6868cde356f1402c8faeb50d62cee765a1f7ffcfd6de732ab0581e063"},
|
||||||
|
{file = "orjson-3.10.3-cp39-none-win_amd64.whl", hash = "sha256:5102f50c5fc46d94f2033fe00d392588564378260d64377aec702f21a7a22912"},
|
||||||
|
{file = "orjson-3.10.3.tar.gz", hash = "sha256:2b166507acae7ba2f7c315dcf185a9111ad5e992ac81f2d507aac39193c2c818"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "packaging"
|
name = "packaging"
|
||||||
version = "24.0"
|
version = "24.0"
|
||||||
@@ -1465,6 +1615,20 @@ typing-extensions = ">=4.2.0"
|
|||||||
dotenv = ["python-dotenv (>=0.10.4)"]
|
dotenv = ["python-dotenv (>=0.10.4)"]
|
||||||
email = ["email-validator (>=1.0.3)"]
|
email = ["email-validator (>=1.0.3)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pygments"
|
||||||
|
version = "2.18.0"
|
||||||
|
description = "Pygments is a syntax highlighting package written in Python."
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "pygments-2.18.0-py3-none-any.whl", hash = "sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a"},
|
||||||
|
{file = "pygments-2.18.0.tar.gz", hash = "sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
windows-terminal = ["colorama (>=0.4.6)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pygtrie"
|
name = "pygtrie"
|
||||||
version = "2.5.0"
|
version = "2.5.0"
|
||||||
@@ -1478,13 +1642,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pytest"
|
name = "pytest"
|
||||||
version = "8.2.0"
|
version = "8.2.1"
|
||||||
description = "pytest: simple powerful testing with Python"
|
description = "pytest: simple powerful testing with Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "pytest-8.2.0-py3-none-any.whl", hash = "sha256:1733f0620f6cda4095bbf0d9ff8022486e91892245bb9e7d5542c018f612f233"},
|
{file = "pytest-8.2.1-py3-none-any.whl", hash = "sha256:faccc5d332b8c3719f40283d0d44aa5cf101cec36f88cde9ed8f2bc0538612b1"},
|
||||||
{file = "pytest-8.2.0.tar.gz", hash = "sha256:d507d4482197eac0ba2bae2e9babf0672eb333017bcedaa5fb1a3d42c1174b3f"},
|
{file = "pytest-8.2.1.tar.gz", hash = "sha256:5046e5b46d8e4cac199c373041f26be56fdb81eb4e67dc11d4e10811fc3408fd"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1500,13 +1664,13 @@ dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pytest-asyncio"
|
name = "pytest-asyncio"
|
||||||
version = "0.23.6"
|
version = "0.23.7"
|
||||||
description = "Pytest support for asyncio"
|
description = "Pytest support for asyncio"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "pytest-asyncio-0.23.6.tar.gz", hash = "sha256:ffe523a89c1c222598c76856e76852b787504ddb72dd5d9b6617ffa8aa2cde5f"},
|
{file = "pytest_asyncio-0.23.7-py3-none-any.whl", hash = "sha256:009b48127fbe44518a547bddd25611551b0e43ccdbf1e67d12479f569832c20b"},
|
||||||
{file = "pytest_asyncio-0.23.6-py3-none-any.whl", hash = "sha256:68516fdd1018ac57b846c9846b954f0393b26f094764a28c955eabb0536a4e8a"},
|
{file = "pytest_asyncio-0.23.7.tar.gz", hash = "sha256:5f5c72948f4c49e7db4f29f2521d4031f1c27f86e57b046126654083d4770268"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1568,6 +1732,20 @@ files = [
|
|||||||
[package.extras]
|
[package.extras]
|
||||||
cli = ["click (>=5.0)"]
|
cli = ["click (>=5.0)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "python-multipart"
|
||||||
|
version = "0.0.9"
|
||||||
|
description = "A streaming multipart parser for Python"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "python_multipart-0.0.9-py3-none-any.whl", hash = "sha256:97ca7b8ea7b05f977dc3849c3ba99d51689822fab725c3703af7c866a0c2b215"},
|
||||||
|
{file = "python_multipart-0.0.9.tar.gz", hash = "sha256:03f54688c663f1b7977105f021043b0793151e4cb1c1a9d4a11fc13d622c4026"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
dev = ["atomicwrites (==1.4.1)", "attrs (==23.2.0)", "coverage (==7.4.1)", "hatch", "invoke (==2.2.0)", "more-itertools (==10.2.0)", "pbr (==6.0.0)", "pluggy (==1.4.0)", "py (==1.11.0)", "pytest (==8.0.0)", "pytest-cov (==4.1.0)", "pytest-timeout (==2.2.0)", "pyyaml (==6.0.1)", "ruff (==0.2.1)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pyyaml"
|
name = "pyyaml"
|
||||||
version = "6.0.1"
|
version = "6.0.1"
|
||||||
@@ -1630,13 +1808,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "quart"
|
name = "quart"
|
||||||
version = "0.19.5"
|
version = "0.19.6"
|
||||||
description = "A Python ASGI web microframework with the same API as Flask"
|
description = "A Python ASGI web microframework with the same API as Flask"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "quart-0.19.5-py3-none-any.whl", hash = "sha256:581d959bda40d3c45500c50007a6451a157fd381c70d3556811bdd334adb9657"},
|
{file = "quart-0.19.6-py3-none-any.whl", hash = "sha256:f9092310f4eb120903da692a5e4354f05d48c28ca7ec3054d3d94dd862412c58"},
|
||||||
{file = "quart-0.19.5.tar.gz", hash = "sha256:fbe3cff25cd18b5c0e8d82bbeeaa43d78f35e5221ca5c50bb0b7c20255c87ab8"},
|
{file = "quart-0.19.6.tar.gz", hash = "sha256:89ddda6da24300a5ea4f21e4582d5e89bc8ea678e724e0b747767143401e4558"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1677,6 +1855,35 @@ urllib3 = ">=1.21.1,<3"
|
|||||||
socks = ["PySocks (>=1.5.6,!=1.5.7)"]
|
socks = ["PySocks (>=1.5.6,!=1.5.7)"]
|
||||||
use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
|
use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rich"
|
||||||
|
version = "13.7.1"
|
||||||
|
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7.0"
|
||||||
|
files = [
|
||||||
|
{file = "rich-13.7.1-py3-none-any.whl", hash = "sha256:4edbae314f59eb482f54e9e30bf00d33350aaa94f4bfcd4e9e3110e64d0d7222"},
|
||||||
|
{file = "rich-13.7.1.tar.gz", hash = "sha256:9be308cb1fe2f1f57d67ce99e95af38a1e2bc71ad9813b0e247cf7ffbcc3a432"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
markdown-it-py = ">=2.2.0"
|
||||||
|
pygments = ">=2.13.0,<3.0.0"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
jupyter = ["ipywidgets (>=7.5.1,<9)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "shellingham"
|
||||||
|
version = "1.5.4"
|
||||||
|
description = "Tool to Detect Surrounding Shell"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
files = [
|
||||||
|
{file = "shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686"},
|
||||||
|
{file = "shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sniffio"
|
name = "sniffio"
|
||||||
version = "1.3.1"
|
version = "1.3.1"
|
||||||
@@ -1731,6 +1938,23 @@ files = [
|
|||||||
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
|
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "typer"
|
||||||
|
version = "0.12.3"
|
||||||
|
description = "Typer, build great CLIs. Easy to code. Based on Python type hints."
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
files = [
|
||||||
|
{file = "typer-0.12.3-py3-none-any.whl", hash = "sha256:070d7ca53f785acbccba8e7d28b08dcd88f79f1fbda035ade0aecec71ca5c914"},
|
||||||
|
{file = "typer-0.12.3.tar.gz", hash = "sha256:49e73131481d804288ef62598d97a1ceef3058905aa536a1134f90891ba35482"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
click = ">=8.0.0"
|
||||||
|
rich = ">=10.11.0"
|
||||||
|
shellingham = ">=1.3.0"
|
||||||
|
typing-extensions = ">=3.7.4.3"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typing-extensions"
|
name = "typing-extensions"
|
||||||
version = "4.11.0"
|
version = "4.11.0"
|
||||||
@@ -1742,6 +1966,93 @@ files = [
|
|||||||
{file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"},
|
{file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ujson"
|
||||||
|
version = "5.10.0"
|
||||||
|
description = "Ultra fast JSON encoder and decoder for Python"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2601aa9ecdbee1118a1c2065323bda35e2c5a2cf0797ef4522d485f9d3ef65bd"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:348898dd702fc1c4f1051bc3aacbf894caa0927fe2c53e68679c073375f732cf"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22cffecf73391e8abd65ef5f4e4dd523162a3399d5e84faa6aebbf9583df86d6"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26b0e2d2366543c1bb4fbd457446f00b0187a2bddf93148ac2da07a53fe51569"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:caf270c6dba1be7a41125cd1e4fc7ba384bf564650beef0df2dd21a00b7f5770"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a245d59f2ffe750446292b0094244df163c3dc96b3ce152a2c837a44e7cda9d1"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:94a87f6e151c5f483d7d54ceef83b45d3a9cca7a9cb453dbdbb3f5a6f64033f5"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:29b443c4c0a113bcbb792c88bea67b675c7ca3ca80c3474784e08bba01c18d51"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-win32.whl", hash = "sha256:c18610b9ccd2874950faf474692deee4223a994251bc0a083c114671b64e6518"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:924f7318c31874d6bb44d9ee1900167ca32aa9b69389b98ecbde34c1698a250f"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a5b366812c90e69d0f379a53648be10a5db38f9d4ad212b60af00bd4048d0f00"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:502bf475781e8167f0f9d0e41cd32879d120a524b22358e7f205294224c71126"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5b91b5d0d9d283e085e821651184a647699430705b15bf274c7896f23fe9c9d8"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:129e39af3a6d85b9c26d5577169c21d53821d8cf68e079060602e861c6e5da1b"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f77b74475c462cb8b88680471193064d3e715c7c6074b1c8c412cb526466efe9"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7ec0ca8c415e81aa4123501fee7f761abf4b7f386aad348501a26940beb1860f"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ab13a2a9e0b2865a6c6db9271f4b46af1c7476bfd51af1f64585e919b7c07fd4"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:57aaf98b92d72fc70886b5a0e1a1ca52c2320377360341715dd3933a18e827b1"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-win32.whl", hash = "sha256:2987713a490ceb27edff77fb184ed09acdc565db700ee852823c3dc3cffe455f"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:f00ea7e00447918ee0eff2422c4add4c5752b1b60e88fcb3c067d4a21049a720"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:98ba15d8cbc481ce55695beee9f063189dce91a4b08bc1d03e7f0152cd4bbdd5"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a9d2edbf1556e4f56e50fab7d8ff993dbad7f54bac68eacdd27a8f55f433578e"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6627029ae4f52d0e1a2451768c2c37c0c814ffc04f796eb36244cf16b8e57043"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f8ccb77b3e40b151e20519c6ae6d89bfe3f4c14e8e210d910287f778368bb3d1"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3caf9cd64abfeb11a3b661329085c5e167abbe15256b3b68cb5d914ba7396f3"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6e32abdce572e3a8c3d02c886c704a38a1b015a1fb858004e03d20ca7cecbb21"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a65b6af4d903103ee7b6f4f5b85f1bfd0c90ba4eeac6421aae436c9988aa64a2"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:604a046d966457b6cdcacc5aa2ec5314f0e8c42bae52842c1e6fa02ea4bda42e"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-win32.whl", hash = "sha256:6dea1c8b4fc921bf78a8ff00bbd2bfe166345f5536c510671bccececb187c80e"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:38665e7d8290188b1e0d57d584eb8110951a9591363316dd41cf8686ab1d0abc"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-macosx_10_9_x86_64.whl", hash = "sha256:618efd84dc1acbd6bff8eaa736bb6c074bfa8b8a98f55b61c38d4ca2c1f7f287"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:38d5d36b4aedfe81dfe251f76c0467399d575d1395a1755de391e58985ab1c2e"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:67079b1f9fb29ed9a2914acf4ef6c02844b3153913eb735d4bf287ee1db6e557"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7d0e0ceeb8fe2468c70ec0c37b439dd554e2aa539a8a56365fd761edb418988"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:59e02cd37bc7c44d587a0ba45347cc815fb7a5fe48de16bf05caa5f7d0d2e816"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:2a890b706b64e0065f02577bf6d8ca3b66c11a5e81fb75d757233a38c07a1f20"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:621e34b4632c740ecb491efc7f1fcb4f74b48ddb55e65221995e74e2d00bbff0"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:b9500e61fce0cfc86168b248104e954fead61f9be213087153d272e817ec7b4f"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-win32.whl", hash = "sha256:4c4fc16f11ac1612f05b6f5781b384716719547e142cfd67b65d035bd85af165"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:4573fd1695932d4f619928fd09d5d03d917274381649ade4328091ceca175539"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:a984a3131da7f07563057db1c3020b1350a3e27a8ec46ccbfbf21e5928a43050"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:73814cd1b9db6fc3270e9d8fe3b19f9f89e78ee9d71e8bd6c9a626aeaeaf16bd"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:61e1591ed9376e5eddda202ec229eddc56c612b61ac6ad07f96b91460bb6c2fb"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2c75269f8205b2690db4572a4a36fe47cd1338e4368bc73a7a0e48789e2e35a"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7223f41e5bf1f919cd8d073e35b229295aa8e0f7b5de07ed1c8fddac63a6bc5d"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:d4dc2fd6b3067c0782e7002ac3b38cf48608ee6366ff176bbd02cf969c9c20fe"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:232cc85f8ee3c454c115455195a205074a56ff42608fd6b942aa4c378ac14dd7"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:cc6139531f13148055d691e442e4bc6601f6dba1e6d521b1585d4788ab0bfad4"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-win32.whl", hash = "sha256:e7ce306a42b6b93ca47ac4a3b96683ca554f6d35dd8adc5acfcd55096c8dfcb8"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-win_amd64.whl", hash = "sha256:e82d4bb2138ab05e18f089a83b6564fee28048771eb63cdecf4b9b549de8a2cc"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:dfef2814c6b3291c3c5f10065f745a1307d86019dbd7ea50e83504950136ed5b"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4734ee0745d5928d0ba3a213647f1c4a74a2a28edc6d27b2d6d5bd9fa4319e27"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d47ebb01bd865fdea43da56254a3930a413f0c5590372a1241514abae8aa7c76"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dee5e97c2496874acbf1d3e37b521dd1f307349ed955e62d1d2f05382bc36dd5"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7490655a2272a2d0b072ef16b0b58ee462f4973a8f6bbe64917ce5e0a256f9c0"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:ba17799fcddaddf5c1f75a4ba3fd6441f6a4f1e9173f8a786b42450851bd74f1"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:2aff2985cef314f21d0fecc56027505804bc78802c0121343874741650a4d3d1"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:ad88ac75c432674d05b61184178635d44901eb749786c8eb08c102330e6e8996"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-win32.whl", hash = "sha256:2544912a71da4ff8c4f7ab5606f947d7299971bdd25a45e008e467ca638d13c9"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:3ff201d62b1b177a46f113bb43ad300b424b7847f9c5d38b1b4ad8f75d4a282a"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:5b6fee72fa77dc172a28f21693f64d93166534c263adb3f96c413ccc85ef6e64"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:61d0af13a9af01d9f26d2331ce49bb5ac1fb9c814964018ac8df605b5422dcb3"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ecb24f0bdd899d368b715c9e6664166cf694d1e57be73f17759573a6986dd95a"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fbd8fd427f57a03cff3ad6574b5e299131585d9727c8c366da4624a9069ed746"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:beeaf1c48e32f07d8820c705ff8e645f8afa690cca1544adba4ebfa067efdc88"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:baed37ea46d756aca2955e99525cc02d9181de67f25515c468856c38d52b5f3b"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:7663960f08cd5a2bb152f5ee3992e1af7690a64c0e26d31ba7b3ff5b2ee66337"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl", hash = "sha256:d8640fb4072d36b08e95a3a380ba65779d356b2fee8696afeb7794cf0902d0a1"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78778a3aa7aafb11e7ddca4e29f46bc5139131037ad628cc10936764282d6753"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b0111b27f2d5c820e7f2dbad7d48e3338c824e7ac4d2a12da3dc6061cc39c8e6"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:c66962ca7565605b355a9ed478292da628b8f18c0f2793021ca4425abf8b01e5"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:ba43cc34cce49cf2d4bc76401a754a81202d8aa926d0e2b79f0ee258cb15d3a4"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:ac56eb983edce27e7f51d05bc8dd820586c6e6be1c5216a6809b0c668bb312b8"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f44bd4b23a0e723bf8b10628288c2c7c335161d6840013d4d5de20e48551773b"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7c10f4654e5326ec14a46bcdeb2b685d4ada6911050aa8baaf3501e57024b804"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0de4971a89a762398006e844ae394bd46991f7c385d7a6a3b93ba229e6dac17e"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:e1402f0564a97d2a52310ae10a64d25bcef94f8dd643fcf5d310219d915484f7"},
|
||||||
|
{file = "ujson-5.10.0.tar.gz", hash = "sha256:b3cd8f3c5d8c7738257f1018880444f7b7d9b66232c64649f562d7ba86ad4bc1"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "urllib3"
|
name = "urllib3"
|
||||||
version = "2.2.1"
|
version = "2.2.1"
|
||||||
@@ -1999,13 +2310,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "werkzeug"
|
name = "werkzeug"
|
||||||
version = "3.0.2"
|
version = "3.0.3"
|
||||||
description = "The comprehensive WSGI web application library."
|
description = "The comprehensive WSGI web application library."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "werkzeug-3.0.2-py3-none-any.whl", hash = "sha256:3aac3f5da756f93030740bc235d3e09449efcf65f2f55e3602e1d851b8f48795"},
|
{file = "werkzeug-3.0.3-py3-none-any.whl", hash = "sha256:fc9645dc43e03e4d630d23143a04a7f947a9a3b5727cd535fdfe155a17cc48c8"},
|
||||||
{file = "werkzeug-3.0.2.tar.gz", hash = "sha256:e39b645a6ac92822588e7b39a692e7828724ceae0b0d702ef96701f90e70128d"},
|
{file = "werkzeug-3.0.3.tar.gz", hash = "sha256:097e5bfda9f0aba8da6b8545146def481d06aa7d3266e7448e2cccf67dd8bd18"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -2147,18 +2458,18 @@ multidict = ">=4.0"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zipp"
|
name = "zipp"
|
||||||
version = "3.18.1"
|
version = "3.18.2"
|
||||||
description = "Backport of pathlib-compatible object wrapper for zip files"
|
description = "Backport of pathlib-compatible object wrapper for zip files"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "zipp-3.18.1-py3-none-any.whl", hash = "sha256:206f5a15f2af3dbaee80769fb7dc6f249695e940acca08dfb2a4769fe61e538b"},
|
{file = "zipp-3.18.2-py3-none-any.whl", hash = "sha256:dce197b859eb796242b0622af1b8beb0a722d52aa2f57133ead08edd5bf5374e"},
|
||||||
{file = "zipp-3.18.1.tar.gz", hash = "sha256:2884ed22e7d8961de1c9a05142eb69a247f120291bc0206a00a7642f09b5b715"},
|
{file = "zipp-3.18.2.tar.gz", hash = "sha256:6278d9ddbcfb1f1089a88fde84481528b07b0e10474e09dcfe53dad4069fa059"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
|
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
|
||||||
testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
|
testing = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
|
471
envs/pydantic-v2/poetry.lock
generated
471
envs/pydantic-v2/poetry.lock
generated
@@ -1,4 +1,4 @@
|
|||||||
# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
|
# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "aiodns"
|
name = "aiodns"
|
||||||
@@ -234,13 +234,13 @@ tests-no-zope = ["attrs[tests-mypy]", "cloudpickle", "hypothesis", "pympler", "p
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "blinker"
|
name = "blinker"
|
||||||
version = "1.8.1"
|
version = "1.8.2"
|
||||||
description = "Fast, simple object-to-object and broadcast signaling"
|
description = "Fast, simple object-to-object and broadcast signaling"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "blinker-1.8.1-py3-none-any.whl", hash = "sha256:5f1cdeff423b77c31b89de0565cd03e5275a03028f44b2b15f912632a58cced6"},
|
{file = "blinker-1.8.2-py3-none-any.whl", hash = "sha256:1779309f71bf239144b9399d06ae925637cf6634cf6bd131104184531bf67c01"},
|
||||||
{file = "blinker-1.8.1.tar.gz", hash = "sha256:da44ec748222dcd0105ef975eed946da197d5bdf8bafb6aa92f5bc89da63fa25"},
|
{file = "blinker-1.8.2.tar.gz", hash = "sha256:8f77b09d3bf7c795e969e9486f39c2c5e9c39d4ee07424be2bc594ece9642d83"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -575,63 +575,63 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "coverage"
|
name = "coverage"
|
||||||
version = "7.5.0"
|
version = "7.5.1"
|
||||||
description = "Code coverage measurement for Python"
|
description = "Code coverage measurement for Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "coverage-7.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:432949a32c3e3f820af808db1833d6d1631664d53dd3ce487aa25d574e18ad1c"},
|
{file = "coverage-7.5.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0884920835a033b78d1c73b6d3bbcda8161a900f38a488829a83982925f6c2e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2bd7065249703cbeb6d4ce679c734bef0ee69baa7bff9724361ada04a15b7e3b"},
|
{file = "coverage-7.5.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:39afcd3d4339329c5f58de48a52f6e4e50f6578dd6099961cf22228feb25f38f"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bbfe6389c5522b99768a93d89aca52ef92310a96b99782973b9d11e80511f932"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4a7b0ceee8147444347da6a66be737c9d78f3353b0681715b668b72e79203e4a"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:39793731182c4be939b4be0cdecde074b833f6171313cf53481f869937129ed3"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a9ca3f2fae0088c3c71d743d85404cec8df9be818a005ea065495bedc33da35"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:85a5dbe1ba1bf38d6c63b6d2c42132d45cbee6d9f0c51b52c59aa4afba057517"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5fd215c0c7d7aab005221608a3c2b46f58c0285a819565887ee0b718c052aa4e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:357754dcdfd811462a725e7501a9b4556388e8ecf66e79df6f4b988fa3d0b39a"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:4bf0655ab60d754491004a5efd7f9cccefcc1081a74c9ef2da4735d6ee4a6223"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:a81eb64feded34f40c8986869a2f764f0fe2db58c0530d3a4afbcde50f314880"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:61c4bf1ba021817de12b813338c9be9f0ad5b1e781b9b340a6d29fc13e7c1b5e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:51431d0abbed3a868e967f8257c5faf283d41ec882f58413cf295a389bb22e58"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:db66fc317a046556a96b453a58eced5024af4582a8dbdc0c23ca4dbc0d5b3146"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-win32.whl", hash = "sha256:f609ebcb0242d84b7adeee2b06c11a2ddaec5464d21888b2c8255f5fd6a98ae4"},
|
{file = "coverage-7.5.1-cp310-cp310-win32.whl", hash = "sha256:b016ea6b959d3b9556cb401c55a37547135a587db0115635a443b2ce8f1c7228"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:6782cd6216fab5a83216cc39f13ebe30adfac2fa72688c5a4d8d180cd52e8f6a"},
|
{file = "coverage-7.5.1-cp310-cp310-win_amd64.whl", hash = "sha256:df4e745a81c110e7446b1cc8131bf986157770fa405fe90e15e850aaf7619bc8"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e768d870801f68c74c2b669fc909839660180c366501d4cc4b87efd6b0eee375"},
|
{file = "coverage-7.5.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:796a79f63eca8814ca3317a1ea443645c9ff0d18b188de470ed7ccd45ae79428"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:84921b10aeb2dd453247fd10de22907984eaf80901b578a5cf0bb1e279a587cb"},
|
{file = "coverage-7.5.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4fc84a37bfd98db31beae3c2748811a3fa72bf2007ff7902f68746d9757f3746"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:710c62b6e35a9a766b99b15cdc56d5aeda0914edae8bb467e9c355f75d14ee95"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6175d1a0559986c6ee3f7fccfc4a90ecd12ba0a383dcc2da30c2b9918d67d8a3"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c379cdd3efc0658e652a14112d51a7668f6bfca7445c5a10dee7eabecabba19d"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fc81d5878cd6274ce971e0a3a18a8803c3fe25457165314271cf78e3aae3aa2"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fea9d3ca80bcf17edb2c08a4704259dadac196fe5e9274067e7a20511fad1743"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:556cf1a7cbc8028cb60e1ff0be806be2eded2daf8129b8811c63e2b9a6c43bca"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:41327143c5b1d715f5f98a397608f90ab9ebba606ae4e6f3389c2145410c52b1"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:9981706d300c18d8b220995ad22627647be11a4276721c10911e0e9fa44c83e8"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:565b2e82d0968c977e0b0f7cbf25fd06d78d4856289abc79694c8edcce6eb2de"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d7fed867ee50edf1a0b4a11e8e5d0895150e572af1cd6d315d557758bfa9c057"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:cf3539007202ebfe03923128fedfdd245db5860a36810136ad95a564a2fdffff"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:ef48e2707fb320c8f139424a596f5b69955a85b178f15af261bab871873bb987"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-win32.whl", hash = "sha256:bf0b4b8d9caa8d64df838e0f8dcf68fb570c5733b726d1494b87f3da85db3a2d"},
|
{file = "coverage-7.5.1-cp311-cp311-win32.whl", hash = "sha256:9314d5678dcc665330df5b69c1e726a0e49b27df0461c08ca12674bcc19ef136"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:9c6384cc90e37cfb60435bbbe0488444e54b98700f727f16f64d8bfda0b84656"},
|
{file = "coverage-7.5.1-cp311-cp311-win_amd64.whl", hash = "sha256:5fa567e99765fe98f4e7d7394ce623e794d7cabb170f2ca2ac5a4174437e90dd"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:fed7a72d54bd52f4aeb6c6e951f363903bd7d70bc1cad64dd1f087980d309ab9"},
|
{file = "coverage-7.5.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b6cf3764c030e5338e7f61f95bd21147963cf6aa16e09d2f74f1fa52013c1206"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:cbe6581fcff7c8e262eb574244f81f5faaea539e712a058e6707a9d272fe5b64"},
|
{file = "coverage-7.5.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2ec92012fefebee89a6b9c79bc39051a6cb3891d562b9270ab10ecfdadbc0c34"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad97ec0da94b378e593ef532b980c15e377df9b9608c7c6da3506953182398af"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:16db7f26000a07efcf6aea00316f6ac57e7d9a96501e990a36f40c965ec7a95d"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bd4bacd62aa2f1a1627352fe68885d6ee694bdaebb16038b6e680f2924a9b2cc"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:beccf7b8a10b09c4ae543582c1319c6df47d78fd732f854ac68d518ee1fb97fa"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:adf032b6c105881f9d77fa17d9eebe0ad1f9bfb2ad25777811f97c5362aa07f2"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8748731ad392d736cc9ccac03c9845b13bb07d020a33423fa5b3a36521ac6e4e"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:4ba01d9ba112b55bfa4b24808ec431197bb34f09f66f7cb4fd0258ff9d3711b1"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7352b9161b33fd0b643ccd1f21f3a3908daaddf414f1c6cb9d3a2fd618bf2572"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:f0bfe42523893c188e9616d853c47685e1c575fe25f737adf473d0405dcfa7eb"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:7a588d39e0925f6a2bff87154752481273cdb1736270642aeb3635cb9b4cad07"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a9a7ef30a1b02547c1b23fa9a5564f03c9982fc71eb2ecb7f98c96d7a0db5cf2"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:68f962d9b72ce69ea8621f57551b2fa9c70509af757ee3b8105d4f51b92b41a7"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-win32.whl", hash = "sha256:3c2b77f295edb9fcdb6a250f83e6481c679335ca7e6e4a955e4290350f2d22a4"},
|
{file = "coverage-7.5.1-cp312-cp312-win32.whl", hash = "sha256:f152cbf5b88aaeb836127d920dd0f5e7edff5a66f10c079157306c4343d86c19"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:427e1e627b0963ac02d7c8730ca6d935df10280d230508c0ba059505e9233475"},
|
{file = "coverage-7.5.1-cp312-cp312-win_amd64.whl", hash = "sha256:5a5740d1fb60ddf268a3811bcd353de34eb56dc24e8f52a7f05ee513b2d4f596"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9dd88fce54abbdbf4c42fb1fea0e498973d07816f24c0e27a1ecaf91883ce69e"},
|
{file = "coverage-7.5.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:e2213def81a50519d7cc56ed643c9e93e0247f5bbe0d1247d15fa520814a7cd7"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a898c11dca8f8c97b467138004a30133974aacd572818c383596f8d5b2eb04a9"},
|
{file = "coverage-7.5.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:5037f8fcc2a95b1f0e80585bd9d1ec31068a9bcb157d9750a172836e98bc7a90"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:07dfdd492d645eea1bd70fb1d6febdcf47db178b0d99161d8e4eed18e7f62fe7"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c3721c2c9e4c4953a41a26c14f4cef64330392a6d2d675c8b1db3b645e31f0e"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d3d117890b6eee85887b1eed41eefe2e598ad6e40523d9f94c4c4b213258e4a4"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ca498687ca46a62ae590253fba634a1fe9836bc56f626852fb2720f334c9e4e5"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6afd2e84e7da40fe23ca588379f815fb6dbbb1b757c883935ed11647205111cb"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0cdcbc320b14c3e5877ee79e649677cb7d89ef588852e9583e6b24c2e5072661"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:a9960dd1891b2ddf13a7fe45339cd59ecee3abb6b8326d8b932d0c5da208104f"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:57e0204b5b745594e5bc14b9b50006da722827f0b8c776949f1135677e88d0b8"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:ced268e82af993d7801a9db2dbc1d2322e786c5dc76295d8e89473d46c6b84d4"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:8fe7502616b67b234482c3ce276ff26f39ffe88adca2acf0261df4b8454668b4"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:e7c211f25777746d468d76f11719e64acb40eed410d81c26cefac641975beb88"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:9e78295f4144f9dacfed4f92935fbe1780021247c2fabf73a819b17f0ccfff8d"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-win32.whl", hash = "sha256:262fffc1f6c1a26125d5d573e1ec379285a3723363f3bd9c83923c9593a2ac25"},
|
{file = "coverage-7.5.1-cp38-cp38-win32.whl", hash = "sha256:1434e088b41594baa71188a17533083eabf5609e8e72f16ce8c186001e6b8c41"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-win_amd64.whl", hash = "sha256:eed462b4541c540d63ab57b3fc69e7d8c84d5957668854ee4e408b50e92ce26a"},
|
{file = "coverage-7.5.1-cp38-cp38-win_amd64.whl", hash = "sha256:0646599e9b139988b63704d704af8e8df7fa4cbc4a1f33df69d97f36cb0a38de"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d0194d654e360b3e6cc9b774e83235bae6b9b2cac3be09040880bb0e8a88f4a1"},
|
{file = "coverage-7.5.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4cc37def103a2725bc672f84bd939a6fe4522310503207aae4d56351644682f1"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:33c020d3322662e74bc507fb11488773a96894aa82a622c35a5a28673c0c26f5"},
|
{file = "coverage-7.5.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:fc0b4d8bfeabd25ea75e94632f5b6e047eef8adaed0c2161ada1e922e7f7cece"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbdf2cae14a06827bec50bd58e49249452d211d9caddd8bd80e35b53cb04631"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d0a0f5e06881ecedfe6f3dd2f56dcb057b6dbeb3327fd32d4b12854df36bf26"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3235d7c781232e525b0761730e052388a01548bd7f67d0067a253887c6e8df46"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9735317685ba6ec7e3754798c8871c2f49aa5e687cc794a0b1d284b2389d1bd5"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2de4e546f0ec4b2787d625e0b16b78e99c3e21bc1722b4977c0dddf11ca84e"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d21918e9ef11edf36764b93101e2ae8cc82aa5efdc7c5a4e9c6c35a48496d601"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:4d0e206259b73af35c4ec1319fd04003776e11e859936658cb6ceffdeba0f5be"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c3e757949f268364b96ca894b4c342b41dc6f8f8b66c37878aacef5930db61be"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:2055c4fb9a6ff624253d432aa471a37202cd8f458c033d6d989be4499aed037b"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:79afb6197e2f7f60c4824dd4b2d4c2ec5801ceb6ba9ce5d2c3080e5660d51a4f"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:075299460948cd12722a970c7eae43d25d37989da682997687b34ae6b87c0ef0"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:d1d0d98d95dd18fe29dc66808e1accf59f037d5716f86a501fc0256455219668"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-win32.whl", hash = "sha256:280132aada3bc2f0fac939a5771db4fbb84f245cb35b94fae4994d4c1f80dae7"},
|
{file = "coverage-7.5.1-cp39-cp39-win32.whl", hash = "sha256:1cc0fe9b0b3a8364093c53b0b4c0c2dd4bb23acbec4c9240b5f284095ccf7981"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:c58536f6892559e030e6924896a44098bc1290663ea12532c78cef71d0df8493"},
|
{file = "coverage-7.5.1-cp39-cp39-win_amd64.whl", hash = "sha256:dde0070c40ea8bb3641e811c1cfbf18e265d024deff6de52c5950677a8fb1e0f"},
|
||||||
{file = "coverage-7.5.0-pp38.pp39.pp310-none-any.whl", hash = "sha256:2b57780b51084d5223eee7b59f0d4911c31c16ee5aa12737c7a02455829ff067"},
|
{file = "coverage-7.5.1-pp38.pp39.pp310-none-any.whl", hash = "sha256:6537e7c10cc47c595828b8a8be04c72144725c383c4702703ff4e42e44577312"},
|
||||||
{file = "coverage-7.5.0.tar.gz", hash = "sha256:cf62d17310f34084c59c01e027259076479128d11e4661bb6c9acb38c5e19bb8"},
|
{file = "coverage-7.5.1.tar.gz", hash = "sha256:54de9ef3a9da981f7af93eafde4ede199e0846cd819eb27c88e2b712aae9708c"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -656,6 +656,41 @@ coverage = ">=7,<8"
|
|||||||
importlib_metadata = {version = "*", markers = "python_version < \"3.10\""}
|
importlib_metadata = {version = "*", markers = "python_version < \"3.10\""}
|
||||||
packaging = ">=20.4"
|
packaging = ">=20.4"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "dnspython"
|
||||||
|
version = "2.6.1"
|
||||||
|
description = "DNS toolkit"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "dnspython-2.6.1-py3-none-any.whl", hash = "sha256:5ef3b9680161f6fa89daf8ad451b5f1a33b18ae8a1c6778cdf4b43f08c0a6e50"},
|
||||||
|
{file = "dnspython-2.6.1.tar.gz", hash = "sha256:e8f0f9c23a7b7cb99ded64e6c3a6f3e701d78f50c55e002b839dea7225cff7cc"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
dev = ["black (>=23.1.0)", "coverage (>=7.0)", "flake8 (>=7)", "mypy (>=1.8)", "pylint (>=3)", "pytest (>=7.4)", "pytest-cov (>=4.1.0)", "sphinx (>=7.2.0)", "twine (>=4.0.0)", "wheel (>=0.42.0)"]
|
||||||
|
dnssec = ["cryptography (>=41)"]
|
||||||
|
doh = ["h2 (>=4.1.0)", "httpcore (>=1.0.0)", "httpx (>=0.26.0)"]
|
||||||
|
doq = ["aioquic (>=0.9.25)"]
|
||||||
|
idna = ["idna (>=3.6)"]
|
||||||
|
trio = ["trio (>=0.23)"]
|
||||||
|
wmi = ["wmi (>=1.5.1)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "email-validator"
|
||||||
|
version = "2.1.1"
|
||||||
|
description = "A robust email address syntax and deliverability validation library."
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "email_validator-2.1.1-py3-none-any.whl", hash = "sha256:97d882d174e2a65732fb43bfce81a3a834cbc1bde8bf419e30ef5ea976370a05"},
|
||||||
|
{file = "email_validator-2.1.1.tar.gz", hash = "sha256:200a70680ba08904be6d1eef729205cc0d687634399a5924d842533efb824b84"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
dnspython = ">=2.0.0"
|
||||||
|
idna = ">=2.0.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "exceptiongroup"
|
name = "exceptiongroup"
|
||||||
version = "1.2.1"
|
version = "1.2.1"
|
||||||
@@ -686,23 +721,48 @@ testing = ["hatch", "pre-commit", "pytest", "tox"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fastapi"
|
name = "fastapi"
|
||||||
version = "0.110.3"
|
version = "0.111.0"
|
||||||
description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
|
description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "fastapi-0.110.3-py3-none-any.whl", hash = "sha256:fd7600612f755e4050beb74001310b5a7e1796d149c2ee363124abdfa0289d32"},
|
{file = "fastapi-0.111.0-py3-none-any.whl", hash = "sha256:97ecbf994be0bcbdadedf88c3150252bed7b2087075ac99735403b1b76cc8fc0"},
|
||||||
{file = "fastapi-0.110.3.tar.gz", hash = "sha256:555700b0159379e94fdbfc6bb66a0f1c43f4cf7060f25239af3d84b63a656626"},
|
{file = "fastapi-0.111.0.tar.gz", hash = "sha256:b9db9dd147c91cb8b769f7183535773d8741dd46f9dc6676cd82eab510228cd7"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
|
email_validator = ">=2.0.0"
|
||||||
|
fastapi-cli = ">=0.0.2"
|
||||||
|
httpx = ">=0.23.0"
|
||||||
|
jinja2 = ">=2.11.2"
|
||||||
|
orjson = ">=3.2.1"
|
||||||
pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0 || >2.0.0,<2.0.1 || >2.0.1,<2.1.0 || >2.1.0,<3.0.0"
|
pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0 || >2.0.0,<2.0.1 || >2.0.1,<2.1.0 || >2.1.0,<3.0.0"
|
||||||
|
python-multipart = ">=0.0.7"
|
||||||
starlette = ">=0.37.2,<0.38.0"
|
starlette = ">=0.37.2,<0.38.0"
|
||||||
typing-extensions = ">=4.8.0"
|
typing-extensions = ">=4.8.0"
|
||||||
|
ujson = ">=4.0.1,<4.0.2 || >4.0.2,<4.1.0 || >4.1.0,<4.2.0 || >4.2.0,<4.3.0 || >4.3.0,<5.0.0 || >5.0.0,<5.1.0 || >5.1.0"
|
||||||
|
uvicorn = {version = ">=0.12.0", extras = ["standard"]}
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
all = ["email_validator (>=2.0.0)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)", "jinja2 (>=2.11.2)", "orjson (>=3.2.1)", "pydantic-extra-types (>=2.0.0)", "pydantic-settings (>=2.0.0)", "python-multipart (>=0.0.7)", "pyyaml (>=5.3.1)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0)", "uvicorn[standard] (>=0.12.0)"]
|
all = ["email_validator (>=2.0.0)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)", "jinja2 (>=2.11.2)", "orjson (>=3.2.1)", "pydantic-extra-types (>=2.0.0)", "pydantic-settings (>=2.0.0)", "python-multipart (>=0.0.7)", "pyyaml (>=5.3.1)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0)", "uvicorn[standard] (>=0.12.0)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "fastapi-cli"
|
||||||
|
version = "0.0.4"
|
||||||
|
description = "Run and manage FastAPI apps from the command line with FastAPI CLI. 🚀"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "fastapi_cli-0.0.4-py3-none-any.whl", hash = "sha256:a2552f3a7ae64058cdbb530be6fa6dbfc975dc165e4fa66d224c3d396e25e809"},
|
||||||
|
{file = "fastapi_cli-0.0.4.tar.gz", hash = "sha256:e2e9ffaffc1f7767f488d6da34b6f5a377751c996f397902eb6abb99a67bde32"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
typer = ">=0.12.3"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
standard = ["fastapi", "uvicorn[standard] (>=0.15.0)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "flask"
|
name = "flask"
|
||||||
version = "3.0.3"
|
version = "3.0.3"
|
||||||
@@ -1033,13 +1093,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jinja2"
|
name = "jinja2"
|
||||||
version = "3.1.3"
|
version = "3.1.4"
|
||||||
description = "A very fast and expressive template engine."
|
description = "A very fast and expressive template engine."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.7"
|
||||||
files = [
|
files = [
|
||||||
{file = "Jinja2-3.1.3-py3-none-any.whl", hash = "sha256:7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa"},
|
{file = "jinja2-3.1.4-py3-none-any.whl", hash = "sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d"},
|
||||||
{file = "Jinja2-3.1.3.tar.gz", hash = "sha256:ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90"},
|
{file = "jinja2-3.1.4.tar.gz", hash = "sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1066,6 +1126,30 @@ win32-setctime = {version = ">=1.0.0", markers = "sys_platform == \"win32\""}
|
|||||||
[package.extras]
|
[package.extras]
|
||||||
dev = ["Sphinx (==7.2.5)", "colorama (==0.4.5)", "colorama (==0.4.6)", "exceptiongroup (==1.1.3)", "freezegun (==1.1.0)", "freezegun (==1.2.2)", "mypy (==v0.910)", "mypy (==v0.971)", "mypy (==v1.4.1)", "mypy (==v1.5.1)", "pre-commit (==3.4.0)", "pytest (==6.1.2)", "pytest (==7.4.0)", "pytest-cov (==2.12.1)", "pytest-cov (==4.1.0)", "pytest-mypy-plugins (==1.9.3)", "pytest-mypy-plugins (==3.0.0)", "sphinx-autobuild (==2021.3.14)", "sphinx-rtd-theme (==1.3.0)", "tox (==3.27.1)", "tox (==4.11.0)"]
|
dev = ["Sphinx (==7.2.5)", "colorama (==0.4.5)", "colorama (==0.4.6)", "exceptiongroup (==1.1.3)", "freezegun (==1.1.0)", "freezegun (==1.2.2)", "mypy (==v0.910)", "mypy (==v0.971)", "mypy (==v1.4.1)", "mypy (==v1.5.1)", "pre-commit (==3.4.0)", "pytest (==6.1.2)", "pytest (==7.4.0)", "pytest-cov (==2.12.1)", "pytest-cov (==4.1.0)", "pytest-mypy-plugins (==1.9.3)", "pytest-mypy-plugins (==3.0.0)", "sphinx-autobuild (==2021.3.14)", "sphinx-rtd-theme (==1.3.0)", "tox (==3.27.1)", "tox (==4.11.0)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "markdown-it-py"
|
||||||
|
version = "3.0.0"
|
||||||
|
description = "Python port of markdown-it. Markdown parsing, done right!"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb"},
|
||||||
|
{file = "markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
mdurl = ">=0.1,<1.0"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
benchmarking = ["psutil", "pytest", "pytest-benchmark"]
|
||||||
|
code-style = ["pre-commit (>=3.0,<4.0)"]
|
||||||
|
compare = ["commonmark (>=0.9,<1.0)", "markdown (>=3.4,<4.0)", "mistletoe (>=1.0,<2.0)", "mistune (>=2.0,<3.0)", "panflute (>=2.3,<3.0)"]
|
||||||
|
linkify = ["linkify-it-py (>=1,<3)"]
|
||||||
|
plugins = ["mdit-py-plugins"]
|
||||||
|
profiling = ["gprof2dot"]
|
||||||
|
rtd = ["jupyter_sphinx", "mdit-py-plugins", "myst-parser", "pyyaml", "sphinx", "sphinx-copybutton", "sphinx-design", "sphinx_book_theme"]
|
||||||
|
testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "markupsafe"
|
name = "markupsafe"
|
||||||
version = "2.1.5"
|
version = "2.1.5"
|
||||||
@@ -1135,6 +1219,17 @@ files = [
|
|||||||
{file = "MarkupSafe-2.1.5.tar.gz", hash = "sha256:d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b"},
|
{file = "MarkupSafe-2.1.5.tar.gz", hash = "sha256:d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "mdurl"
|
||||||
|
version = "0.1.2"
|
||||||
|
description = "Markdown URL utilities"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
files = [
|
||||||
|
{file = "mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"},
|
||||||
|
{file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "multidict"
|
name = "multidict"
|
||||||
version = "6.0.5"
|
version = "6.0.5"
|
||||||
@@ -1258,7 +1353,7 @@ url = "../test"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nonebot2"
|
name = "nonebot2"
|
||||||
version = "2.3.0"
|
version = "2.3.1"
|
||||||
description = "An asynchronous python bot framework."
|
description = "An asynchronous python bot framework."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = "^3.9"
|
python-versions = "^3.9"
|
||||||
@@ -1310,6 +1405,61 @@ nonebot2 = ">=2.2.0,<3.0.0"
|
|||||||
pytest = ">=7.0.0,<9.0.0"
|
pytest = ">=7.0.0,<9.0.0"
|
||||||
typing-extensions = ">=4.0.0,<5.0.0"
|
typing-extensions = ">=4.0.0,<5.0.0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "orjson"
|
||||||
|
version = "3.10.3"
|
||||||
|
description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:9fb6c3f9f5490a3eb4ddd46fc1b6eadb0d6fc16fb3f07320149c3286a1409dd8"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:252124b198662eee80428f1af8c63f7ff077c88723fe206a25df8dc57a57b1fa"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9f3e87733823089a338ef9bbf363ef4de45e5c599a9bf50a7a9b82e86d0228da"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c8334c0d87103bb9fbbe59b78129f1f40d1d1e8355bbed2ca71853af15fa4ed3"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1952c03439e4dce23482ac846e7961f9d4ec62086eb98ae76d97bd41d72644d7"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:c0403ed9c706dcd2809f1600ed18f4aae50be263bd7112e54b50e2c2bc3ebd6d"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:382e52aa4270a037d41f325e7d1dfa395b7de0c367800b6f337d8157367bf3a7"},
|
||||||
|
{file = "orjson-3.10.3-cp310-none-win32.whl", hash = "sha256:be2aab54313752c04f2cbaab4515291ef5af8c2256ce22abc007f89f42f49109"},
|
||||||
|
{file = "orjson-3.10.3-cp310-none-win_amd64.whl", hash = "sha256:416b195f78ae461601893f482287cee1e3059ec49b4f99479aedf22a20b1098b"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:73100d9abbbe730331f2242c1fc0bcb46a3ea3b4ae3348847e5a141265479700"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:544a12eee96e3ab828dbfcb4d5a0023aa971b27143a1d35dc214c176fdfb29b3"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:520de5e2ef0b4ae546bea25129d6c7c74edb43fc6cf5213f511a927f2b28148b"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ccaa0a401fc02e8828a5bedfd80f8cd389d24f65e5ca3954d72c6582495b4bcf"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a7bc9e8bc11bac40f905640acd41cbeaa87209e7e1f57ade386da658092dc16"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:3582b34b70543a1ed6944aca75e219e1192661a63da4d039d088a09c67543b08"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1c23dfa91481de880890d17aa7b91d586a4746a4c2aa9a145bebdbaf233768d5"},
|
||||||
|
{file = "orjson-3.10.3-cp311-none-win32.whl", hash = "sha256:1770e2a0eae728b050705206d84eda8b074b65ee835e7f85c919f5705b006c9b"},
|
||||||
|
{file = "orjson-3.10.3-cp311-none-win_amd64.whl", hash = "sha256:93433b3c1f852660eb5abdc1f4dd0ced2be031ba30900433223b28ee0140cde5"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:a39aa73e53bec8d410875683bfa3a8edf61e5a1c7bb4014f65f81d36467ea098"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0943a96b3fa09bee1afdfccc2cb236c9c64715afa375b2af296c73d91c23eab2"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e852baafceff8da3c9defae29414cc8513a1586ad93e45f27b89a639c68e8176"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:18566beb5acd76f3769c1d1a7ec06cdb81edc4d55d2765fb677e3eaa10fa99e0"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1bd2218d5a3aa43060efe649ec564ebedec8ce6ae0a43654b81376216d5ebd42"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:cf20465e74c6e17a104ecf01bf8cd3b7b252565b4ccee4548f18b012ff2f8069"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ba7f67aa7f983c4345eeda16054a4677289011a478ca947cd69c0a86ea45e534"},
|
||||||
|
{file = "orjson-3.10.3-cp312-none-win32.whl", hash = "sha256:17e0713fc159abc261eea0f4feda611d32eabc35708b74bef6ad44f6c78d5ea0"},
|
||||||
|
{file = "orjson-3.10.3-cp312-none-win_amd64.whl", hash = "sha256:4c895383b1ec42b017dd2c75ae8a5b862fc489006afde06f14afbdd0309b2af0"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:be2719e5041e9fb76c8c2c06b9600fe8e8584e6980061ff88dcbc2691a16d20d"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cb0175a5798bdc878956099f5c54b9837cb62cfbf5d0b86ba6d77e43861bcec2"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:978be58a68ade24f1af7758626806e13cff7748a677faf95fbb298359aa1e20d"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:16bda83b5c61586f6f788333d3cf3ed19015e3b9019188c56983b5a299210eb5"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4ad1f26bea425041e0a1adad34630c4825a9e3adec49079b1fb6ac8d36f8b754"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:9e253498bee561fe85d6325ba55ff2ff08fb5e7184cd6a4d7754133bd19c9195"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:0a62f9968bab8a676a164263e485f30a0b748255ee2f4ae49a0224be95f4532b"},
|
||||||
|
{file = "orjson-3.10.3-cp38-none-win32.whl", hash = "sha256:8d0b84403d287d4bfa9bf7d1dc298d5c1c5d9f444f3737929a66f2fe4fb8f134"},
|
||||||
|
{file = "orjson-3.10.3-cp38-none-win_amd64.whl", hash = "sha256:8bc7a4df90da5d535e18157220d7915780d07198b54f4de0110eca6b6c11e290"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:9059d15c30e675a58fdcd6f95465c1522b8426e092de9fff20edebfdc15e1cb0"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8d40c7f7938c9c2b934b297412c067936d0b54e4b8ab916fd1a9eb8f54c02294"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d4a654ec1de8fdaae1d80d55cee65893cb06494e124681ab335218be6a0691e7"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:831c6ef73f9aa53c5f40ae8f949ff7681b38eaddb6904aab89dca4d85099cb78"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:99b880d7e34542db89f48d14ddecbd26f06838b12427d5a25d71baceb5ba119d"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:2e5e176c994ce4bd434d7aafb9ecc893c15f347d3d2bbd8e7ce0b63071c52e25"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:b69a58a37dab856491bf2d3bbf259775fdce262b727f96aafbda359cb1d114d8"},
|
||||||
|
{file = "orjson-3.10.3-cp39-none-win32.whl", hash = "sha256:b8d4d1a6868cde356f1402c8faeb50d62cee765a1f7ffcfd6de732ab0581e063"},
|
||||||
|
{file = "orjson-3.10.3-cp39-none-win_amd64.whl", hash = "sha256:5102f50c5fc46d94f2033fe00d392588564378260d64377aec702f21a7a22912"},
|
||||||
|
{file = "orjson-3.10.3.tar.gz", hash = "sha256:2b166507acae7ba2f7c315dcf185a9111ad5e992ac81f2d507aac39193c2c818"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "packaging"
|
name = "packaging"
|
||||||
version = "24.0"
|
version = "24.0"
|
||||||
@@ -1534,6 +1684,20 @@ files = [
|
|||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0"
|
typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pygments"
|
||||||
|
version = "2.18.0"
|
||||||
|
description = "Pygments is a syntax highlighting package written in Python."
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "pygments-2.18.0-py3-none-any.whl", hash = "sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a"},
|
||||||
|
{file = "pygments-2.18.0.tar.gz", hash = "sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
windows-terminal = ["colorama (>=0.4.6)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pygtrie"
|
name = "pygtrie"
|
||||||
version = "2.5.0"
|
version = "2.5.0"
|
||||||
@@ -1547,13 +1711,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pytest"
|
name = "pytest"
|
||||||
version = "8.2.0"
|
version = "8.2.1"
|
||||||
description = "pytest: simple powerful testing with Python"
|
description = "pytest: simple powerful testing with Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "pytest-8.2.0-py3-none-any.whl", hash = "sha256:1733f0620f6cda4095bbf0d9ff8022486e91892245bb9e7d5542c018f612f233"},
|
{file = "pytest-8.2.1-py3-none-any.whl", hash = "sha256:faccc5d332b8c3719f40283d0d44aa5cf101cec36f88cde9ed8f2bc0538612b1"},
|
||||||
{file = "pytest-8.2.0.tar.gz", hash = "sha256:d507d4482197eac0ba2bae2e9babf0672eb333017bcedaa5fb1a3d42c1174b3f"},
|
{file = "pytest-8.2.1.tar.gz", hash = "sha256:5046e5b46d8e4cac199c373041f26be56fdb81eb4e67dc11d4e10811fc3408fd"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1569,13 +1733,13 @@ dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pytest-asyncio"
|
name = "pytest-asyncio"
|
||||||
version = "0.23.6"
|
version = "0.23.7"
|
||||||
description = "Pytest support for asyncio"
|
description = "Pytest support for asyncio"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "pytest-asyncio-0.23.6.tar.gz", hash = "sha256:ffe523a89c1c222598c76856e76852b787504ddb72dd5d9b6617ffa8aa2cde5f"},
|
{file = "pytest_asyncio-0.23.7-py3-none-any.whl", hash = "sha256:009b48127fbe44518a547bddd25611551b0e43ccdbf1e67d12479f569832c20b"},
|
||||||
{file = "pytest_asyncio-0.23.6-py3-none-any.whl", hash = "sha256:68516fdd1018ac57b846c9846b954f0393b26f094764a28c955eabb0536a4e8a"},
|
{file = "pytest_asyncio-0.23.7.tar.gz", hash = "sha256:5f5c72948f4c49e7db4f29f2521d4031f1c27f86e57b046126654083d4770268"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1637,6 +1801,20 @@ files = [
|
|||||||
[package.extras]
|
[package.extras]
|
||||||
cli = ["click (>=5.0)"]
|
cli = ["click (>=5.0)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "python-multipart"
|
||||||
|
version = "0.0.9"
|
||||||
|
description = "A streaming multipart parser for Python"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "python_multipart-0.0.9-py3-none-any.whl", hash = "sha256:97ca7b8ea7b05f977dc3849c3ba99d51689822fab725c3703af7c866a0c2b215"},
|
||||||
|
{file = "python_multipart-0.0.9.tar.gz", hash = "sha256:03f54688c663f1b7977105f021043b0793151e4cb1c1a9d4a11fc13d622c4026"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
dev = ["atomicwrites (==1.4.1)", "attrs (==23.2.0)", "coverage (==7.4.1)", "hatch", "invoke (==2.2.0)", "more-itertools (==10.2.0)", "pbr (==6.0.0)", "pluggy (==1.4.0)", "py (==1.11.0)", "pytest (==8.0.0)", "pytest-cov (==4.1.0)", "pytest-timeout (==2.2.0)", "pyyaml (==6.0.1)", "ruff (==0.2.1)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pyyaml"
|
name = "pyyaml"
|
||||||
version = "6.0.1"
|
version = "6.0.1"
|
||||||
@@ -1699,13 +1877,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "quart"
|
name = "quart"
|
||||||
version = "0.19.5"
|
version = "0.19.6"
|
||||||
description = "A Python ASGI web microframework with the same API as Flask"
|
description = "A Python ASGI web microframework with the same API as Flask"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "quart-0.19.5-py3-none-any.whl", hash = "sha256:581d959bda40d3c45500c50007a6451a157fd381c70d3556811bdd334adb9657"},
|
{file = "quart-0.19.6-py3-none-any.whl", hash = "sha256:f9092310f4eb120903da692a5e4354f05d48c28ca7ec3054d3d94dd862412c58"},
|
||||||
{file = "quart-0.19.5.tar.gz", hash = "sha256:fbe3cff25cd18b5c0e8d82bbeeaa43d78f35e5221ca5c50bb0b7c20255c87ab8"},
|
{file = "quart-0.19.6.tar.gz", hash = "sha256:89ddda6da24300a5ea4f21e4582d5e89bc8ea678e724e0b747767143401e4558"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1746,6 +1924,35 @@ urllib3 = ">=1.21.1,<3"
|
|||||||
socks = ["PySocks (>=1.5.6,!=1.5.7)"]
|
socks = ["PySocks (>=1.5.6,!=1.5.7)"]
|
||||||
use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
|
use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rich"
|
||||||
|
version = "13.7.1"
|
||||||
|
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7.0"
|
||||||
|
files = [
|
||||||
|
{file = "rich-13.7.1-py3-none-any.whl", hash = "sha256:4edbae314f59eb482f54e9e30bf00d33350aaa94f4bfcd4e9e3110e64d0d7222"},
|
||||||
|
{file = "rich-13.7.1.tar.gz", hash = "sha256:9be308cb1fe2f1f57d67ce99e95af38a1e2bc71ad9813b0e247cf7ffbcc3a432"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
markdown-it-py = ">=2.2.0"
|
||||||
|
pygments = ">=2.13.0,<3.0.0"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
jupyter = ["ipywidgets (>=7.5.1,<9)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "shellingham"
|
||||||
|
version = "1.5.4"
|
||||||
|
description = "Tool to Detect Surrounding Shell"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
files = [
|
||||||
|
{file = "shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686"},
|
||||||
|
{file = "shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sniffio"
|
name = "sniffio"
|
||||||
version = "1.3.1"
|
version = "1.3.1"
|
||||||
@@ -1800,6 +2007,23 @@ files = [
|
|||||||
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
|
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "typer"
|
||||||
|
version = "0.12.3"
|
||||||
|
description = "Typer, build great CLIs. Easy to code. Based on Python type hints."
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
files = [
|
||||||
|
{file = "typer-0.12.3-py3-none-any.whl", hash = "sha256:070d7ca53f785acbccba8e7d28b08dcd88f79f1fbda035ade0aecec71ca5c914"},
|
||||||
|
{file = "typer-0.12.3.tar.gz", hash = "sha256:49e73131481d804288ef62598d97a1ceef3058905aa536a1134f90891ba35482"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
click = ">=8.0.0"
|
||||||
|
rich = ">=10.11.0"
|
||||||
|
shellingham = ">=1.3.0"
|
||||||
|
typing-extensions = ">=3.7.4.3"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typing-extensions"
|
name = "typing-extensions"
|
||||||
version = "4.11.0"
|
version = "4.11.0"
|
||||||
@@ -1811,6 +2035,93 @@ files = [
|
|||||||
{file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"},
|
{file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ujson"
|
||||||
|
version = "5.10.0"
|
||||||
|
description = "Ultra fast JSON encoder and decoder for Python"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2601aa9ecdbee1118a1c2065323bda35e2c5a2cf0797ef4522d485f9d3ef65bd"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:348898dd702fc1c4f1051bc3aacbf894caa0927fe2c53e68679c073375f732cf"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22cffecf73391e8abd65ef5f4e4dd523162a3399d5e84faa6aebbf9583df86d6"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26b0e2d2366543c1bb4fbd457446f00b0187a2bddf93148ac2da07a53fe51569"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:caf270c6dba1be7a41125cd1e4fc7ba384bf564650beef0df2dd21a00b7f5770"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a245d59f2ffe750446292b0094244df163c3dc96b3ce152a2c837a44e7cda9d1"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:94a87f6e151c5f483d7d54ceef83b45d3a9cca7a9cb453dbdbb3f5a6f64033f5"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:29b443c4c0a113bcbb792c88bea67b675c7ca3ca80c3474784e08bba01c18d51"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-win32.whl", hash = "sha256:c18610b9ccd2874950faf474692deee4223a994251bc0a083c114671b64e6518"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:924f7318c31874d6bb44d9ee1900167ca32aa9b69389b98ecbde34c1698a250f"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a5b366812c90e69d0f379a53648be10a5db38f9d4ad212b60af00bd4048d0f00"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:502bf475781e8167f0f9d0e41cd32879d120a524b22358e7f205294224c71126"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5b91b5d0d9d283e085e821651184a647699430705b15bf274c7896f23fe9c9d8"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:129e39af3a6d85b9c26d5577169c21d53821d8cf68e079060602e861c6e5da1b"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f77b74475c462cb8b88680471193064d3e715c7c6074b1c8c412cb526466efe9"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7ec0ca8c415e81aa4123501fee7f761abf4b7f386aad348501a26940beb1860f"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ab13a2a9e0b2865a6c6db9271f4b46af1c7476bfd51af1f64585e919b7c07fd4"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:57aaf98b92d72fc70886b5a0e1a1ca52c2320377360341715dd3933a18e827b1"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-win32.whl", hash = "sha256:2987713a490ceb27edff77fb184ed09acdc565db700ee852823c3dc3cffe455f"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:f00ea7e00447918ee0eff2422c4add4c5752b1b60e88fcb3c067d4a21049a720"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:98ba15d8cbc481ce55695beee9f063189dce91a4b08bc1d03e7f0152cd4bbdd5"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a9d2edbf1556e4f56e50fab7d8ff993dbad7f54bac68eacdd27a8f55f433578e"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6627029ae4f52d0e1a2451768c2c37c0c814ffc04f796eb36244cf16b8e57043"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f8ccb77b3e40b151e20519c6ae6d89bfe3f4c14e8e210d910287f778368bb3d1"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3caf9cd64abfeb11a3b661329085c5e167abbe15256b3b68cb5d914ba7396f3"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6e32abdce572e3a8c3d02c886c704a38a1b015a1fb858004e03d20ca7cecbb21"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a65b6af4d903103ee7b6f4f5b85f1bfd0c90ba4eeac6421aae436c9988aa64a2"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:604a046d966457b6cdcacc5aa2ec5314f0e8c42bae52842c1e6fa02ea4bda42e"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-win32.whl", hash = "sha256:6dea1c8b4fc921bf78a8ff00bbd2bfe166345f5536c510671bccececb187c80e"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:38665e7d8290188b1e0d57d584eb8110951a9591363316dd41cf8686ab1d0abc"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-macosx_10_9_x86_64.whl", hash = "sha256:618efd84dc1acbd6bff8eaa736bb6c074bfa8b8a98f55b61c38d4ca2c1f7f287"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:38d5d36b4aedfe81dfe251f76c0467399d575d1395a1755de391e58985ab1c2e"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:67079b1f9fb29ed9a2914acf4ef6c02844b3153913eb735d4bf287ee1db6e557"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7d0e0ceeb8fe2468c70ec0c37b439dd554e2aa539a8a56365fd761edb418988"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:59e02cd37bc7c44d587a0ba45347cc815fb7a5fe48de16bf05caa5f7d0d2e816"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:2a890b706b64e0065f02577bf6d8ca3b66c11a5e81fb75d757233a38c07a1f20"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:621e34b4632c740ecb491efc7f1fcb4f74b48ddb55e65221995e74e2d00bbff0"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:b9500e61fce0cfc86168b248104e954fead61f9be213087153d272e817ec7b4f"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-win32.whl", hash = "sha256:4c4fc16f11ac1612f05b6f5781b384716719547e142cfd67b65d035bd85af165"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:4573fd1695932d4f619928fd09d5d03d917274381649ade4328091ceca175539"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:a984a3131da7f07563057db1c3020b1350a3e27a8ec46ccbfbf21e5928a43050"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:73814cd1b9db6fc3270e9d8fe3b19f9f89e78ee9d71e8bd6c9a626aeaeaf16bd"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:61e1591ed9376e5eddda202ec229eddc56c612b61ac6ad07f96b91460bb6c2fb"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2c75269f8205b2690db4572a4a36fe47cd1338e4368bc73a7a0e48789e2e35a"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7223f41e5bf1f919cd8d073e35b229295aa8e0f7b5de07ed1c8fddac63a6bc5d"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:d4dc2fd6b3067c0782e7002ac3b38cf48608ee6366ff176bbd02cf969c9c20fe"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:232cc85f8ee3c454c115455195a205074a56ff42608fd6b942aa4c378ac14dd7"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:cc6139531f13148055d691e442e4bc6601f6dba1e6d521b1585d4788ab0bfad4"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-win32.whl", hash = "sha256:e7ce306a42b6b93ca47ac4a3b96683ca554f6d35dd8adc5acfcd55096c8dfcb8"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-win_amd64.whl", hash = "sha256:e82d4bb2138ab05e18f089a83b6564fee28048771eb63cdecf4b9b549de8a2cc"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:dfef2814c6b3291c3c5f10065f745a1307d86019dbd7ea50e83504950136ed5b"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4734ee0745d5928d0ba3a213647f1c4a74a2a28edc6d27b2d6d5bd9fa4319e27"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d47ebb01bd865fdea43da56254a3930a413f0c5590372a1241514abae8aa7c76"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dee5e97c2496874acbf1d3e37b521dd1f307349ed955e62d1d2f05382bc36dd5"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7490655a2272a2d0b072ef16b0b58ee462f4973a8f6bbe64917ce5e0a256f9c0"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:ba17799fcddaddf5c1f75a4ba3fd6441f6a4f1e9173f8a786b42450851bd74f1"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:2aff2985cef314f21d0fecc56027505804bc78802c0121343874741650a4d3d1"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:ad88ac75c432674d05b61184178635d44901eb749786c8eb08c102330e6e8996"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-win32.whl", hash = "sha256:2544912a71da4ff8c4f7ab5606f947d7299971bdd25a45e008e467ca638d13c9"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:3ff201d62b1b177a46f113bb43ad300b424b7847f9c5d38b1b4ad8f75d4a282a"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:5b6fee72fa77dc172a28f21693f64d93166534c263adb3f96c413ccc85ef6e64"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:61d0af13a9af01d9f26d2331ce49bb5ac1fb9c814964018ac8df605b5422dcb3"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ecb24f0bdd899d368b715c9e6664166cf694d1e57be73f17759573a6986dd95a"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fbd8fd427f57a03cff3ad6574b5e299131585d9727c8c366da4624a9069ed746"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:beeaf1c48e32f07d8820c705ff8e645f8afa690cca1544adba4ebfa067efdc88"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:baed37ea46d756aca2955e99525cc02d9181de67f25515c468856c38d52b5f3b"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:7663960f08cd5a2bb152f5ee3992e1af7690a64c0e26d31ba7b3ff5b2ee66337"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl", hash = "sha256:d8640fb4072d36b08e95a3a380ba65779d356b2fee8696afeb7794cf0902d0a1"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78778a3aa7aafb11e7ddca4e29f46bc5139131037ad628cc10936764282d6753"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b0111b27f2d5c820e7f2dbad7d48e3338c824e7ac4d2a12da3dc6061cc39c8e6"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:c66962ca7565605b355a9ed478292da628b8f18c0f2793021ca4425abf8b01e5"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:ba43cc34cce49cf2d4bc76401a754a81202d8aa926d0e2b79f0ee258cb15d3a4"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:ac56eb983edce27e7f51d05bc8dd820586c6e6be1c5216a6809b0c668bb312b8"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f44bd4b23a0e723bf8b10628288c2c7c335161d6840013d4d5de20e48551773b"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7c10f4654e5326ec14a46bcdeb2b685d4ada6911050aa8baaf3501e57024b804"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0de4971a89a762398006e844ae394bd46991f7c385d7a6a3b93ba229e6dac17e"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:e1402f0564a97d2a52310ae10a64d25bcef94f8dd643fcf5d310219d915484f7"},
|
||||||
|
{file = "ujson-5.10.0.tar.gz", hash = "sha256:b3cd8f3c5d8c7738257f1018880444f7b7d9b66232c64649f562d7ba86ad4bc1"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "urllib3"
|
name = "urllib3"
|
||||||
version = "2.2.1"
|
version = "2.2.1"
|
||||||
@@ -2068,13 +2379,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "werkzeug"
|
name = "werkzeug"
|
||||||
version = "3.0.2"
|
version = "3.0.3"
|
||||||
description = "The comprehensive WSGI web application library."
|
description = "The comprehensive WSGI web application library."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "werkzeug-3.0.2-py3-none-any.whl", hash = "sha256:3aac3f5da756f93030740bc235d3e09449efcf65f2f55e3602e1d851b8f48795"},
|
{file = "werkzeug-3.0.3-py3-none-any.whl", hash = "sha256:fc9645dc43e03e4d630d23143a04a7f947a9a3b5727cd535fdfe155a17cc48c8"},
|
||||||
{file = "werkzeug-3.0.2.tar.gz", hash = "sha256:e39b645a6ac92822588e7b39a692e7828724ceae0b0d702ef96701f90e70128d"},
|
{file = "werkzeug-3.0.3.tar.gz", hash = "sha256:097e5bfda9f0aba8da6b8545146def481d06aa7d3266e7448e2cccf67dd8bd18"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -2216,18 +2527,18 @@ multidict = ">=4.0"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zipp"
|
name = "zipp"
|
||||||
version = "3.18.1"
|
version = "3.18.2"
|
||||||
description = "Backport of pathlib-compatible object wrapper for zip files"
|
description = "Backport of pathlib-compatible object wrapper for zip files"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "zipp-3.18.1-py3-none-any.whl", hash = "sha256:206f5a15f2af3dbaee80769fb7dc6f249695e940acca08dfb2a4769fe61e538b"},
|
{file = "zipp-3.18.2-py3-none-any.whl", hash = "sha256:dce197b859eb796242b0622af1b8beb0a722d52aa2f57133ead08edd5bf5374e"},
|
||||||
{file = "zipp-3.18.1.tar.gz", hash = "sha256:2884ed22e7d8961de1c9a05142eb69a247f120291bc0206a00a7642f09b5b715"},
|
{file = "zipp-3.18.2.tar.gz", hash = "sha256:6278d9ddbcfb1f1089a88fde84481528b07b0e10474e09dcfe53dad4069fa059"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
|
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
|
||||||
testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
|
testing = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
|
142
envs/test/poetry.lock
generated
142
envs/test/poetry.lock
generated
@@ -1,4 +1,4 @@
|
|||||||
# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
|
# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "annotated-types"
|
name = "annotated-types"
|
||||||
@@ -165,63 +165,63 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "coverage"
|
name = "coverage"
|
||||||
version = "7.5.0"
|
version = "7.5.1"
|
||||||
description = "Code coverage measurement for Python"
|
description = "Code coverage measurement for Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "coverage-7.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:432949a32c3e3f820af808db1833d6d1631664d53dd3ce487aa25d574e18ad1c"},
|
{file = "coverage-7.5.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0884920835a033b78d1c73b6d3bbcda8161a900f38a488829a83982925f6c2e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2bd7065249703cbeb6d4ce679c734bef0ee69baa7bff9724361ada04a15b7e3b"},
|
{file = "coverage-7.5.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:39afcd3d4339329c5f58de48a52f6e4e50f6578dd6099961cf22228feb25f38f"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bbfe6389c5522b99768a93d89aca52ef92310a96b99782973b9d11e80511f932"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4a7b0ceee8147444347da6a66be737c9d78f3353b0681715b668b72e79203e4a"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:39793731182c4be939b4be0cdecde074b833f6171313cf53481f869937129ed3"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a9ca3f2fae0088c3c71d743d85404cec8df9be818a005ea065495bedc33da35"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:85a5dbe1ba1bf38d6c63b6d2c42132d45cbee6d9f0c51b52c59aa4afba057517"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5fd215c0c7d7aab005221608a3c2b46f58c0285a819565887ee0b718c052aa4e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:357754dcdfd811462a725e7501a9b4556388e8ecf66e79df6f4b988fa3d0b39a"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:4bf0655ab60d754491004a5efd7f9cccefcc1081a74c9ef2da4735d6ee4a6223"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:a81eb64feded34f40c8986869a2f764f0fe2db58c0530d3a4afbcde50f314880"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:61c4bf1ba021817de12b813338c9be9f0ad5b1e781b9b340a6d29fc13e7c1b5e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:51431d0abbed3a868e967f8257c5faf283d41ec882f58413cf295a389bb22e58"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:db66fc317a046556a96b453a58eced5024af4582a8dbdc0c23ca4dbc0d5b3146"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-win32.whl", hash = "sha256:f609ebcb0242d84b7adeee2b06c11a2ddaec5464d21888b2c8255f5fd6a98ae4"},
|
{file = "coverage-7.5.1-cp310-cp310-win32.whl", hash = "sha256:b016ea6b959d3b9556cb401c55a37547135a587db0115635a443b2ce8f1c7228"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:6782cd6216fab5a83216cc39f13ebe30adfac2fa72688c5a4d8d180cd52e8f6a"},
|
{file = "coverage-7.5.1-cp310-cp310-win_amd64.whl", hash = "sha256:df4e745a81c110e7446b1cc8131bf986157770fa405fe90e15e850aaf7619bc8"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e768d870801f68c74c2b669fc909839660180c366501d4cc4b87efd6b0eee375"},
|
{file = "coverage-7.5.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:796a79f63eca8814ca3317a1ea443645c9ff0d18b188de470ed7ccd45ae79428"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:84921b10aeb2dd453247fd10de22907984eaf80901b578a5cf0bb1e279a587cb"},
|
{file = "coverage-7.5.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4fc84a37bfd98db31beae3c2748811a3fa72bf2007ff7902f68746d9757f3746"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:710c62b6e35a9a766b99b15cdc56d5aeda0914edae8bb467e9c355f75d14ee95"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6175d1a0559986c6ee3f7fccfc4a90ecd12ba0a383dcc2da30c2b9918d67d8a3"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c379cdd3efc0658e652a14112d51a7668f6bfca7445c5a10dee7eabecabba19d"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fc81d5878cd6274ce971e0a3a18a8803c3fe25457165314271cf78e3aae3aa2"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fea9d3ca80bcf17edb2c08a4704259dadac196fe5e9274067e7a20511fad1743"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:556cf1a7cbc8028cb60e1ff0be806be2eded2daf8129b8811c63e2b9a6c43bca"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:41327143c5b1d715f5f98a397608f90ab9ebba606ae4e6f3389c2145410c52b1"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:9981706d300c18d8b220995ad22627647be11a4276721c10911e0e9fa44c83e8"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:565b2e82d0968c977e0b0f7cbf25fd06d78d4856289abc79694c8edcce6eb2de"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d7fed867ee50edf1a0b4a11e8e5d0895150e572af1cd6d315d557758bfa9c057"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:cf3539007202ebfe03923128fedfdd245db5860a36810136ad95a564a2fdffff"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:ef48e2707fb320c8f139424a596f5b69955a85b178f15af261bab871873bb987"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-win32.whl", hash = "sha256:bf0b4b8d9caa8d64df838e0f8dcf68fb570c5733b726d1494b87f3da85db3a2d"},
|
{file = "coverage-7.5.1-cp311-cp311-win32.whl", hash = "sha256:9314d5678dcc665330df5b69c1e726a0e49b27df0461c08ca12674bcc19ef136"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:9c6384cc90e37cfb60435bbbe0488444e54b98700f727f16f64d8bfda0b84656"},
|
{file = "coverage-7.5.1-cp311-cp311-win_amd64.whl", hash = "sha256:5fa567e99765fe98f4e7d7394ce623e794d7cabb170f2ca2ac5a4174437e90dd"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:fed7a72d54bd52f4aeb6c6e951f363903bd7d70bc1cad64dd1f087980d309ab9"},
|
{file = "coverage-7.5.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b6cf3764c030e5338e7f61f95bd21147963cf6aa16e09d2f74f1fa52013c1206"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:cbe6581fcff7c8e262eb574244f81f5faaea539e712a058e6707a9d272fe5b64"},
|
{file = "coverage-7.5.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2ec92012fefebee89a6b9c79bc39051a6cb3891d562b9270ab10ecfdadbc0c34"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad97ec0da94b378e593ef532b980c15e377df9b9608c7c6da3506953182398af"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:16db7f26000a07efcf6aea00316f6ac57e7d9a96501e990a36f40c965ec7a95d"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bd4bacd62aa2f1a1627352fe68885d6ee694bdaebb16038b6e680f2924a9b2cc"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:beccf7b8a10b09c4ae543582c1319c6df47d78fd732f854ac68d518ee1fb97fa"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:adf032b6c105881f9d77fa17d9eebe0ad1f9bfb2ad25777811f97c5362aa07f2"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8748731ad392d736cc9ccac03c9845b13bb07d020a33423fa5b3a36521ac6e4e"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:4ba01d9ba112b55bfa4b24808ec431197bb34f09f66f7cb4fd0258ff9d3711b1"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7352b9161b33fd0b643ccd1f21f3a3908daaddf414f1c6cb9d3a2fd618bf2572"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:f0bfe42523893c188e9616d853c47685e1c575fe25f737adf473d0405dcfa7eb"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:7a588d39e0925f6a2bff87154752481273cdb1736270642aeb3635cb9b4cad07"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a9a7ef30a1b02547c1b23fa9a5564f03c9982fc71eb2ecb7f98c96d7a0db5cf2"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:68f962d9b72ce69ea8621f57551b2fa9c70509af757ee3b8105d4f51b92b41a7"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-win32.whl", hash = "sha256:3c2b77f295edb9fcdb6a250f83e6481c679335ca7e6e4a955e4290350f2d22a4"},
|
{file = "coverage-7.5.1-cp312-cp312-win32.whl", hash = "sha256:f152cbf5b88aaeb836127d920dd0f5e7edff5a66f10c079157306c4343d86c19"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:427e1e627b0963ac02d7c8730ca6d935df10280d230508c0ba059505e9233475"},
|
{file = "coverage-7.5.1-cp312-cp312-win_amd64.whl", hash = "sha256:5a5740d1fb60ddf268a3811bcd353de34eb56dc24e8f52a7f05ee513b2d4f596"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9dd88fce54abbdbf4c42fb1fea0e498973d07816f24c0e27a1ecaf91883ce69e"},
|
{file = "coverage-7.5.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:e2213def81a50519d7cc56ed643c9e93e0247f5bbe0d1247d15fa520814a7cd7"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a898c11dca8f8c97b467138004a30133974aacd572818c383596f8d5b2eb04a9"},
|
{file = "coverage-7.5.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:5037f8fcc2a95b1f0e80585bd9d1ec31068a9bcb157d9750a172836e98bc7a90"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:07dfdd492d645eea1bd70fb1d6febdcf47db178b0d99161d8e4eed18e7f62fe7"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c3721c2c9e4c4953a41a26c14f4cef64330392a6d2d675c8b1db3b645e31f0e"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d3d117890b6eee85887b1eed41eefe2e598ad6e40523d9f94c4c4b213258e4a4"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ca498687ca46a62ae590253fba634a1fe9836bc56f626852fb2720f334c9e4e5"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6afd2e84e7da40fe23ca588379f815fb6dbbb1b757c883935ed11647205111cb"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0cdcbc320b14c3e5877ee79e649677cb7d89ef588852e9583e6b24c2e5072661"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:a9960dd1891b2ddf13a7fe45339cd59ecee3abb6b8326d8b932d0c5da208104f"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:57e0204b5b745594e5bc14b9b50006da722827f0b8c776949f1135677e88d0b8"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:ced268e82af993d7801a9db2dbc1d2322e786c5dc76295d8e89473d46c6b84d4"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:8fe7502616b67b234482c3ce276ff26f39ffe88adca2acf0261df4b8454668b4"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:e7c211f25777746d468d76f11719e64acb40eed410d81c26cefac641975beb88"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:9e78295f4144f9dacfed4f92935fbe1780021247c2fabf73a819b17f0ccfff8d"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-win32.whl", hash = "sha256:262fffc1f6c1a26125d5d573e1ec379285a3723363f3bd9c83923c9593a2ac25"},
|
{file = "coverage-7.5.1-cp38-cp38-win32.whl", hash = "sha256:1434e088b41594baa71188a17533083eabf5609e8e72f16ce8c186001e6b8c41"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-win_amd64.whl", hash = "sha256:eed462b4541c540d63ab57b3fc69e7d8c84d5957668854ee4e408b50e92ce26a"},
|
{file = "coverage-7.5.1-cp38-cp38-win_amd64.whl", hash = "sha256:0646599e9b139988b63704d704af8e8df7fa4cbc4a1f33df69d97f36cb0a38de"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d0194d654e360b3e6cc9b774e83235bae6b9b2cac3be09040880bb0e8a88f4a1"},
|
{file = "coverage-7.5.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4cc37def103a2725bc672f84bd939a6fe4522310503207aae4d56351644682f1"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:33c020d3322662e74bc507fb11488773a96894aa82a622c35a5a28673c0c26f5"},
|
{file = "coverage-7.5.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:fc0b4d8bfeabd25ea75e94632f5b6e047eef8adaed0c2161ada1e922e7f7cece"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbdf2cae14a06827bec50bd58e49249452d211d9caddd8bd80e35b53cb04631"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d0a0f5e06881ecedfe6f3dd2f56dcb057b6dbeb3327fd32d4b12854df36bf26"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3235d7c781232e525b0761730e052388a01548bd7f67d0067a253887c6e8df46"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9735317685ba6ec7e3754798c8871c2f49aa5e687cc794a0b1d284b2389d1bd5"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2de4e546f0ec4b2787d625e0b16b78e99c3e21bc1722b4977c0dddf11ca84e"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d21918e9ef11edf36764b93101e2ae8cc82aa5efdc7c5a4e9c6c35a48496d601"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:4d0e206259b73af35c4ec1319fd04003776e11e859936658cb6ceffdeba0f5be"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c3e757949f268364b96ca894b4c342b41dc6f8f8b66c37878aacef5930db61be"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:2055c4fb9a6ff624253d432aa471a37202cd8f458c033d6d989be4499aed037b"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:79afb6197e2f7f60c4824dd4b2d4c2ec5801ceb6ba9ce5d2c3080e5660d51a4f"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:075299460948cd12722a970c7eae43d25d37989da682997687b34ae6b87c0ef0"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:d1d0d98d95dd18fe29dc66808e1accf59f037d5716f86a501fc0256455219668"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-win32.whl", hash = "sha256:280132aada3bc2f0fac939a5771db4fbb84f245cb35b94fae4994d4c1f80dae7"},
|
{file = "coverage-7.5.1-cp39-cp39-win32.whl", hash = "sha256:1cc0fe9b0b3a8364093c53b0b4c0c2dd4bb23acbec4c9240b5f284095ccf7981"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:c58536f6892559e030e6924896a44098bc1290663ea12532c78cef71d0df8493"},
|
{file = "coverage-7.5.1-cp39-cp39-win_amd64.whl", hash = "sha256:dde0070c40ea8bb3641e811c1cfbf18e265d024deff6de52c5950677a8fb1e0f"},
|
||||||
{file = "coverage-7.5.0-pp38.pp39.pp310-none-any.whl", hash = "sha256:2b57780b51084d5223eee7b59f0d4911c31c16ee5aa12737c7a02455829ff067"},
|
{file = "coverage-7.5.1-pp38.pp39.pp310-none-any.whl", hash = "sha256:6537e7c10cc47c595828b8a8be04c72144725c383c4702703ff4e42e44577312"},
|
||||||
{file = "coverage-7.5.0.tar.gz", hash = "sha256:cf62d17310f34084c59c01e027259076479128d11e4661bb6c9acb38c5e19bb8"},
|
{file = "coverage-7.5.1.tar.gz", hash = "sha256:54de9ef3a9da981f7af93eafde4ede199e0846cd819eb27c88e2b712aae9708c"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -514,13 +514,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nonebot2"
|
name = "nonebot2"
|
||||||
version = "2.2.1"
|
version = "2.3.0"
|
||||||
description = "An asynchronous python bot framework."
|
description = "An asynchronous python bot framework."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8,<4.0"
|
python-versions = "<4.0,>=3.9"
|
||||||
files = [
|
files = [
|
||||||
{file = "nonebot2-2.2.1-py3-none-any.whl", hash = "sha256:88f2bb456bf90922925bbe489a9effe3b09300f3aa50bfa75ee50d8a83d7330f"},
|
{file = "nonebot2-2.3.0-py3-none-any.whl", hash = "sha256:ecde620a96197189f9f9b719ab8493b5115e5973cba0bd07ed3d737ce7418462"},
|
||||||
{file = "nonebot2-2.2.1.tar.gz", hash = "sha256:fe57692300571b00724999238545d8d894523460e6835a11b326a2e1cdf98fc4"},
|
{file = "nonebot2-2.3.0.tar.gz", hash = "sha256:0e4ebdb0eaab96008619aa4890171ea6e7e7af25eb9d1a4e753e58544c46681e"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -707,13 +707,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pytest"
|
name = "pytest"
|
||||||
version = "8.2.0"
|
version = "8.2.1"
|
||||||
description = "pytest: simple powerful testing with Python"
|
description = "pytest: simple powerful testing with Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "pytest-8.2.0-py3-none-any.whl", hash = "sha256:1733f0620f6cda4095bbf0d9ff8022486e91892245bb9e7d5542c018f612f233"},
|
{file = "pytest-8.2.1-py3-none-any.whl", hash = "sha256:faccc5d332b8c3719f40283d0d44aa5cf101cec36f88cde9ed8f2bc0538612b1"},
|
||||||
{file = "pytest-8.2.0.tar.gz", hash = "sha256:d507d4482197eac0ba2bae2e9babf0672eb333017bcedaa5fb1a3d42c1174b3f"},
|
{file = "pytest-8.2.1.tar.gz", hash = "sha256:5046e5b46d8e4cac199c373041f26be56fdb81eb4e67dc11d4e10811fc3408fd"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -729,13 +729,13 @@ dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pytest-asyncio"
|
name = "pytest-asyncio"
|
||||||
version = "0.23.6"
|
version = "0.23.7"
|
||||||
description = "Pytest support for asyncio"
|
description = "Pytest support for asyncio"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "pytest-asyncio-0.23.6.tar.gz", hash = "sha256:ffe523a89c1c222598c76856e76852b787504ddb72dd5d9b6617ffa8aa2cde5f"},
|
{file = "pytest_asyncio-0.23.7-py3-none-any.whl", hash = "sha256:009b48127fbe44518a547bddd25611551b0e43ccdbf1e67d12479f569832c20b"},
|
||||||
{file = "pytest_asyncio-0.23.6-py3-none-any.whl", hash = "sha256:68516fdd1018ac57b846c9846b954f0393b26f094764a28c955eabb0536a4e8a"},
|
{file = "pytest_asyncio-0.23.7.tar.gz", hash = "sha256:5f5c72948f4c49e7db4f29f2521d4031f1c27f86e57b046126654083d4770268"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -859,13 +859,13 @@ zstd = ["zstandard (>=0.18.0)"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "werkzeug"
|
name = "werkzeug"
|
||||||
version = "3.0.2"
|
version = "3.0.3"
|
||||||
description = "The comprehensive WSGI web application library."
|
description = "The comprehensive WSGI web application library."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "werkzeug-3.0.2-py3-none-any.whl", hash = "sha256:3aac3f5da756f93030740bc235d3e09449efcf65f2f55e3602e1d851b8f48795"},
|
{file = "werkzeug-3.0.3-py3-none-any.whl", hash = "sha256:fc9645dc43e03e4d630d23143a04a7f947a9a3b5727cd535fdfe155a17cc48c8"},
|
||||||
{file = "werkzeug-3.0.2.tar.gz", hash = "sha256:e39b645a6ac92822588e7b39a692e7828724ceae0b0d702ef96701f90e70128d"},
|
{file = "werkzeug-3.0.3.tar.gz", hash = "sha256:097e5bfda9f0aba8da6b8545146def481d06aa7d3266e7448e2cccf67dd8bd18"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1007,18 +1007,18 @@ multidict = ">=4.0"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zipp"
|
name = "zipp"
|
||||||
version = "3.18.1"
|
version = "3.18.2"
|
||||||
description = "Backport of pathlib-compatible object wrapper for zip files"
|
description = "Backport of pathlib-compatible object wrapper for zip files"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "zipp-3.18.1-py3-none-any.whl", hash = "sha256:206f5a15f2af3dbaee80769fb7dc6f249695e940acca08dfb2a4769fe61e538b"},
|
{file = "zipp-3.18.2-py3-none-any.whl", hash = "sha256:dce197b859eb796242b0622af1b8beb0a722d52aa2f57133ead08edd5bf5374e"},
|
||||||
{file = "zipp-3.18.1.tar.gz", hash = "sha256:2884ed22e7d8961de1c9a05142eb69a247f120291bc0206a00a7642f09b5b715"},
|
{file = "zipp-3.18.2.tar.gz", hash = "sha256:6278d9ddbcfb1f1089a88fde84481528b07b0e10474e09dcfe53dad4069fa059"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
|
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
|
||||||
testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
|
testing = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
|
@@ -17,8 +17,14 @@ from pydantic.fields import FieldInfo as PydanticFieldInfo
|
|||||||
|
|
||||||
from nonebot.dependencies import Param, Dependent
|
from nonebot.dependencies import Param, Dependent
|
||||||
from nonebot.dependencies.utils import check_field_type
|
from nonebot.dependencies.utils import check_field_type
|
||||||
from nonebot.typing import T_State, T_Handler, T_DependencyCache
|
|
||||||
from nonebot.compat import FieldInfo, ModelField, PydanticUndefined, extract_field_info
|
from nonebot.compat import FieldInfo, ModelField, PydanticUndefined, extract_field_info
|
||||||
|
from nonebot.typing import (
|
||||||
|
_STATE_FLAG,
|
||||||
|
T_State,
|
||||||
|
T_Handler,
|
||||||
|
T_DependencyCache,
|
||||||
|
origin_is_annotated,
|
||||||
|
)
|
||||||
from nonebot.utils import (
|
from nonebot.utils import (
|
||||||
get_name,
|
get_name,
|
||||||
run_sync,
|
run_sync,
|
||||||
@@ -349,7 +355,9 @@ class StateParam(Param):
|
|||||||
cls, param: inspect.Parameter, allow_types: tuple[type[Param], ...]
|
cls, param: inspect.Parameter, allow_types: tuple[type[Param], ...]
|
||||||
) -> Optional[Self]:
|
) -> Optional[Self]:
|
||||||
# param type is T_State
|
# param type is T_State
|
||||||
if param.annotation is T_State:
|
if origin_is_annotated(
|
||||||
|
get_origin(param.annotation)
|
||||||
|
) and _STATE_FLAG in get_args(param.annotation):
|
||||||
return cls()
|
return cls()
|
||||||
# legacy: param is named "state" and has no type annotation
|
# legacy: param is named "state" and has no type annotation
|
||||||
elif param.annotation == param.empty and param.name == "state":
|
elif param.annotation == param.empty and param.name == "state":
|
||||||
|
@@ -108,7 +108,15 @@ def evaluate_forwardref(
|
|||||||
|
|
||||||
|
|
||||||
# state
|
# state
|
||||||
T_State: TypeAlias = dict[t.Any, t.Any]
|
# use annotated flag to avoid ForwardRef recreate generic type (py >= 3.11)
|
||||||
|
class StateFlag:
|
||||||
|
def __repr__(self) -> str:
|
||||||
|
return "StateFlag()"
|
||||||
|
|
||||||
|
|
||||||
|
_STATE_FLAG = StateFlag()
|
||||||
|
|
||||||
|
T_State: TypeAlias = t.Annotated[dict[t.Any, t.Any], _STATE_FLAG]
|
||||||
"""事件处理状态 State 类型"""
|
"""事件处理状态 State 类型"""
|
||||||
|
|
||||||
_DependentCallable: TypeAlias = t.Union[
|
_DependentCallable: TypeAlias = t.Union[
|
||||||
|
523
poetry.lock
generated
523
poetry.lock
generated
@@ -1,4 +1,4 @@
|
|||||||
# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
|
# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "aiodns"
|
name = "aiodns"
|
||||||
@@ -280,13 +280,13 @@ uvloop = ["uvloop (>=0.15.2)"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "blinker"
|
name = "blinker"
|
||||||
version = "1.8.1"
|
version = "1.8.2"
|
||||||
description = "Fast, simple object-to-object and broadcast signaling"
|
description = "Fast, simple object-to-object and broadcast signaling"
|
||||||
optional = true
|
optional = true
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "blinker-1.8.1-py3-none-any.whl", hash = "sha256:5f1cdeff423b77c31b89de0565cd03e5275a03028f44b2b15f912632a58cced6"},
|
{file = "blinker-1.8.2-py3-none-any.whl", hash = "sha256:1779309f71bf239144b9399d06ae925637cf6634cf6bd131104184531bf67c01"},
|
||||||
{file = "blinker-1.8.1.tar.gz", hash = "sha256:da44ec748222dcd0105ef975eed946da197d5bdf8bafb6aa92f5bc89da63fa25"},
|
{file = "blinker-1.8.2.tar.gz", hash = "sha256:8f77b09d3bf7c795e969e9486f39c2c5e9c39d4ee07424be2bc594ece9642d83"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -632,63 +632,63 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "coverage"
|
name = "coverage"
|
||||||
version = "7.5.0"
|
version = "7.5.1"
|
||||||
description = "Code coverage measurement for Python"
|
description = "Code coverage measurement for Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "coverage-7.5.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:432949a32c3e3f820af808db1833d6d1631664d53dd3ce487aa25d574e18ad1c"},
|
{file = "coverage-7.5.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c0884920835a033b78d1c73b6d3bbcda8161a900f38a488829a83982925f6c2e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2bd7065249703cbeb6d4ce679c734bef0ee69baa7bff9724361ada04a15b7e3b"},
|
{file = "coverage-7.5.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:39afcd3d4339329c5f58de48a52f6e4e50f6578dd6099961cf22228feb25f38f"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bbfe6389c5522b99768a93d89aca52ef92310a96b99782973b9d11e80511f932"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4a7b0ceee8147444347da6a66be737c9d78f3353b0681715b668b72e79203e4a"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:39793731182c4be939b4be0cdecde074b833f6171313cf53481f869937129ed3"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a9ca3f2fae0088c3c71d743d85404cec8df9be818a005ea065495bedc33da35"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:85a5dbe1ba1bf38d6c63b6d2c42132d45cbee6d9f0c51b52c59aa4afba057517"},
|
{file = "coverage-7.5.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5fd215c0c7d7aab005221608a3c2b46f58c0285a819565887ee0b718c052aa4e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:357754dcdfd811462a725e7501a9b4556388e8ecf66e79df6f4b988fa3d0b39a"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:4bf0655ab60d754491004a5efd7f9cccefcc1081a74c9ef2da4735d6ee4a6223"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:a81eb64feded34f40c8986869a2f764f0fe2db58c0530d3a4afbcde50f314880"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:61c4bf1ba021817de12b813338c9be9f0ad5b1e781b9b340a6d29fc13e7c1b5e"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:51431d0abbed3a868e967f8257c5faf283d41ec882f58413cf295a389bb22e58"},
|
{file = "coverage-7.5.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:db66fc317a046556a96b453a58eced5024af4582a8dbdc0c23ca4dbc0d5b3146"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-win32.whl", hash = "sha256:f609ebcb0242d84b7adeee2b06c11a2ddaec5464d21888b2c8255f5fd6a98ae4"},
|
{file = "coverage-7.5.1-cp310-cp310-win32.whl", hash = "sha256:b016ea6b959d3b9556cb401c55a37547135a587db0115635a443b2ce8f1c7228"},
|
||||||
{file = "coverage-7.5.0-cp310-cp310-win_amd64.whl", hash = "sha256:6782cd6216fab5a83216cc39f13ebe30adfac2fa72688c5a4d8d180cd52e8f6a"},
|
{file = "coverage-7.5.1-cp310-cp310-win_amd64.whl", hash = "sha256:df4e745a81c110e7446b1cc8131bf986157770fa405fe90e15e850aaf7619bc8"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e768d870801f68c74c2b669fc909839660180c366501d4cc4b87efd6b0eee375"},
|
{file = "coverage-7.5.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:796a79f63eca8814ca3317a1ea443645c9ff0d18b188de470ed7ccd45ae79428"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:84921b10aeb2dd453247fd10de22907984eaf80901b578a5cf0bb1e279a587cb"},
|
{file = "coverage-7.5.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4fc84a37bfd98db31beae3c2748811a3fa72bf2007ff7902f68746d9757f3746"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:710c62b6e35a9a766b99b15cdc56d5aeda0914edae8bb467e9c355f75d14ee95"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6175d1a0559986c6ee3f7fccfc4a90ecd12ba0a383dcc2da30c2b9918d67d8a3"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c379cdd3efc0658e652a14112d51a7668f6bfca7445c5a10dee7eabecabba19d"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fc81d5878cd6274ce971e0a3a18a8803c3fe25457165314271cf78e3aae3aa2"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fea9d3ca80bcf17edb2c08a4704259dadac196fe5e9274067e7a20511fad1743"},
|
{file = "coverage-7.5.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:556cf1a7cbc8028cb60e1ff0be806be2eded2daf8129b8811c63e2b9a6c43bca"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:41327143c5b1d715f5f98a397608f90ab9ebba606ae4e6f3389c2145410c52b1"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:9981706d300c18d8b220995ad22627647be11a4276721c10911e0e9fa44c83e8"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:565b2e82d0968c977e0b0f7cbf25fd06d78d4856289abc79694c8edcce6eb2de"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d7fed867ee50edf1a0b4a11e8e5d0895150e572af1cd6d315d557758bfa9c057"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:cf3539007202ebfe03923128fedfdd245db5860a36810136ad95a564a2fdffff"},
|
{file = "coverage-7.5.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:ef48e2707fb320c8f139424a596f5b69955a85b178f15af261bab871873bb987"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-win32.whl", hash = "sha256:bf0b4b8d9caa8d64df838e0f8dcf68fb570c5733b726d1494b87f3da85db3a2d"},
|
{file = "coverage-7.5.1-cp311-cp311-win32.whl", hash = "sha256:9314d5678dcc665330df5b69c1e726a0e49b27df0461c08ca12674bcc19ef136"},
|
||||||
{file = "coverage-7.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:9c6384cc90e37cfb60435bbbe0488444e54b98700f727f16f64d8bfda0b84656"},
|
{file = "coverage-7.5.1-cp311-cp311-win_amd64.whl", hash = "sha256:5fa567e99765fe98f4e7d7394ce623e794d7cabb170f2ca2ac5a4174437e90dd"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:fed7a72d54bd52f4aeb6c6e951f363903bd7d70bc1cad64dd1f087980d309ab9"},
|
{file = "coverage-7.5.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b6cf3764c030e5338e7f61f95bd21147963cf6aa16e09d2f74f1fa52013c1206"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:cbe6581fcff7c8e262eb574244f81f5faaea539e712a058e6707a9d272fe5b64"},
|
{file = "coverage-7.5.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2ec92012fefebee89a6b9c79bc39051a6cb3891d562b9270ab10ecfdadbc0c34"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad97ec0da94b378e593ef532b980c15e377df9b9608c7c6da3506953182398af"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:16db7f26000a07efcf6aea00316f6ac57e7d9a96501e990a36f40c965ec7a95d"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bd4bacd62aa2f1a1627352fe68885d6ee694bdaebb16038b6e680f2924a9b2cc"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:beccf7b8a10b09c4ae543582c1319c6df47d78fd732f854ac68d518ee1fb97fa"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:adf032b6c105881f9d77fa17d9eebe0ad1f9bfb2ad25777811f97c5362aa07f2"},
|
{file = "coverage-7.5.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8748731ad392d736cc9ccac03c9845b13bb07d020a33423fa5b3a36521ac6e4e"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:4ba01d9ba112b55bfa4b24808ec431197bb34f09f66f7cb4fd0258ff9d3711b1"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7352b9161b33fd0b643ccd1f21f3a3908daaddf414f1c6cb9d3a2fd618bf2572"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:f0bfe42523893c188e9616d853c47685e1c575fe25f737adf473d0405dcfa7eb"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:7a588d39e0925f6a2bff87154752481273cdb1736270642aeb3635cb9b4cad07"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a9a7ef30a1b02547c1b23fa9a5564f03c9982fc71eb2ecb7f98c96d7a0db5cf2"},
|
{file = "coverage-7.5.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:68f962d9b72ce69ea8621f57551b2fa9c70509af757ee3b8105d4f51b92b41a7"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-win32.whl", hash = "sha256:3c2b77f295edb9fcdb6a250f83e6481c679335ca7e6e4a955e4290350f2d22a4"},
|
{file = "coverage-7.5.1-cp312-cp312-win32.whl", hash = "sha256:f152cbf5b88aaeb836127d920dd0f5e7edff5a66f10c079157306c4343d86c19"},
|
||||||
{file = "coverage-7.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:427e1e627b0963ac02d7c8730ca6d935df10280d230508c0ba059505e9233475"},
|
{file = "coverage-7.5.1-cp312-cp312-win_amd64.whl", hash = "sha256:5a5740d1fb60ddf268a3811bcd353de34eb56dc24e8f52a7f05ee513b2d4f596"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9dd88fce54abbdbf4c42fb1fea0e498973d07816f24c0e27a1ecaf91883ce69e"},
|
{file = "coverage-7.5.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:e2213def81a50519d7cc56ed643c9e93e0247f5bbe0d1247d15fa520814a7cd7"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a898c11dca8f8c97b467138004a30133974aacd572818c383596f8d5b2eb04a9"},
|
{file = "coverage-7.5.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:5037f8fcc2a95b1f0e80585bd9d1ec31068a9bcb157d9750a172836e98bc7a90"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:07dfdd492d645eea1bd70fb1d6febdcf47db178b0d99161d8e4eed18e7f62fe7"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c3721c2c9e4c4953a41a26c14f4cef64330392a6d2d675c8b1db3b645e31f0e"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d3d117890b6eee85887b1eed41eefe2e598ad6e40523d9f94c4c4b213258e4a4"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ca498687ca46a62ae590253fba634a1fe9836bc56f626852fb2720f334c9e4e5"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6afd2e84e7da40fe23ca588379f815fb6dbbb1b757c883935ed11647205111cb"},
|
{file = "coverage-7.5.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0cdcbc320b14c3e5877ee79e649677cb7d89ef588852e9583e6b24c2e5072661"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:a9960dd1891b2ddf13a7fe45339cd59ecee3abb6b8326d8b932d0c5da208104f"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:57e0204b5b745594e5bc14b9b50006da722827f0b8c776949f1135677e88d0b8"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:ced268e82af993d7801a9db2dbc1d2322e786c5dc76295d8e89473d46c6b84d4"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:8fe7502616b67b234482c3ce276ff26f39ffe88adca2acf0261df4b8454668b4"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:e7c211f25777746d468d76f11719e64acb40eed410d81c26cefac641975beb88"},
|
{file = "coverage-7.5.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:9e78295f4144f9dacfed4f92935fbe1780021247c2fabf73a819b17f0ccfff8d"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-win32.whl", hash = "sha256:262fffc1f6c1a26125d5d573e1ec379285a3723363f3bd9c83923c9593a2ac25"},
|
{file = "coverage-7.5.1-cp38-cp38-win32.whl", hash = "sha256:1434e088b41594baa71188a17533083eabf5609e8e72f16ce8c186001e6b8c41"},
|
||||||
{file = "coverage-7.5.0-cp38-cp38-win_amd64.whl", hash = "sha256:eed462b4541c540d63ab57b3fc69e7d8c84d5957668854ee4e408b50e92ce26a"},
|
{file = "coverage-7.5.1-cp38-cp38-win_amd64.whl", hash = "sha256:0646599e9b139988b63704d704af8e8df7fa4cbc4a1f33df69d97f36cb0a38de"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d0194d654e360b3e6cc9b774e83235bae6b9b2cac3be09040880bb0e8a88f4a1"},
|
{file = "coverage-7.5.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4cc37def103a2725bc672f84bd939a6fe4522310503207aae4d56351644682f1"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:33c020d3322662e74bc507fb11488773a96894aa82a622c35a5a28673c0c26f5"},
|
{file = "coverage-7.5.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:fc0b4d8bfeabd25ea75e94632f5b6e047eef8adaed0c2161ada1e922e7f7cece"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbdf2cae14a06827bec50bd58e49249452d211d9caddd8bd80e35b53cb04631"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d0a0f5e06881ecedfe6f3dd2f56dcb057b6dbeb3327fd32d4b12854df36bf26"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3235d7c781232e525b0761730e052388a01548bd7f67d0067a253887c6e8df46"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9735317685ba6ec7e3754798c8871c2f49aa5e687cc794a0b1d284b2389d1bd5"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2de4e546f0ec4b2787d625e0b16b78e99c3e21bc1722b4977c0dddf11ca84e"},
|
{file = "coverage-7.5.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d21918e9ef11edf36764b93101e2ae8cc82aa5efdc7c5a4e9c6c35a48496d601"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:4d0e206259b73af35c4ec1319fd04003776e11e859936658cb6ceffdeba0f5be"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c3e757949f268364b96ca894b4c342b41dc6f8f8b66c37878aacef5930db61be"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:2055c4fb9a6ff624253d432aa471a37202cd8f458c033d6d989be4499aed037b"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:79afb6197e2f7f60c4824dd4b2d4c2ec5801ceb6ba9ce5d2c3080e5660d51a4f"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:075299460948cd12722a970c7eae43d25d37989da682997687b34ae6b87c0ef0"},
|
{file = "coverage-7.5.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:d1d0d98d95dd18fe29dc66808e1accf59f037d5716f86a501fc0256455219668"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-win32.whl", hash = "sha256:280132aada3bc2f0fac939a5771db4fbb84f245cb35b94fae4994d4c1f80dae7"},
|
{file = "coverage-7.5.1-cp39-cp39-win32.whl", hash = "sha256:1cc0fe9b0b3a8364093c53b0b4c0c2dd4bb23acbec4c9240b5f284095ccf7981"},
|
||||||
{file = "coverage-7.5.0-cp39-cp39-win_amd64.whl", hash = "sha256:c58536f6892559e030e6924896a44098bc1290663ea12532c78cef71d0df8493"},
|
{file = "coverage-7.5.1-cp39-cp39-win_amd64.whl", hash = "sha256:dde0070c40ea8bb3641e811c1cfbf18e265d024deff6de52c5950677a8fb1e0f"},
|
||||||
{file = "coverage-7.5.0-pp38.pp39.pp310-none-any.whl", hash = "sha256:2b57780b51084d5223eee7b59f0d4911c31c16ee5aa12737c7a02455829ff067"},
|
{file = "coverage-7.5.1-pp38.pp39.pp310-none-any.whl", hash = "sha256:6537e7c10cc47c595828b8a8be04c72144725c383c4702703ff4e42e44577312"},
|
||||||
{file = "coverage-7.5.0.tar.gz", hash = "sha256:cf62d17310f34084c59c01e027259076479128d11e4661bb6c9acb38c5e19bb8"},
|
{file = "coverage-7.5.1.tar.gz", hash = "sha256:54de9ef3a9da981f7af93eafde4ede199e0846cd819eb27c88e2b712aae9708c"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -724,6 +724,41 @@ files = [
|
|||||||
{file = "distlib-0.3.8.tar.gz", hash = "sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64"},
|
{file = "distlib-0.3.8.tar.gz", hash = "sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "dnspython"
|
||||||
|
version = "2.6.1"
|
||||||
|
description = "DNS toolkit"
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "dnspython-2.6.1-py3-none-any.whl", hash = "sha256:5ef3b9680161f6fa89daf8ad451b5f1a33b18ae8a1c6778cdf4b43f08c0a6e50"},
|
||||||
|
{file = "dnspython-2.6.1.tar.gz", hash = "sha256:e8f0f9c23a7b7cb99ded64e6c3a6f3e701d78f50c55e002b839dea7225cff7cc"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
dev = ["black (>=23.1.0)", "coverage (>=7.0)", "flake8 (>=7)", "mypy (>=1.8)", "pylint (>=3)", "pytest (>=7.4)", "pytest-cov (>=4.1.0)", "sphinx (>=7.2.0)", "twine (>=4.0.0)", "wheel (>=0.42.0)"]
|
||||||
|
dnssec = ["cryptography (>=41)"]
|
||||||
|
doh = ["h2 (>=4.1.0)", "httpcore (>=1.0.0)", "httpx (>=0.26.0)"]
|
||||||
|
doq = ["aioquic (>=0.9.25)"]
|
||||||
|
idna = ["idna (>=3.6)"]
|
||||||
|
trio = ["trio (>=0.23)"]
|
||||||
|
wmi = ["wmi (>=1.5.1)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "email-validator"
|
||||||
|
version = "2.1.1"
|
||||||
|
description = "A robust email address syntax and deliverability validation library."
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "email_validator-2.1.1-py3-none-any.whl", hash = "sha256:97d882d174e2a65732fb43bfce81a3a834cbc1bde8bf419e30ef5ea976370a05"},
|
||||||
|
{file = "email_validator-2.1.1.tar.gz", hash = "sha256:200a70680ba08904be6d1eef729205cc0d687634399a5924d842533efb824b84"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
dnspython = ">=2.0.0"
|
||||||
|
idna = ">=2.0.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "exceptiongroup"
|
name = "exceptiongroup"
|
||||||
version = "1.2.1"
|
version = "1.2.1"
|
||||||
@@ -754,23 +789,48 @@ testing = ["hatch", "pre-commit", "pytest", "tox"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fastapi"
|
name = "fastapi"
|
||||||
version = "0.110.3"
|
version = "0.111.0"
|
||||||
description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
|
description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
|
||||||
optional = true
|
optional = true
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "fastapi-0.110.3-py3-none-any.whl", hash = "sha256:fd7600612f755e4050beb74001310b5a7e1796d149c2ee363124abdfa0289d32"},
|
{file = "fastapi-0.111.0-py3-none-any.whl", hash = "sha256:97ecbf994be0bcbdadedf88c3150252bed7b2087075ac99735403b1b76cc8fc0"},
|
||||||
{file = "fastapi-0.110.3.tar.gz", hash = "sha256:555700b0159379e94fdbfc6bb66a0f1c43f4cf7060f25239af3d84b63a656626"},
|
{file = "fastapi-0.111.0.tar.gz", hash = "sha256:b9db9dd147c91cb8b769f7183535773d8741dd46f9dc6676cd82eab510228cd7"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
|
email_validator = ">=2.0.0"
|
||||||
|
fastapi-cli = ">=0.0.2"
|
||||||
|
httpx = ">=0.23.0"
|
||||||
|
jinja2 = ">=2.11.2"
|
||||||
|
orjson = ">=3.2.1"
|
||||||
pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0 || >2.0.0,<2.0.1 || >2.0.1,<2.1.0 || >2.1.0,<3.0.0"
|
pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0 || >2.0.0,<2.0.1 || >2.0.1,<2.1.0 || >2.1.0,<3.0.0"
|
||||||
|
python-multipart = ">=0.0.7"
|
||||||
starlette = ">=0.37.2,<0.38.0"
|
starlette = ">=0.37.2,<0.38.0"
|
||||||
typing-extensions = ">=4.8.0"
|
typing-extensions = ">=4.8.0"
|
||||||
|
ujson = ">=4.0.1,<4.0.2 || >4.0.2,<4.1.0 || >4.1.0,<4.2.0 || >4.2.0,<4.3.0 || >4.3.0,<5.0.0 || >5.0.0,<5.1.0 || >5.1.0"
|
||||||
|
uvicorn = {version = ">=0.12.0", extras = ["standard"]}
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
all = ["email_validator (>=2.0.0)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)", "jinja2 (>=2.11.2)", "orjson (>=3.2.1)", "pydantic-extra-types (>=2.0.0)", "pydantic-settings (>=2.0.0)", "python-multipart (>=0.0.7)", "pyyaml (>=5.3.1)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0)", "uvicorn[standard] (>=0.12.0)"]
|
all = ["email_validator (>=2.0.0)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)", "jinja2 (>=2.11.2)", "orjson (>=3.2.1)", "pydantic-extra-types (>=2.0.0)", "pydantic-settings (>=2.0.0)", "python-multipart (>=0.0.7)", "pyyaml (>=5.3.1)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0)", "uvicorn[standard] (>=0.12.0)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "fastapi-cli"
|
||||||
|
version = "0.0.4"
|
||||||
|
description = "Run and manage FastAPI apps from the command line with FastAPI CLI. 🚀"
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "fastapi_cli-0.0.4-py3-none-any.whl", hash = "sha256:a2552f3a7ae64058cdbb530be6fa6dbfc975dc165e4fa66d224c3d396e25e809"},
|
||||||
|
{file = "fastapi_cli-0.0.4.tar.gz", hash = "sha256:e2e9ffaffc1f7767f488d6da34b6f5a377751c996f397902eb6abb99a67bde32"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
typer = ">=0.12.3"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
standard = ["fastapi", "uvicorn[standard] (>=0.15.0)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "filelock"
|
name = "filelock"
|
||||||
version = "3.14.0"
|
version = "3.14.0"
|
||||||
@@ -1145,13 +1205,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "jinja2"
|
name = "jinja2"
|
||||||
version = "3.1.3"
|
version = "3.1.4"
|
||||||
description = "A very fast and expressive template engine."
|
description = "A very fast and expressive template engine."
|
||||||
optional = true
|
optional = true
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.7"
|
||||||
files = [
|
files = [
|
||||||
{file = "Jinja2-3.1.3-py3-none-any.whl", hash = "sha256:7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa"},
|
{file = "jinja2-3.1.4-py3-none-any.whl", hash = "sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d"},
|
||||||
{file = "Jinja2-3.1.3.tar.gz", hash = "sha256:ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90"},
|
{file = "jinja2-3.1.4.tar.gz", hash = "sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1178,6 +1238,30 @@ win32-setctime = {version = ">=1.0.0", markers = "sys_platform == \"win32\""}
|
|||||||
[package.extras]
|
[package.extras]
|
||||||
dev = ["Sphinx (==7.2.5)", "colorama (==0.4.5)", "colorama (==0.4.6)", "exceptiongroup (==1.1.3)", "freezegun (==1.1.0)", "freezegun (==1.2.2)", "mypy (==v0.910)", "mypy (==v0.971)", "mypy (==v1.4.1)", "mypy (==v1.5.1)", "pre-commit (==3.4.0)", "pytest (==6.1.2)", "pytest (==7.4.0)", "pytest-cov (==2.12.1)", "pytest-cov (==4.1.0)", "pytest-mypy-plugins (==1.9.3)", "pytest-mypy-plugins (==3.0.0)", "sphinx-autobuild (==2021.3.14)", "sphinx-rtd-theme (==1.3.0)", "tox (==3.27.1)", "tox (==4.11.0)"]
|
dev = ["Sphinx (==7.2.5)", "colorama (==0.4.5)", "colorama (==0.4.6)", "exceptiongroup (==1.1.3)", "freezegun (==1.1.0)", "freezegun (==1.2.2)", "mypy (==v0.910)", "mypy (==v0.971)", "mypy (==v1.4.1)", "mypy (==v1.5.1)", "pre-commit (==3.4.0)", "pytest (==6.1.2)", "pytest (==7.4.0)", "pytest-cov (==2.12.1)", "pytest-cov (==4.1.0)", "pytest-mypy-plugins (==1.9.3)", "pytest-mypy-plugins (==3.0.0)", "sphinx-autobuild (==2021.3.14)", "sphinx-rtd-theme (==1.3.0)", "tox (==3.27.1)", "tox (==4.11.0)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "markdown-it-py"
|
||||||
|
version = "3.0.0"
|
||||||
|
description = "Python port of markdown-it. Markdown parsing, done right!"
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb"},
|
||||||
|
{file = "markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
mdurl = ">=0.1,<1.0"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
benchmarking = ["psutil", "pytest", "pytest-benchmark"]
|
||||||
|
code-style = ["pre-commit (>=3.0,<4.0)"]
|
||||||
|
compare = ["commonmark (>=0.9,<1.0)", "markdown (>=3.4,<4.0)", "mistletoe (>=1.0,<2.0)", "mistune (>=2.0,<3.0)", "panflute (>=2.3,<3.0)"]
|
||||||
|
linkify = ["linkify-it-py (>=1,<3)"]
|
||||||
|
plugins = ["mdit-py-plugins"]
|
||||||
|
profiling = ["gprof2dot"]
|
||||||
|
rtd = ["jupyter_sphinx", "mdit-py-plugins", "myst-parser", "pyyaml", "sphinx", "sphinx-copybutton", "sphinx-design", "sphinx_book_theme"]
|
||||||
|
testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "markupsafe"
|
name = "markupsafe"
|
||||||
version = "2.1.5"
|
version = "2.1.5"
|
||||||
@@ -1247,6 +1331,17 @@ files = [
|
|||||||
{file = "MarkupSafe-2.1.5.tar.gz", hash = "sha256:d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b"},
|
{file = "MarkupSafe-2.1.5.tar.gz", hash = "sha256:d283d37a890ba4c1ae73ffadf8046435c76e7bc2247bbb63c00bd1a709c6544b"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "mdurl"
|
||||||
|
version = "0.1.2"
|
||||||
|
description = "Markdown URL utilities"
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
files = [
|
||||||
|
{file = "mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"},
|
||||||
|
{file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "multidict"
|
name = "multidict"
|
||||||
version = "6.0.5"
|
version = "6.0.5"
|
||||||
@@ -1454,6 +1549,61 @@ files = [
|
|||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
prompt-toolkit = ">=3.0.19,<4.0.0"
|
prompt-toolkit = ">=3.0.19,<4.0.0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "orjson"
|
||||||
|
version = "3.10.3"
|
||||||
|
description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:9fb6c3f9f5490a3eb4ddd46fc1b6eadb0d6fc16fb3f07320149c3286a1409dd8"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:252124b198662eee80428f1af8c63f7ff077c88723fe206a25df8dc57a57b1fa"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9f3e87733823089a338ef9bbf363ef4de45e5c599a9bf50a7a9b82e86d0228da"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c8334c0d87103bb9fbbe59b78129f1f40d1d1e8355bbed2ca71853af15fa4ed3"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1952c03439e4dce23482ac846e7961f9d4ec62086eb98ae76d97bd41d72644d7"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:c0403ed9c706dcd2809f1600ed18f4aae50be263bd7112e54b50e2c2bc3ebd6d"},
|
||||||
|
{file = "orjson-3.10.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:382e52aa4270a037d41f325e7d1dfa395b7de0c367800b6f337d8157367bf3a7"},
|
||||||
|
{file = "orjson-3.10.3-cp310-none-win32.whl", hash = "sha256:be2aab54313752c04f2cbaab4515291ef5af8c2256ce22abc007f89f42f49109"},
|
||||||
|
{file = "orjson-3.10.3-cp310-none-win_amd64.whl", hash = "sha256:416b195f78ae461601893f482287cee1e3059ec49b4f99479aedf22a20b1098b"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:73100d9abbbe730331f2242c1fc0bcb46a3ea3b4ae3348847e5a141265479700"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:544a12eee96e3ab828dbfcb4d5a0023aa971b27143a1d35dc214c176fdfb29b3"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:520de5e2ef0b4ae546bea25129d6c7c74edb43fc6cf5213f511a927f2b28148b"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ccaa0a401fc02e8828a5bedfd80f8cd389d24f65e5ca3954d72c6582495b4bcf"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a7bc9e8bc11bac40f905640acd41cbeaa87209e7e1f57ade386da658092dc16"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:3582b34b70543a1ed6944aca75e219e1192661a63da4d039d088a09c67543b08"},
|
||||||
|
{file = "orjson-3.10.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1c23dfa91481de880890d17aa7b91d586a4746a4c2aa9a145bebdbaf233768d5"},
|
||||||
|
{file = "orjson-3.10.3-cp311-none-win32.whl", hash = "sha256:1770e2a0eae728b050705206d84eda8b074b65ee835e7f85c919f5705b006c9b"},
|
||||||
|
{file = "orjson-3.10.3-cp311-none-win_amd64.whl", hash = "sha256:93433b3c1f852660eb5abdc1f4dd0ced2be031ba30900433223b28ee0140cde5"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:a39aa73e53bec8d410875683bfa3a8edf61e5a1c7bb4014f65f81d36467ea098"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0943a96b3fa09bee1afdfccc2cb236c9c64715afa375b2af296c73d91c23eab2"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e852baafceff8da3c9defae29414cc8513a1586ad93e45f27b89a639c68e8176"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:18566beb5acd76f3769c1d1a7ec06cdb81edc4d55d2765fb677e3eaa10fa99e0"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1bd2218d5a3aa43060efe649ec564ebedec8ce6ae0a43654b81376216d5ebd42"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:cf20465e74c6e17a104ecf01bf8cd3b7b252565b4ccee4548f18b012ff2f8069"},
|
||||||
|
{file = "orjson-3.10.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ba7f67aa7f983c4345eeda16054a4677289011a478ca947cd69c0a86ea45e534"},
|
||||||
|
{file = "orjson-3.10.3-cp312-none-win32.whl", hash = "sha256:17e0713fc159abc261eea0f4feda611d32eabc35708b74bef6ad44f6c78d5ea0"},
|
||||||
|
{file = "orjson-3.10.3-cp312-none-win_amd64.whl", hash = "sha256:4c895383b1ec42b017dd2c75ae8a5b862fc489006afde06f14afbdd0309b2af0"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:be2719e5041e9fb76c8c2c06b9600fe8e8584e6980061ff88dcbc2691a16d20d"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cb0175a5798bdc878956099f5c54b9837cb62cfbf5d0b86ba6d77e43861bcec2"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:978be58a68ade24f1af7758626806e13cff7748a677faf95fbb298359aa1e20d"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:16bda83b5c61586f6f788333d3cf3ed19015e3b9019188c56983b5a299210eb5"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4ad1f26bea425041e0a1adad34630c4825a9e3adec49079b1fb6ac8d36f8b754"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:9e253498bee561fe85d6325ba55ff2ff08fb5e7184cd6a4d7754133bd19c9195"},
|
||||||
|
{file = "orjson-3.10.3-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:0a62f9968bab8a676a164263e485f30a0b748255ee2f4ae49a0224be95f4532b"},
|
||||||
|
{file = "orjson-3.10.3-cp38-none-win32.whl", hash = "sha256:8d0b84403d287d4bfa9bf7d1dc298d5c1c5d9f444f3737929a66f2fe4fb8f134"},
|
||||||
|
{file = "orjson-3.10.3-cp38-none-win_amd64.whl", hash = "sha256:8bc7a4df90da5d535e18157220d7915780d07198b54f4de0110eca6b6c11e290"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:9059d15c30e675a58fdcd6f95465c1522b8426e092de9fff20edebfdc15e1cb0"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8d40c7f7938c9c2b934b297412c067936d0b54e4b8ab916fd1a9eb8f54c02294"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d4a654ec1de8fdaae1d80d55cee65893cb06494e124681ab335218be6a0691e7"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:831c6ef73f9aa53c5f40ae8f949ff7681b38eaddb6904aab89dca4d85099cb78"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:99b880d7e34542db89f48d14ddecbd26f06838b12427d5a25d71baceb5ba119d"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:2e5e176c994ce4bd434d7aafb9ecc893c15f347d3d2bbd8e7ce0b63071c52e25"},
|
||||||
|
{file = "orjson-3.10.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:b69a58a37dab856491bf2d3bbf259775fdce262b727f96aafbda359cb1d114d8"},
|
||||||
|
{file = "orjson-3.10.3-cp39-none-win32.whl", hash = "sha256:b8d4d1a6868cde356f1402c8faeb50d62cee765a1f7ffcfd6de732ab0581e063"},
|
||||||
|
{file = "orjson-3.10.3-cp39-none-win_amd64.whl", hash = "sha256:5102f50c5fc46d94f2033fe00d392588564378260d64377aec702f21a7a22912"},
|
||||||
|
{file = "orjson-3.10.3.tar.gz", hash = "sha256:2b166507acae7ba2f7c315dcf185a9111ad5e992ac81f2d507aac39193c2c818"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "packaging"
|
name = "packaging"
|
||||||
version = "24.0"
|
version = "24.0"
|
||||||
@@ -1478,13 +1628,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "platformdirs"
|
name = "platformdirs"
|
||||||
version = "4.2.1"
|
version = "4.2.2"
|
||||||
description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`."
|
description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "platformdirs-4.2.1-py3-none-any.whl", hash = "sha256:17d5a1161b3fd67b390023cb2d3b026bbd40abde6fdb052dfbd3a29c3ba22ee1"},
|
{file = "platformdirs-4.2.2-py3-none-any.whl", hash = "sha256:2d7a1657e36a80ea911db832a8a6ece5ee53d8de21edd5cc5879af6530b1bfee"},
|
||||||
{file = "platformdirs-4.2.1.tar.gz", hash = "sha256:031cd18d4ec63ec53e82dceaac0417d218a6863f7745dfcc9efe7793b7039bdf"},
|
{file = "platformdirs-4.2.2.tar.gz", hash = "sha256:38b7b51f512eed9e84a22788b4bce1de17c0adb134d6becb09836e37d8654cd3"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
@@ -1509,13 +1659,13 @@ testing = ["pytest", "pytest-benchmark"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pre-commit"
|
name = "pre-commit"
|
||||||
version = "3.7.0"
|
version = "3.7.1"
|
||||||
description = "A framework for managing and maintaining multi-language pre-commit hooks."
|
description = "A framework for managing and maintaining multi-language pre-commit hooks."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.9"
|
python-versions = ">=3.9"
|
||||||
files = [
|
files = [
|
||||||
{file = "pre_commit-3.7.0-py2.py3-none-any.whl", hash = "sha256:5eae9e10c2b5ac51577c3452ec0a490455c45a0533f7960f993a0d01e59decab"},
|
{file = "pre_commit-3.7.1-py2.py3-none-any.whl", hash = "sha256:fae36fd1d7ad7d6a5a1c0b0d5adb2ed1a3bda5a21bf6c3e5372073d7a11cd4c5"},
|
||||||
{file = "pre_commit-3.7.0.tar.gz", hash = "sha256:e209d61b8acdcf742404408531f0c37d49d2c734fd7cff2d6076083d191cb060"},
|
{file = "pre_commit-3.7.1.tar.gz", hash = "sha256:8ca3ad567bc78a4972a3f1a477e94a79d4597e8140a6e0b651c5e33899c3654a"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1737,6 +1887,20 @@ files = [
|
|||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0"
|
typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pygments"
|
||||||
|
version = "2.18.0"
|
||||||
|
description = "Pygments is a syntax highlighting package written in Python."
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "pygments-2.18.0-py3-none-any.whl", hash = "sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a"},
|
||||||
|
{file = "pygments-2.18.0.tar.gz", hash = "sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
windows-terminal = ["colorama (>=0.4.6)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pygtrie"
|
name = "pygtrie"
|
||||||
version = "2.5.0"
|
version = "2.5.0"
|
||||||
@@ -1750,13 +1914,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pytest"
|
name = "pytest"
|
||||||
version = "8.2.0"
|
version = "8.2.1"
|
||||||
description = "pytest: simple powerful testing with Python"
|
description = "pytest: simple powerful testing with Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "pytest-8.2.0-py3-none-any.whl", hash = "sha256:1733f0620f6cda4095bbf0d9ff8022486e91892245bb9e7d5542c018f612f233"},
|
{file = "pytest-8.2.1-py3-none-any.whl", hash = "sha256:faccc5d332b8c3719f40283d0d44aa5cf101cec36f88cde9ed8f2bc0538612b1"},
|
||||||
{file = "pytest-8.2.0.tar.gz", hash = "sha256:d507d4482197eac0ba2bae2e9babf0672eb333017bcedaa5fb1a3d42c1174b3f"},
|
{file = "pytest-8.2.1.tar.gz", hash = "sha256:5046e5b46d8e4cac199c373041f26be56fdb81eb4e67dc11d4e10811fc3408fd"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1772,13 +1936,13 @@ dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pytest-asyncio"
|
name = "pytest-asyncio"
|
||||||
version = "0.23.6"
|
version = "0.23.7"
|
||||||
description = "Pytest support for asyncio"
|
description = "Pytest support for asyncio"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "pytest-asyncio-0.23.6.tar.gz", hash = "sha256:ffe523a89c1c222598c76856e76852b787504ddb72dd5d9b6617ffa8aa2cde5f"},
|
{file = "pytest_asyncio-0.23.7-py3-none-any.whl", hash = "sha256:009b48127fbe44518a547bddd25611551b0e43ccdbf1e67d12479f569832c20b"},
|
||||||
{file = "pytest_asyncio-0.23.6-py3-none-any.whl", hash = "sha256:68516fdd1018ac57b846c9846b954f0393b26f094764a28c955eabb0536a4e8a"},
|
{file = "pytest_asyncio-0.23.7.tar.gz", hash = "sha256:5f5c72948f4c49e7db4f29f2521d4031f1c27f86e57b046126654083d4770268"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1840,6 +2004,20 @@ files = [
|
|||||||
[package.extras]
|
[package.extras]
|
||||||
cli = ["click (>=5.0)"]
|
cli = ["click (>=5.0)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "python-multipart"
|
||||||
|
version = "0.0.9"
|
||||||
|
description = "A streaming multipart parser for Python"
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "python_multipart-0.0.9-py3-none-any.whl", hash = "sha256:97ca7b8ea7b05f977dc3849c3ba99d51689822fab725c3703af7c866a0c2b215"},
|
||||||
|
{file = "python_multipart-0.0.9.tar.gz", hash = "sha256:03f54688c663f1b7977105f021043b0793151e4cb1c1a9d4a11fc13d622c4026"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
dev = ["atomicwrites (==1.4.1)", "attrs (==23.2.0)", "coverage (==7.4.1)", "hatch", "invoke (==2.2.0)", "more-itertools (==10.2.0)", "pbr (==6.0.0)", "pluggy (==1.4.0)", "py (==1.11.0)", "pytest (==8.0.0)", "pytest-cov (==4.1.0)", "pytest-timeout (==2.2.0)", "pyyaml (==6.0.1)", "ruff (==0.2.1)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pyyaml"
|
name = "pyyaml"
|
||||||
version = "6.0.1"
|
version = "6.0.1"
|
||||||
@@ -1902,13 +2080,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "quart"
|
name = "quart"
|
||||||
version = "0.19.5"
|
version = "0.19.6"
|
||||||
description = "A Python ASGI web microframework with the same API as Flask"
|
description = "A Python ASGI web microframework with the same API as Flask"
|
||||||
optional = true
|
optional = true
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "quart-0.19.5-py3-none-any.whl", hash = "sha256:581d959bda40d3c45500c50007a6451a157fd381c70d3556811bdd334adb9657"},
|
{file = "quart-0.19.6-py3-none-any.whl", hash = "sha256:f9092310f4eb120903da692a5e4354f05d48c28ca7ec3054d3d94dd862412c58"},
|
||||||
{file = "quart-0.19.5.tar.gz", hash = "sha256:fbe3cff25cd18b5c0e8d82bbeeaa43d78f35e5221ca5c50bb0b7c20255c87ab8"},
|
{file = "quart-0.19.6.tar.gz", hash = "sha256:89ddda6da24300a5ea4f21e4582d5e89bc8ea678e724e0b747767143401e4558"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1949,30 +2127,48 @@ urllib3 = ">=1.21.1,<3"
|
|||||||
socks = ["PySocks (>=1.5.6,!=1.5.7)"]
|
socks = ["PySocks (>=1.5.6,!=1.5.7)"]
|
||||||
use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
|
use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rich"
|
||||||
|
version = "13.7.1"
|
||||||
|
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.7.0"
|
||||||
|
files = [
|
||||||
|
{file = "rich-13.7.1-py3-none-any.whl", hash = "sha256:4edbae314f59eb482f54e9e30bf00d33350aaa94f4bfcd4e9e3110e64d0d7222"},
|
||||||
|
{file = "rich-13.7.1.tar.gz", hash = "sha256:9be308cb1fe2f1f57d67ce99e95af38a1e2bc71ad9813b0e247cf7ffbcc3a432"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
markdown-it-py = ">=2.2.0"
|
||||||
|
pygments = ">=2.13.0,<3.0.0"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
jupyter = ["ipywidgets (>=7.5.1,<9)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ruff"
|
name = "ruff"
|
||||||
version = "0.4.2"
|
version = "0.4.4"
|
||||||
description = "An extremely fast Python linter and code formatter, written in Rust."
|
description = "An extremely fast Python linter and code formatter, written in Rust."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.7"
|
||||||
files = [
|
files = [
|
||||||
{file = "ruff-0.4.2-py3-none-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:8d14dc8953f8af7e003a485ef560bbefa5f8cc1ad994eebb5b12136049bbccc5"},
|
{file = "ruff-0.4.4-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:29d44ef5bb6a08e235c8249294fa8d431adc1426bfda99ed493119e6f9ea1bf6"},
|
||||||
{file = "ruff-0.4.2-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:24016ed18db3dc9786af103ff49c03bdf408ea253f3cb9e3638f39ac9cf2d483"},
|
{file = "ruff-0.4.4-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c4efe62b5bbb24178c950732ddd40712b878a9b96b1d02b0ff0b08a090cbd891"},
|
||||||
{file = "ruff-0.4.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0e2e06459042ac841ed510196c350ba35a9b24a643e23db60d79b2db92af0c2b"},
|
{file = "ruff-0.4.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4c8e2f1e8fc12d07ab521a9005d68a969e167b589cbcaee354cb61e9d9de9c15"},
|
||||||
{file = "ruff-0.4.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3afabaf7ba8e9c485a14ad8f4122feff6b2b93cc53cd4dad2fd24ae35112d5c5"},
|
{file = "ruff-0.4.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:60ed88b636a463214905c002fa3eaab19795679ed55529f91e488db3fe8976ab"},
|
||||||
{file = "ruff-0.4.2-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:799eb468ea6bc54b95527143a4ceaf970d5aa3613050c6cff54c85fda3fde480"},
|
{file = "ruff-0.4.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b90fc5e170fc71c712cc4d9ab0e24ea505c6a9e4ebf346787a67e691dfb72e85"},
|
||||||
{file = "ruff-0.4.2-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:ec4ba9436a51527fb6931a8839af4c36a5481f8c19e8f5e42c2f7ad3a49f5069"},
|
{file = "ruff-0.4.4-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:8e7e6ebc10ef16dcdc77fd5557ee60647512b400e4a60bdc4849468f076f6eef"},
|
||||||
{file = "ruff-0.4.2-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6a2243f8f434e487c2a010c7252150b1fdf019035130f41b77626f5655c9ca22"},
|
{file = "ruff-0.4.4-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b9ddb2c494fb79fc208cd15ffe08f32b7682519e067413dbaf5f4b01a6087bcd"},
|
||||||
{file = "ruff-0.4.2-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8772130a063f3eebdf7095da00c0b9898bd1774c43b336272c3e98667d4fb8fa"},
|
{file = "ruff-0.4.4-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c51c928a14f9f0a871082603e25a1588059b7e08a920f2f9fa7157b5bf08cfe9"},
|
||||||
{file = "ruff-0.4.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ab165ef5d72392b4ebb85a8b0fbd321f69832a632e07a74794c0e598e7a8376"},
|
{file = "ruff-0.4.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b5eb0a4bfd6400b7d07c09a7725e1a98c3b838be557fee229ac0f84d9aa49c36"},
|
||||||
{file = "ruff-0.4.2-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:1f32cadf44c2020e75e0c56c3408ed1d32c024766bd41aedef92aa3ca28eef68"},
|
{file = "ruff-0.4.4-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:b1867ee9bf3acc21778dcb293db504692eda5f7a11a6e6cc40890182a9f9e595"},
|
||||||
{file = "ruff-0.4.2-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:22e306bf15e09af45ca812bc42fa59b628646fa7c26072555f278994890bc7ac"},
|
{file = "ruff-0.4.4-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:1aecced1269481ef2894cc495647392a34b0bf3e28ff53ed95a385b13aa45768"},
|
||||||
{file = "ruff-0.4.2-py3-none-musllinux_1_2_i686.whl", hash = "sha256:82986bb77ad83a1719c90b9528a9dd663c9206f7c0ab69282af8223566a0c34e"},
|
{file = "ruff-0.4.4-py3-none-musllinux_1_2_i686.whl", hash = "sha256:9da73eb616b3241a307b837f32756dc20a0b07e2bcb694fec73699c93d04a69e"},
|
||||||
{file = "ruff-0.4.2-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:652e4ba553e421a6dc2a6d4868bc3b3881311702633eb3672f9f244ded8908cd"},
|
{file = "ruff-0.4.4-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:958b4ea5589706a81065e2a776237de2ecc3e763342e5cc8e02a4a4d8a5e6f95"},
|
||||||
{file = "ruff-0.4.2-py3-none-win32.whl", hash = "sha256:7891ee376770ac094da3ad40c116258a381b86c7352552788377c6eb16d784fe"},
|
{file = "ruff-0.4.4-py3-none-win32.whl", hash = "sha256:cb53473849f011bca6e754f2cdf47cafc9c4f4ff4570003a0dad0b9b6890e876"},
|
||||||
{file = "ruff-0.4.2-py3-none-win_amd64.whl", hash = "sha256:5ec481661fb2fd88a5d6cf1f83403d388ec90f9daaa36e40e2c003de66751798"},
|
{file = "ruff-0.4.4-py3-none-win_amd64.whl", hash = "sha256:424e5b72597482543b684c11def82669cc6b395aa8cc69acc1858b5ef3e5daae"},
|
||||||
{file = "ruff-0.4.2-py3-none-win_arm64.whl", hash = "sha256:cbd1e87c71bca14792948c4ccb51ee61c3296e164019d2d484f3eaa2d360dfaf"},
|
{file = "ruff-0.4.4-py3-none-win_arm64.whl", hash = "sha256:39df0537b47d3b597293edbb95baf54ff5b49589eb7ff41926d8243caa995ea6"},
|
||||||
{file = "ruff-0.4.2.tar.gz", hash = "sha256:33bcc160aee2520664bc0859cfeaebc84bb7323becff3f303b8f1f2d81cb4edc"},
|
{file = "ruff-0.4.4.tar.gz", hash = "sha256:f87ea42d5cdebdc6a69761a9d0bc83ae9b3b30d0ad78952005ba6568d6c022af"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -1991,6 +2187,17 @@ docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments
|
|||||||
testing = ["build[virtualenv]", "filelock (>=3.4.0)", "importlib-metadata", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "mypy (==1.9)", "packaging (>=23.2)", "pip (>=19.1)", "pytest (>=6,!=8.1.1)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy", "pytest-perf", "pytest-ruff (>=0.2.1)", "pytest-timeout", "pytest-xdist (>=3)", "tomli", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"]
|
testing = ["build[virtualenv]", "filelock (>=3.4.0)", "importlib-metadata", "ini2toml[lite] (>=0.9)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "mypy (==1.9)", "packaging (>=23.2)", "pip (>=19.1)", "pytest (>=6,!=8.1.1)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-home (>=0.5)", "pytest-mypy", "pytest-perf", "pytest-ruff (>=0.2.1)", "pytest-timeout", "pytest-xdist (>=3)", "tomli", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"]
|
||||||
testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.2)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"]
|
testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "packaging (>=23.2)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "shellingham"
|
||||||
|
version = "1.5.4"
|
||||||
|
description = "Tool to Detect Surrounding Shell"
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
files = [
|
||||||
|
{file = "shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686"},
|
||||||
|
{file = "shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sniffio"
|
name = "sniffio"
|
||||||
version = "1.3.1"
|
version = "1.3.1"
|
||||||
@@ -2045,6 +2252,23 @@ files = [
|
|||||||
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
|
{file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "typer"
|
||||||
|
version = "0.12.3"
|
||||||
|
description = "Typer, build great CLIs. Easy to code. Based on Python type hints."
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.7"
|
||||||
|
files = [
|
||||||
|
{file = "typer-0.12.3-py3-none-any.whl", hash = "sha256:070d7ca53f785acbccba8e7d28b08dcd88f79f1fbda035ade0aecec71ca5c914"},
|
||||||
|
{file = "typer-0.12.3.tar.gz", hash = "sha256:49e73131481d804288ef62598d97a1ceef3058905aa536a1134f90891ba35482"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
click = ">=8.0.0"
|
||||||
|
rich = ">=10.11.0"
|
||||||
|
shellingham = ">=1.3.0"
|
||||||
|
typing-extensions = ">=3.7.4.3"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typing-extensions"
|
name = "typing-extensions"
|
||||||
version = "4.11.0"
|
version = "4.11.0"
|
||||||
@@ -2056,6 +2280,93 @@ files = [
|
|||||||
{file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"},
|
{file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ujson"
|
||||||
|
version = "5.10.0"
|
||||||
|
description = "Ultra fast JSON encoder and decoder for Python"
|
||||||
|
optional = true
|
||||||
|
python-versions = ">=3.8"
|
||||||
|
files = [
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2601aa9ecdbee1118a1c2065323bda35e2c5a2cf0797ef4522d485f9d3ef65bd"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:348898dd702fc1c4f1051bc3aacbf894caa0927fe2c53e68679c073375f732cf"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22cffecf73391e8abd65ef5f4e4dd523162a3399d5e84faa6aebbf9583df86d6"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26b0e2d2366543c1bb4fbd457446f00b0187a2bddf93148ac2da07a53fe51569"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:caf270c6dba1be7a41125cd1e4fc7ba384bf564650beef0df2dd21a00b7f5770"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a245d59f2ffe750446292b0094244df163c3dc96b3ce152a2c837a44e7cda9d1"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:94a87f6e151c5f483d7d54ceef83b45d3a9cca7a9cb453dbdbb3f5a6f64033f5"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:29b443c4c0a113bcbb792c88bea67b675c7ca3ca80c3474784e08bba01c18d51"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-win32.whl", hash = "sha256:c18610b9ccd2874950faf474692deee4223a994251bc0a083c114671b64e6518"},
|
||||||
|
{file = "ujson-5.10.0-cp310-cp310-win_amd64.whl", hash = "sha256:924f7318c31874d6bb44d9ee1900167ca32aa9b69389b98ecbde34c1698a250f"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a5b366812c90e69d0f379a53648be10a5db38f9d4ad212b60af00bd4048d0f00"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:502bf475781e8167f0f9d0e41cd32879d120a524b22358e7f205294224c71126"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5b91b5d0d9d283e085e821651184a647699430705b15bf274c7896f23fe9c9d8"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:129e39af3a6d85b9c26d5577169c21d53821d8cf68e079060602e861c6e5da1b"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f77b74475c462cb8b88680471193064d3e715c7c6074b1c8c412cb526466efe9"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7ec0ca8c415e81aa4123501fee7f761abf4b7f386aad348501a26940beb1860f"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ab13a2a9e0b2865a6c6db9271f4b46af1c7476bfd51af1f64585e919b7c07fd4"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:57aaf98b92d72fc70886b5a0e1a1ca52c2320377360341715dd3933a18e827b1"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-win32.whl", hash = "sha256:2987713a490ceb27edff77fb184ed09acdc565db700ee852823c3dc3cffe455f"},
|
||||||
|
{file = "ujson-5.10.0-cp311-cp311-win_amd64.whl", hash = "sha256:f00ea7e00447918ee0eff2422c4add4c5752b1b60e88fcb3c067d4a21049a720"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:98ba15d8cbc481ce55695beee9f063189dce91a4b08bc1d03e7f0152cd4bbdd5"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a9d2edbf1556e4f56e50fab7d8ff993dbad7f54bac68eacdd27a8f55f433578e"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6627029ae4f52d0e1a2451768c2c37c0c814ffc04f796eb36244cf16b8e57043"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f8ccb77b3e40b151e20519c6ae6d89bfe3f4c14e8e210d910287f778368bb3d1"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3caf9cd64abfeb11a3b661329085c5e167abbe15256b3b68cb5d914ba7396f3"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6e32abdce572e3a8c3d02c886c704a38a1b015a1fb858004e03d20ca7cecbb21"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:a65b6af4d903103ee7b6f4f5b85f1bfd0c90ba4eeac6421aae436c9988aa64a2"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:604a046d966457b6cdcacc5aa2ec5314f0e8c42bae52842c1e6fa02ea4bda42e"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-win32.whl", hash = "sha256:6dea1c8b4fc921bf78a8ff00bbd2bfe166345f5536c510671bccececb187c80e"},
|
||||||
|
{file = "ujson-5.10.0-cp312-cp312-win_amd64.whl", hash = "sha256:38665e7d8290188b1e0d57d584eb8110951a9591363316dd41cf8686ab1d0abc"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-macosx_10_9_x86_64.whl", hash = "sha256:618efd84dc1acbd6bff8eaa736bb6c074bfa8b8a98f55b61c38d4ca2c1f7f287"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:38d5d36b4aedfe81dfe251f76c0467399d575d1395a1755de391e58985ab1c2e"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:67079b1f9fb29ed9a2914acf4ef6c02844b3153913eb735d4bf287ee1db6e557"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7d0e0ceeb8fe2468c70ec0c37b439dd554e2aa539a8a56365fd761edb418988"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:59e02cd37bc7c44d587a0ba45347cc815fb7a5fe48de16bf05caa5f7d0d2e816"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:2a890b706b64e0065f02577bf6d8ca3b66c11a5e81fb75d757233a38c07a1f20"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:621e34b4632c740ecb491efc7f1fcb4f74b48ddb55e65221995e74e2d00bbff0"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:b9500e61fce0cfc86168b248104e954fead61f9be213087153d272e817ec7b4f"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-win32.whl", hash = "sha256:4c4fc16f11ac1612f05b6f5781b384716719547e142cfd67b65d035bd85af165"},
|
||||||
|
{file = "ujson-5.10.0-cp313-cp313-win_amd64.whl", hash = "sha256:4573fd1695932d4f619928fd09d5d03d917274381649ade4328091ceca175539"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:a984a3131da7f07563057db1c3020b1350a3e27a8ec46ccbfbf21e5928a43050"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:73814cd1b9db6fc3270e9d8fe3b19f9f89e78ee9d71e8bd6c9a626aeaeaf16bd"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:61e1591ed9376e5eddda202ec229eddc56c612b61ac6ad07f96b91460bb6c2fb"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2c75269f8205b2690db4572a4a36fe47cd1338e4368bc73a7a0e48789e2e35a"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7223f41e5bf1f919cd8d073e35b229295aa8e0f7b5de07ed1c8fddac63a6bc5d"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:d4dc2fd6b3067c0782e7002ac3b38cf48608ee6366ff176bbd02cf969c9c20fe"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:232cc85f8ee3c454c115455195a205074a56ff42608fd6b942aa4c378ac14dd7"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:cc6139531f13148055d691e442e4bc6601f6dba1e6d521b1585d4788ab0bfad4"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-win32.whl", hash = "sha256:e7ce306a42b6b93ca47ac4a3b96683ca554f6d35dd8adc5acfcd55096c8dfcb8"},
|
||||||
|
{file = "ujson-5.10.0-cp38-cp38-win_amd64.whl", hash = "sha256:e82d4bb2138ab05e18f089a83b6564fee28048771eb63cdecf4b9b549de8a2cc"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:dfef2814c6b3291c3c5f10065f745a1307d86019dbd7ea50e83504950136ed5b"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4734ee0745d5928d0ba3a213647f1c4a74a2a28edc6d27b2d6d5bd9fa4319e27"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d47ebb01bd865fdea43da56254a3930a413f0c5590372a1241514abae8aa7c76"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dee5e97c2496874acbf1d3e37b521dd1f307349ed955e62d1d2f05382bc36dd5"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7490655a2272a2d0b072ef16b0b58ee462f4973a8f6bbe64917ce5e0a256f9c0"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:ba17799fcddaddf5c1f75a4ba3fd6441f6a4f1e9173f8a786b42450851bd74f1"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:2aff2985cef314f21d0fecc56027505804bc78802c0121343874741650a4d3d1"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:ad88ac75c432674d05b61184178635d44901eb749786c8eb08c102330e6e8996"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-win32.whl", hash = "sha256:2544912a71da4ff8c4f7ab5606f947d7299971bdd25a45e008e467ca638d13c9"},
|
||||||
|
{file = "ujson-5.10.0-cp39-cp39-win_amd64.whl", hash = "sha256:3ff201d62b1b177a46f113bb43ad300b424b7847f9c5d38b1b4ad8f75d4a282a"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:5b6fee72fa77dc172a28f21693f64d93166534c263adb3f96c413ccc85ef6e64"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:61d0af13a9af01d9f26d2331ce49bb5ac1fb9c814964018ac8df605b5422dcb3"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ecb24f0bdd899d368b715c9e6664166cf694d1e57be73f17759573a6986dd95a"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fbd8fd427f57a03cff3ad6574b5e299131585d9727c8c366da4624a9069ed746"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:beeaf1c48e32f07d8820c705ff8e645f8afa690cca1544adba4ebfa067efdc88"},
|
||||||
|
{file = "ujson-5.10.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:baed37ea46d756aca2955e99525cc02d9181de67f25515c468856c38d52b5f3b"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:7663960f08cd5a2bb152f5ee3992e1af7690a64c0e26d31ba7b3ff5b2ee66337"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl", hash = "sha256:d8640fb4072d36b08e95a3a380ba65779d356b2fee8696afeb7794cf0902d0a1"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78778a3aa7aafb11e7ddca4e29f46bc5139131037ad628cc10936764282d6753"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b0111b27f2d5c820e7f2dbad7d48e3338c824e7ac4d2a12da3dc6061cc39c8e6"},
|
||||||
|
{file = "ujson-5.10.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:c66962ca7565605b355a9ed478292da628b8f18c0f2793021ca4425abf8b01e5"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:ba43cc34cce49cf2d4bc76401a754a81202d8aa926d0e2b79f0ee258cb15d3a4"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:ac56eb983edce27e7f51d05bc8dd820586c6e6be1c5216a6809b0c668bb312b8"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f44bd4b23a0e723bf8b10628288c2c7c335161d6840013d4d5de20e48551773b"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7c10f4654e5326ec14a46bcdeb2b685d4ada6911050aa8baaf3501e57024b804"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0de4971a89a762398006e844ae394bd46991f7c385d7a6a3b93ba229e6dac17e"},
|
||||||
|
{file = "ujson-5.10.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:e1402f0564a97d2a52310ae10a64d25bcef94f8dd643fcf5d310219d915484f7"},
|
||||||
|
{file = "ujson-5.10.0.tar.gz", hash = "sha256:b3cd8f3c5d8c7738257f1018880444f7b7d9b66232c64649f562d7ba86ad4bc1"},
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "urllib3"
|
name = "urllib3"
|
||||||
version = "2.2.1"
|
version = "2.2.1"
|
||||||
@@ -2145,13 +2456,13 @@ test = ["Cython (>=0.29.36,<0.30.0)", "aiohttp (==3.9.0b0)", "aiohttp (>=3.8.1)"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "virtualenv"
|
name = "virtualenv"
|
||||||
version = "20.26.1"
|
version = "20.26.2"
|
||||||
description = "Virtual Python Environment builder"
|
description = "Virtual Python Environment builder"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.7"
|
||||||
files = [
|
files = [
|
||||||
{file = "virtualenv-20.26.1-py3-none-any.whl", hash = "sha256:7aa9982a728ae5892558bff6a2839c00b9ed145523ece2274fad6f414690ae75"},
|
{file = "virtualenv-20.26.2-py3-none-any.whl", hash = "sha256:a624db5e94f01ad993d476b9ee5346fdf7b9de43ccaee0e0197012dc838a0e9b"},
|
||||||
{file = "virtualenv-20.26.1.tar.gz", hash = "sha256:604bfdceaeece392802e6ae48e69cec49168b9c5f4a44e483963f9242eb0e78b"},
|
{file = "virtualenv-20.26.2.tar.gz", hash = "sha256:82bf0f4eebbb78d36ddaee0283d43fe5736b53880b8a8cdcd37390a07ac3741c"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -2344,13 +2655,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "werkzeug"
|
name = "werkzeug"
|
||||||
version = "3.0.2"
|
version = "3.0.3"
|
||||||
description = "The comprehensive WSGI web application library."
|
description = "The comprehensive WSGI web application library."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "werkzeug-3.0.2-py3-none-any.whl", hash = "sha256:3aac3f5da756f93030740bc235d3e09449efcf65f2f55e3602e1d851b8f48795"},
|
{file = "werkzeug-3.0.3-py3-none-any.whl", hash = "sha256:fc9645dc43e03e4d630d23143a04a7f947a9a3b5727cd535fdfe155a17cc48c8"},
|
||||||
{file = "werkzeug-3.0.2.tar.gz", hash = "sha256:e39b645a6ac92822588e7b39a692e7828724ceae0b0d702ef96701f90e70128d"},
|
{file = "werkzeug-3.0.3.tar.gz", hash = "sha256:097e5bfda9f0aba8da6b8545146def481d06aa7d3266e7448e2cccf67dd8bd18"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -2492,18 +2803,18 @@ multidict = ">=4.0"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zipp"
|
name = "zipp"
|
||||||
version = "3.18.1"
|
version = "3.18.2"
|
||||||
description = "Backport of pathlib-compatible object wrapper for zip files"
|
description = "Backport of pathlib-compatible object wrapper for zip files"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "zipp-3.18.1-py3-none-any.whl", hash = "sha256:206f5a15f2af3dbaee80769fb7dc6f249695e940acca08dfb2a4769fe61e538b"},
|
{file = "zipp-3.18.2-py3-none-any.whl", hash = "sha256:dce197b859eb796242b0622af1b8beb0a722d52aa2f57133ead08edd5bf5374e"},
|
||||||
{file = "zipp-3.18.1.tar.gz", hash = "sha256:2884ed22e7d8961de1c9a05142eb69a247f120291bc0206a00a7642f09b5b715"},
|
{file = "zipp-3.18.2.tar.gz", hash = "sha256:6278d9ddbcfb1f1089a88fde84481528b07b0e10474e09dcfe53dad4069fa059"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
|
docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
|
||||||
testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
|
testing = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more-itertools", "pytest (>=6,!=8.1.*)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"]
|
||||||
|
|
||||||
[extras]
|
[extras]
|
||||||
aiohttp = ["aiohttp"]
|
aiohttp = ["aiohttp"]
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "nonebot2"
|
name = "nonebot2"
|
||||||
version = "2.3.0"
|
version = "2.3.1"
|
||||||
description = "An asynchronous python bot framework."
|
description = "An asynchronous python bot framework."
|
||||||
authors = ["yanyongyu <yyy@nonebot.dev>"]
|
authors = ["yanyongyu <yyy@nonebot.dev>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@@ -7,6 +7,10 @@ async def get_bot(b: Bot) -> Bot:
|
|||||||
return b
|
return b
|
||||||
|
|
||||||
|
|
||||||
|
async def postpone_bot(b: "Bot") -> Bot:
|
||||||
|
return b
|
||||||
|
|
||||||
|
|
||||||
async def legacy_bot(bot):
|
async def legacy_bot(bot):
|
||||||
return bot
|
return bot
|
||||||
|
|
||||||
|
@@ -8,6 +8,10 @@ async def event(e: Event) -> Event:
|
|||||||
return e
|
return e
|
||||||
|
|
||||||
|
|
||||||
|
async def postpone_event(e: "Event") -> Event:
|
||||||
|
return e
|
||||||
|
|
||||||
|
|
||||||
async def legacy_event(event):
|
async def legacy_event(event):
|
||||||
return event
|
return event
|
||||||
|
|
||||||
|
@@ -9,6 +9,10 @@ async def matcher(m: Matcher) -> Matcher:
|
|||||||
return m
|
return m
|
||||||
|
|
||||||
|
|
||||||
|
async def postpone_matcher(m: "Matcher") -> Matcher:
|
||||||
|
return m
|
||||||
|
|
||||||
|
|
||||||
async def legacy_matcher(matcher):
|
async def legacy_matcher(matcher):
|
||||||
return matcher
|
return matcher
|
||||||
|
|
||||||
@@ -27,7 +31,7 @@ class BarMatcher(Matcher): ...
|
|||||||
|
|
||||||
|
|
||||||
async def union_matcher(
|
async def union_matcher(
|
||||||
m: Union[FooMatcher, BarMatcher]
|
m: Union[FooMatcher, BarMatcher],
|
||||||
) -> Union[FooMatcher, BarMatcher]:
|
) -> Union[FooMatcher, BarMatcher]:
|
||||||
return m
|
return m
|
||||||
|
|
||||||
|
@@ -25,6 +25,10 @@ async def state(x: T_State) -> T_State:
|
|||||||
return x
|
return x
|
||||||
|
|
||||||
|
|
||||||
|
async def postpone_state(x: "T_State") -> T_State:
|
||||||
|
return x
|
||||||
|
|
||||||
|
|
||||||
async def legacy_state(state):
|
async def legacy_state(state):
|
||||||
return state
|
return state
|
||||||
|
|
||||||
|
@@ -129,6 +129,7 @@ async def test_bot(app: App):
|
|||||||
union_bot,
|
union_bot,
|
||||||
legacy_bot,
|
legacy_bot,
|
||||||
generic_bot,
|
generic_bot,
|
||||||
|
postpone_bot,
|
||||||
not_legacy_bot,
|
not_legacy_bot,
|
||||||
generic_bot_none,
|
generic_bot_none,
|
||||||
)
|
)
|
||||||
@@ -138,6 +139,11 @@ async def test_bot(app: App):
|
|||||||
ctx.pass_params(bot=bot)
|
ctx.pass_params(bot=bot)
|
||||||
ctx.should_return(bot)
|
ctx.should_return(bot)
|
||||||
|
|
||||||
|
async with app.test_dependent(postpone_bot, allow_types=[BotParam]) as ctx:
|
||||||
|
bot = ctx.create_bot()
|
||||||
|
ctx.pass_params(bot=bot)
|
||||||
|
ctx.should_return(bot)
|
||||||
|
|
||||||
async with app.test_dependent(legacy_bot, allow_types=[BotParam]) as ctx:
|
async with app.test_dependent(legacy_bot, allow_types=[BotParam]) as ctx:
|
||||||
bot = ctx.create_bot()
|
bot = ctx.create_bot()
|
||||||
ctx.pass_params(bot=bot)
|
ctx.pass_params(bot=bot)
|
||||||
@@ -188,6 +194,7 @@ async def test_event(app: App):
|
|||||||
legacy_event,
|
legacy_event,
|
||||||
event_message,
|
event_message,
|
||||||
generic_event,
|
generic_event,
|
||||||
|
postpone_event,
|
||||||
event_plain_text,
|
event_plain_text,
|
||||||
not_legacy_event,
|
not_legacy_event,
|
||||||
generic_event_none,
|
generic_event_none,
|
||||||
@@ -201,6 +208,10 @@ async def test_event(app: App):
|
|||||||
ctx.pass_params(event=fake_event)
|
ctx.pass_params(event=fake_event)
|
||||||
ctx.should_return(fake_event)
|
ctx.should_return(fake_event)
|
||||||
|
|
||||||
|
async with app.test_dependent(postpone_event, allow_types=[EventParam]) as ctx:
|
||||||
|
ctx.pass_params(event=fake_event)
|
||||||
|
ctx.should_return(fake_event)
|
||||||
|
|
||||||
async with app.test_dependent(legacy_event, allow_types=[EventParam]) as ctx:
|
async with app.test_dependent(legacy_event, allow_types=[EventParam]) as ctx:
|
||||||
ctx.pass_params(event=fake_event)
|
ctx.pass_params(event=fake_event)
|
||||||
ctx.should_return(fake_event)
|
ctx.should_return(fake_event)
|
||||||
@@ -273,6 +284,7 @@ async def test_state(app: App):
|
|||||||
legacy_state,
|
legacy_state,
|
||||||
command_start,
|
command_start,
|
||||||
regex_matched,
|
regex_matched,
|
||||||
|
postpone_state,
|
||||||
not_legacy_state,
|
not_legacy_state,
|
||||||
command_whitespace,
|
command_whitespace,
|
||||||
shell_command_args,
|
shell_command_args,
|
||||||
@@ -302,6 +314,10 @@ async def test_state(app: App):
|
|||||||
ctx.pass_params(state=fake_state)
|
ctx.pass_params(state=fake_state)
|
||||||
ctx.should_return(fake_state)
|
ctx.should_return(fake_state)
|
||||||
|
|
||||||
|
async with app.test_dependent(postpone_state, allow_types=[StateParam]) as ctx:
|
||||||
|
ctx.pass_params(state=fake_state)
|
||||||
|
ctx.should_return(fake_state)
|
||||||
|
|
||||||
async with app.test_dependent(legacy_state, allow_types=[StateParam]) as ctx:
|
async with app.test_dependent(legacy_state, allow_types=[StateParam]) as ctx:
|
||||||
ctx.pass_params(state=fake_state)
|
ctx.pass_params(state=fake_state)
|
||||||
ctx.should_return(fake_state)
|
ctx.should_return(fake_state)
|
||||||
@@ -414,6 +430,7 @@ async def test_matcher(app: App):
|
|||||||
union_matcher,
|
union_matcher,
|
||||||
legacy_matcher,
|
legacy_matcher,
|
||||||
generic_matcher,
|
generic_matcher,
|
||||||
|
postpone_matcher,
|
||||||
not_legacy_matcher,
|
not_legacy_matcher,
|
||||||
generic_matcher_none,
|
generic_matcher_none,
|
||||||
)
|
)
|
||||||
@@ -425,6 +442,10 @@ async def test_matcher(app: App):
|
|||||||
ctx.pass_params(matcher=fake_matcher)
|
ctx.pass_params(matcher=fake_matcher)
|
||||||
ctx.should_return(fake_matcher)
|
ctx.should_return(fake_matcher)
|
||||||
|
|
||||||
|
async with app.test_dependent(postpone_matcher, allow_types=[MatcherParam]) as ctx:
|
||||||
|
ctx.pass_params(matcher=fake_matcher)
|
||||||
|
ctx.should_return(fake_matcher)
|
||||||
|
|
||||||
async with app.test_dependent(legacy_matcher, allow_types=[MatcherParam]) as ctx:
|
async with app.test_dependent(legacy_matcher, allow_types=[MatcherParam]) as ctx:
|
||||||
ctx.pass_params(matcher=fake_matcher)
|
ctx.pass_params(matcher=fake_matcher)
|
||||||
ctx.should_return(fake_matcher)
|
ctx.should_return(fake_matcher)
|
||||||
|
@@ -487,7 +487,7 @@ matcher = on_alconna(
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
from nonebot_plugin_alconna import Match, on_alconna
|
from nonebot_plugin_alconna import Match, on_alconna
|
||||||
from nonebot_plugin_alconna.builtins.plugins.discord import DiscordSlashExtension
|
from nonebot_plugin_alconna.builtins.extensions.discord import DiscordSlashExtension
|
||||||
|
|
||||||
|
|
||||||
alc = Alconna(
|
alc = Alconna(
|
||||||
|
@@ -251,6 +251,12 @@ const siteConfig = {
|
|||||||
src: "https://cdn.wwads.cn/js/makemoney.js",
|
src: "https://cdn.wwads.cn/js/makemoney.js",
|
||||||
async: true,
|
async: true,
|
||||||
},
|
},
|
||||||
|
// uwu logo
|
||||||
|
{
|
||||||
|
type: "text/javascript",
|
||||||
|
charset: "UTF-8",
|
||||||
|
src: "/uwu.js",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
presets: [
|
presets: [
|
||||||
|
@@ -47,6 +47,7 @@ function HomeHero(): JSX.Element {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="home-hero">
|
<div className="home-hero">
|
||||||
|
<img src="/img/uwu.svg" alt="uwu" className="home-hero-uwu" />
|
||||||
<img src={logo!.src} alt={logo!.alt} className="home-hero-logo" />
|
<img src={logo!.src} alt={logo!.alt} className="home-hero-logo" />
|
||||||
<h1 className="home-hero-title">
|
<h1 className="home-hero-title">
|
||||||
<span className="text-primary">None</span>
|
<span className="text-primary">None</span>
|
||||||
|
@@ -39,3 +39,16 @@
|
|||||||
@apply inline-block !max-w-[600px];
|
@apply inline-block !max-w-[600px];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.home-hero-uwu {
|
||||||
|
@apply hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-uwu="true"] .home-hero-uwu {
|
||||||
|
@apply block max-w-xs;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-uwu="true"] .home-hero-logo,
|
||||||
|
[data-uwu="true"] .home-hero-title {
|
||||||
|
@apply hidden;
|
||||||
|
}
|
||||||
|
@@ -5,6 +5,43 @@ toc_max_heading_level: 2
|
|||||||
|
|
||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
|
## v2.3.1
|
||||||
|
|
||||||
|
### 🐛 Bug 修复
|
||||||
|
|
||||||
|
- Fix: State ForwardRef 检测错误 [@yanyongyu](https://github.com/yanyongyu) ([#2698](https://github.com/nonebot/nonebot2/pull/2698))
|
||||||
|
|
||||||
|
### 📝 文档
|
||||||
|
|
||||||
|
- Docs: 修正 匹配扩展 中的示例 [@KomoriDev](https://github.com/KomoriDev) ([#2722](https://github.com/nonebot/nonebot2/pull/2722))
|
||||||
|
- Docs: 更新 Mirai 适配器说明 [@RF-Tar-Railt](https://github.com/RF-Tar-Railt) ([#2715](https://github.com/nonebot/nonebot2/pull/2715))
|
||||||
|
- Docs: 添加 Tailchat 适配器说明 [@eya46](https://github.com/eya46) ([#2694](https://github.com/nonebot/nonebot2/pull/2694))
|
||||||
|
- Docs: 添加 uwu logo [@StarHeartHunt](https://github.com/StarHeartHunt) ([#2689](https://github.com/nonebot/nonebot2/pull/2689))
|
||||||
|
|
||||||
|
### 💫 杂项
|
||||||
|
|
||||||
|
- Plugin: 移除已在 PyPI 上删除的 `covid` 插件和 `molar-mass` 插件 [@NCBM](https://github.com/NCBM) ([#2712](https://github.com/nonebot/nonebot2/pull/2712))
|
||||||
|
|
||||||
|
### 🍻 插件发布
|
||||||
|
|
||||||
|
- Plugin: 自定义人格和AI绘图的混合聊天BOT [@noneflow](https://github.com/noneflow) ([#2724](https://github.com/nonebot/nonebot2/pull/2724))
|
||||||
|
- Plugin: nonebot-plugin-calc24 [@noneflow](https://github.com/noneflow) ([#2721](https://github.com/nonebot/nonebot2/pull/2721))
|
||||||
|
- Plugin: nonebot-plugin-tsugu-bangdream-bot [@noneflow](https://github.com/noneflow) ([#2719](https://github.com/nonebot/nonebot2/pull/2719))
|
||||||
|
- Plugin: 科大讯飞星火大语言模型官方API聊天机器人插件 [@noneflow](https://github.com/noneflow) ([#2717](https://github.com/nonebot/nonebot2/pull/2717))
|
||||||
|
- Plugin: nonebot_plugin_valve_server_query [@noneflow](https://github.com/noneflow) ([#2711](https://github.com/nonebot/nonebot2/pull/2711))
|
||||||
|
- Plugin: 库洛游戏信息 [@noneflow](https://github.com/noneflow) ([#2706](https://github.com/nonebot/nonebot2/pull/2706))
|
||||||
|
- Plugin: BanG Dream! Tsugu Frontend [@noneflow](https://github.com/noneflow) ([#2708](https://github.com/nonebot/nonebot2/pull/2708))
|
||||||
|
- Plugin: 神秘学助手 [@noneflow](https://github.com/noneflow) ([#2700](https://github.com/nonebot/nonebot2/pull/2700))
|
||||||
|
- Plugin: nonebot-plugin-furryfusion [@noneflow](https://github.com/noneflow) ([#2705](https://github.com/nonebot/nonebot2/pull/2705))
|
||||||
|
- Plugin: nonebot-plugin-RanFurryPic [@noneflow](https://github.com/noneflow) ([#2703](https://github.com/nonebot/nonebot2/pull/2703))
|
||||||
|
- Plugin: with_ai_agents [@noneflow](https://github.com/noneflow) ([#2697](https://github.com/nonebot/nonebot2/pull/2697))
|
||||||
|
- Plugin: 番剧下载 [@noneflow](https://github.com/noneflow) ([#2691](https://github.com/nonebot/nonebot2/pull/2691))
|
||||||
|
|
||||||
|
### 🍻 适配器发布
|
||||||
|
|
||||||
|
- Adapter: Mirai [@noneflow](https://github.com/noneflow) ([#2714](https://github.com/nonebot/nonebot2/pull/2714))
|
||||||
|
- Adapter: Tailchat [@noneflow](https://github.com/noneflow) ([#2693](https://github.com/nonebot/nonebot2/pull/2693))
|
||||||
|
|
||||||
## v2.3.0
|
## v2.3.0
|
||||||
|
|
||||||
### 💥 破坏性变更
|
### 💥 破坏性变更
|
||||||
|
1
website/static/img/uwu.svg
Normal file
1
website/static/img/uwu.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 50 KiB |
2
website/static/uwu.js
Normal file
2
website/static/uwu.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
if (location.search.includes("?uwu"))
|
||||||
|
document.documentElement.setAttribute("data-uwu", "true");
|
@@ -1,44 +0,0 @@
|
|||||||
---
|
|
||||||
sidebar_position: 3
|
|
||||||
description: nonebot.drivers.httpx 模块
|
|
||||||
---
|
|
||||||
|
|
||||||
# nonebot.drivers.httpx
|
|
||||||
|
|
||||||
[HTTPX](https://www.python-httpx.org/) 驱动适配
|
|
||||||
|
|
||||||
```bash
|
|
||||||
nb driver install httpx
|
|
||||||
# 或者
|
|
||||||
pip install nonebot2[httpx]
|
|
||||||
```
|
|
||||||
|
|
||||||
:::tip 提示
|
|
||||||
本驱动仅支持客户端 HTTP 连接
|
|
||||||
:::
|
|
||||||
|
|
||||||
## _class_ `Mixin(<auto>)` {#Mixin}
|
|
||||||
|
|
||||||
- **说明:** HTTPX Mixin
|
|
||||||
|
|
||||||
- **参数**
|
|
||||||
|
|
||||||
auto
|
|
||||||
|
|
||||||
### _async method_ `request(setup)` {#Mixin-request}
|
|
||||||
|
|
||||||
- **参数**
|
|
||||||
|
|
||||||
- `setup` ([Request](index.md#Request))
|
|
||||||
|
|
||||||
- **返回**
|
|
||||||
|
|
||||||
- [Response](index.md#Response)
|
|
||||||
|
|
||||||
## _class_ `Driver(env, config)` {#Driver}
|
|
||||||
|
|
||||||
- **参数**
|
|
||||||
|
|
||||||
- `env` ([Env](../config.md#Env))
|
|
||||||
|
|
||||||
- `config` ([Config](../config.md#Config))
|
|
@@ -8,7 +8,7 @@ slug: /
|
|||||||
|
|
||||||
NoneBot2 是一个现代、跨平台、可扩展的 Python 聊天机器人框架(下称 NoneBot),它基于 Python 的类型注解和异步优先特性(兼容同步),能够为你的需求实现提供便捷灵活的支持。同时,NoneBot 拥有大量的开发者为其开发插件,用户无需编写任何代码,仅需完成环境配置及插件安装,就可以正常使用 NoneBot。
|
NoneBot2 是一个现代、跨平台、可扩展的 Python 聊天机器人框架(下称 NoneBot),它基于 Python 的类型注解和异步优先特性(兼容同步),能够为你的需求实现提供便捷灵活的支持。同时,NoneBot 拥有大量的开发者为其开发插件,用户无需编写任何代码,仅需完成环境配置及插件安装,就可以正常使用 NoneBot。
|
||||||
|
|
||||||
需要注意的是,NoneBot 仅支持 **Python 3.8 以上版本**
|
需要注意的是,NoneBot 仅支持 **Python 3.9 以上版本**
|
||||||
|
|
||||||
## 特色
|
## 特色
|
||||||
|
|
@@ -89,7 +89,7 @@ async def _(bot): ... # 兼容性处理
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="3.9" label="Python 3.9">
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from typing import Union
|
from typing import Union
|
||||||
@@ -127,7 +127,7 @@ async def _(event): ... # 兼容性处理
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="3.9" label="Python 3.9">
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from typing import Union
|
from typing import Union
|
||||||
@@ -191,7 +191,7 @@ async def _(e: ActionFailed | NetworkError): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="3.9" label="Python 3.9">
|
||||||
|
|
||||||
```python {6,9}
|
```python {6,9}
|
||||||
from typing import Union
|
from typing import Union
|
||||||
@@ -216,8 +216,8 @@ async def _(e: Union[ActionFailed, NetworkError]): ...
|
|||||||
|
|
||||||
子依赖使用 `Depends` 标记进行定义,其参数即依赖的函数或可调用对象,同样会被解析为 `Dependent` 对象,将会在依赖注入期间执行。我们来看一个例子:
|
子依赖使用 `Depends` 标记进行定义,其参数即依赖的函数或可调用对象,同样会被解析为 `Dependent` 对象,将会在依赖注入期间执行。我们来看一个例子:
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {5,15}
|
```python {5,15}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -239,7 +239,7 @@ async def _(event: Annotated[Event, Depends(check)]):
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3,13}
|
```python {3,13}
|
||||||
from nonebot import on_command
|
from nonebot import on_command
|
||||||
@@ -287,8 +287,8 @@ async def _():
|
|||||||
|
|
||||||
NoneBot 在执行子依赖时,会将其返回值缓存起来。当我们在使用子依赖时,`Depends` 具有一个参数 `use_cache`,默认为 `True`。此时在事件处理流程中,多次使用同一个子依赖时,将会使用缓存中的结果而不会重复执行。这在很多情景中非常有用,例如:
|
NoneBot 在执行子依赖时,会将其返回值缓存起来。当我们在使用子依赖时,`Depends` 具有一个参数 `use_cache`,默认为 `True`。此时在事件处理流程中,多次使用同一个子依赖时,将会使用缓存中的结果而不会重复执行。这在很多情景中非常有用,例如:
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {7}
|
```python {7}
|
||||||
import random
|
import random
|
||||||
@@ -302,7 +302,7 @@ async def _(x: Annotated[int, Depends(random_result)]):
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {6}
|
```python {6}
|
||||||
import random
|
import random
|
||||||
@@ -319,8 +319,8 @@ async def _(x: int = Depends(random_result)):
|
|||||||
|
|
||||||
此时,在同一事件处理流程中,这个随机函数的返回值将会保持一致。如果我们希望每次都重新执行子依赖,可以将 `use_cache` 设置为 `False`。
|
此时,在同一事件处理流程中,这个随机函数的返回值将会保持一致。如果我们希望每次都重新执行子依赖,可以将 `use_cache` 设置为 `False`。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {7}
|
```python {7}
|
||||||
import random
|
import random
|
||||||
@@ -334,7 +334,7 @@ async def _(x: Annotated[int, Depends(random_result, use_cache=False)]):
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {6}
|
```python {6}
|
||||||
import random
|
import random
|
||||||
@@ -357,8 +357,8 @@ async def _(x: int = Depends(random_result, use_cache=False)):
|
|||||||
|
|
||||||
在依赖注入系统中,我们可以对子依赖的返回值进行自动类型转换与校验。这个功能由 Pydantic 支持,因此我们通过参数类型注解自动使用 Pydantic 支持的类型转换。例如:
|
在依赖注入系统中,我们可以对子依赖的返回值进行自动类型转换与校验。这个功能由 Pydantic 支持,因此我们通过参数类型注解自动使用 Pydantic 支持的类型转换。例如:
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {6,9}
|
```python {6,9}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -374,7 +374,7 @@ async def _(user_id: Annotated[int, Depends(get_user_id, validate=True)]):
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {4,7}
|
```python {4,7}
|
||||||
from nonebot.params import Depends
|
from nonebot.params import Depends
|
||||||
@@ -392,8 +392,8 @@ async def _(user_id: int = Depends(get_user_id, validate=True)):
|
|||||||
|
|
||||||
在进行类型自动转换的同时,Pydantic 还支持对数据进行更多的限制,如:大于、小于、长度等。使用方法如下:
|
在进行类型自动转换的同时,Pydantic 还支持对数据进行更多的限制,如:大于、小于、长度等。使用方法如下:
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {7,10}
|
```python {7,10}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -410,7 +410,7 @@ async def _(user_id: Annotated[int, Depends(get_user_id, validate=Field(gt=100))
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {5,8}
|
```python {5,8}
|
||||||
from pydantic import Field
|
from pydantic import Field
|
||||||
@@ -431,8 +431,8 @@ async def _(user_id: int = Depends(get_user_id, validate=Field(gt=100))):
|
|||||||
|
|
||||||
在前面的事例中,我们使用了函数作为子依赖。实际上,我们还可以使用类作为依赖。当我们在实例化一个类的时候,其实我们就在调用它,类本身也是一个可调用对象。例如:
|
在前面的事例中,我们使用了函数作为子依赖。实际上,我们还可以使用类作为依赖。当我们在实例化一个类的时候,其实我们就在调用它,类本身也是一个可调用对象。例如:
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {16}
|
```python {16}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -455,7 +455,7 @@ async def _(data: Annotated[ClassDependency, Depends(ClassDependency)]):
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {15}
|
```python {15}
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
@@ -481,8 +481,8 @@ async def _(data: ClassDependency = Depends(ClassDependency)):
|
|||||||
|
|
||||||
可以看到,我们使用 `dataclass` 定义了一个类。由于这个类的 `__init__` 方法可以被依赖注入系统解析,因此,我们可以将其作为子依赖进行声明。特别地,对于类依赖,`Depends` 的参数可以为空,NoneBot 将会使用参数的类型注解进行解析与推断:
|
可以看到,我们使用 `dataclass` 定义了一个类。由于这个类的 `__init__` 方法可以被依赖注入系统解析,因此,我们可以将其作为子依赖进行声明。特别地,对于类依赖,`Depends` 的参数可以为空,NoneBot 将会使用参数的类型注解进行解析与推断:
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -492,7 +492,7 @@ async def _(data: Annotated[ClassDependency, Depends()]):
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python
|
```python
|
||||||
async def _(data: ClassDependency = Depends()):
|
async def _(data: ClassDependency = Depends()):
|
||||||
@@ -510,11 +510,12 @@ NoneBot 的依赖注入支持依赖项在事件处理流程结束后进行一些
|
|||||||
|
|
||||||
我们可以看下述代码段, 使用 `httpx.AsyncClient` 异步网络 IO,并在事件处理流程中共用一个 client:
|
我们可以看下述代码段, 使用 `httpx.AsyncClient` 异步网络 IO,并在事件处理流程中共用一个 client:
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {15}
|
```python {15}
|
||||||
from typing import Annotated, AsyncGenerator
|
from typing import Annotated
|
||||||
|
from collections.abc import AsyncGenerator
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
from nonebot.params import Depends
|
from nonebot.params import Depends
|
||||||
@@ -533,10 +534,10 @@ async def _(x: Annotated[httpx.AsyncClient, Depends(get_client)]):
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {15}
|
```python {15}
|
||||||
from typing import AsyncGenerator
|
from collections.abc import AsyncGenerator
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
from nonebot.params import Depends
|
from nonebot.params import Depends
|
||||||
@@ -566,11 +567,10 @@ async def _(x: httpx.AsyncClient = Depends(get_client)):
|
|||||||
在 Python 里,为类定义 `__call__` 方法就可以使得这个类的实例成为一个可调用对象。因此,我们也可以将定义了 `__call__` 方法的类的实例作为依赖。事实上,NoneBot 的[内置响应规则](./matcher.md#内置响应规则)就广泛使用了这种方式,以 `is_type` 规则为例:
|
在 Python 里,为类定义 `__call__` 方法就可以使得这个类的实例成为一个可调用对象。因此,我们也可以将定义了 `__call__` 方法的类的实例作为依赖。事实上,NoneBot 的[内置响应规则](./matcher.md#内置响应规则)就广泛使用了这种方式,以 `is_type` 规则为例:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from typing import Type
|
|
||||||
from nonebot.adapters import Event
|
from nonebot.adapters import Event
|
||||||
|
|
||||||
class IsTypeRule:
|
class IsTypeRule:
|
||||||
def __init__(self, *types: Type[Event]):
|
def __init__(self, *types: type[Event]):
|
||||||
self.types = types
|
self.types = types
|
||||||
|
|
||||||
async def __call__(self, event: Event) -> bool:
|
async def __call__(self, event: Event) -> bool:
|
||||||
@@ -587,8 +587,8 @@ class IsTypeRule:
|
|||||||
|
|
||||||
获取当前事件的类型。
|
获取当前事件的类型。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -598,7 +598,7 @@ async def _(foo: Annotated[str, EventType()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import EventType
|
from nonebot.params import EventType
|
||||||
@@ -613,8 +613,8 @@ async def _(foo: str = EventType()): ...
|
|||||||
|
|
||||||
获取当前事件的消息。
|
获取当前事件的消息。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {5}
|
```python {5}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -625,7 +625,7 @@ async def _(foo: Annotated[Message, EventMessage()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from nonebot.adapters import Message
|
from nonebot.adapters import Message
|
||||||
@@ -641,8 +641,8 @@ async def _(foo: Message = EventMessage()): ...
|
|||||||
|
|
||||||
获取当前事件的消息纯文本部分。
|
获取当前事件的消息纯文本部分。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -652,7 +652,7 @@ async def _(foo: Annotated[str, EventPlainText()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import EventPlainText
|
from nonebot.params import EventPlainText
|
||||||
@@ -667,8 +667,8 @@ async def _(foo: str = EventPlainText()): ...
|
|||||||
|
|
||||||
获取当前事件是否与机器人相关。
|
获取当前事件是否与机器人相关。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -678,7 +678,7 @@ async def _(foo: Annotated[bool, EventToMe()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import EventToMe
|
from nonebot.params import EventToMe
|
||||||
@@ -693,8 +693,8 @@ async def _(foo: bool = EventToMe()): ...
|
|||||||
|
|
||||||
获取当前命令型消息的元组形式命令名。
|
获取当前命令型消息的元组形式命令名。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -704,13 +704,12 @@ async def _(foo: Annotated[tuple[str, ...], Command()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Tuple
|
|
||||||
from nonebot.params import Command
|
from nonebot.params import Command
|
||||||
|
|
||||||
async def _(foo: Tuple[str, ...] = Command()): ...
|
async def _(foo: tuple[str, ...] = Command()): ...
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
@@ -724,8 +723,8 @@ async def _(foo: Tuple[str, ...] = Command()): ...
|
|||||||
|
|
||||||
获取当前命令型消息的文本形式命令名。
|
获取当前命令型消息的文本形式命令名。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -735,7 +734,7 @@ async def _(foo: Annotated[str, RawCommand()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import RawCommand
|
from nonebot.params import RawCommand
|
||||||
@@ -754,8 +753,8 @@ async def _(foo: str = RawCommand()): ...
|
|||||||
|
|
||||||
获取命令型消息命令后跟随的参数。
|
获取命令型消息命令后跟随的参数。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {5}
|
```python {5}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -766,7 +765,7 @@ async def _(foo: Annotated[Message, CommandArg()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from nonebot.adapters import Message
|
from nonebot.adapters import Message
|
||||||
@@ -786,8 +785,8 @@ async def _(foo: Message = CommandArg()): ...
|
|||||||
|
|
||||||
获取命令型消息命令前缀。
|
获取命令型消息命令前缀。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -797,7 +796,7 @@ async def _(foo: Annotated[str, CommandStart()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import CommandStart
|
from nonebot.params import CommandStart
|
||||||
@@ -816,8 +815,8 @@ async def _(foo: str = CommandStart()): ...
|
|||||||
|
|
||||||
获取命令型消息命令与参数间空白符。
|
获取命令型消息命令与参数间空白符。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -827,7 +826,7 @@ async def _(foo: Annotated[str, CommandWhitespace()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import CommandWhitespace
|
from nonebot.params import CommandWhitespace
|
||||||
@@ -854,10 +853,16 @@ from typing import Annotated
|
|||||||
from nonebot.params import ShellCommandArgs
|
from nonebot.params import ShellCommandArgs
|
||||||
|
|
||||||
async def _(foo: Annotated[list[str | MessageSegment], ShellCommandArgv()]): ...
|
async def _(foo: Annotated[list[str | MessageSegment], ShellCommandArgv()]): ...
|
||||||
|
```
|
||||||
|
|
||||||
|
```python {4}
|
||||||
|
from nonebot.params import ShellCommandArgs
|
||||||
|
|
||||||
|
async def _(foo: list[str | MessageSegment] = ShellCommandArgv()): ...
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.9" label="Python 3.9+">
|
<TabItem value="3.9" label="Python 3.9">
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Union, Annotated
|
from typing import Union, Annotated
|
||||||
@@ -866,14 +871,11 @@ from nonebot.params import ShellCommandArgs
|
|||||||
async def _(foo: Annotated[list[Union[str, MessageSegment]], ShellCommandArgv()]): ...
|
async def _(foo: Annotated[list[Union[str, MessageSegment]], ShellCommandArgv()]): ...
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import List, Union
|
from typing import Union
|
||||||
from nonebot.params import ShellCommandArgs
|
from nonebot.params import ShellCommandArgs
|
||||||
|
|
||||||
async def _(foo: List[Union[str, MessageSegment]] = ShellCommandArgv()): ...
|
async def _(foo: list[Union[str, MessageSegment]] = ShellCommandArgv()): ...
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
@@ -889,8 +891,8 @@ async def _(foo: List[Union[str, MessageSegment]] = ShellCommandArgv()): ...
|
|||||||
由于 `ArgumentParser` 在解析到 `--help` 参数时也会抛出异常,这种情况下错误码为 `0` 且错误信息即为帮助信息。
|
由于 `ArgumentParser` 在解析到 `--help` 参数时也会抛出异常,这种情况下错误码为 `0` 且错误信息即为帮助信息。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {14,22}
|
```python {14,22}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -919,7 +921,7 @@ async def _(foo: Annotated[Namespace, ShellCommandArgs()]):
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {12,20}
|
```python {12,20}
|
||||||
from nonebot import on_shell_command
|
from nonebot import on_shell_command
|
||||||
@@ -952,8 +954,8 @@ async def _(foo: Namespace = ShellCommandArgs()):
|
|||||||
|
|
||||||
获取正则匹配结果的对象。
|
获取正则匹配结果的对象。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {5}
|
```python {5}
|
||||||
from re import Match
|
from re import Match
|
||||||
@@ -964,10 +966,10 @@ async def _(foo: Annotated[Match[str], RegexMatched()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Match
|
from re import Match
|
||||||
from nonebot.params import RegexMatched
|
from nonebot.params import RegexMatched
|
||||||
|
|
||||||
async def _(foo: Match[str] = RegexMatched()): ...
|
async def _(foo: Match[str] = RegexMatched()): ...
|
||||||
@@ -980,8 +982,8 @@ async def _(foo: Match[str] = RegexMatched()): ...
|
|||||||
|
|
||||||
获取正则匹配结果的文本。
|
获取正则匹配结果的文本。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -991,7 +993,7 @@ async def _(foo: Annotated[str, RegexStr()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import RegexStr
|
from nonebot.params import RegexStr
|
||||||
@@ -1006,8 +1008,8 @@ async def _(foo: str = RegexStr()): ...
|
|||||||
|
|
||||||
获取正则匹配结果的 group 元组。
|
获取正则匹配结果的 group 元组。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Any, Annotated
|
from typing import Any, Annotated
|
||||||
@@ -1017,13 +1019,13 @@ async def _(foo: Annotated[tuple[Any, ...], RegexGroup()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Tuple, Any
|
from typing import Any
|
||||||
from nonebot.params import RegexGroup
|
from nonebot.params import RegexGroup
|
||||||
|
|
||||||
async def _(foo: Tuple[Any, ...] = RegexGroup()): ...
|
async def _(foo: tuple[Any, ...] = RegexGroup()): ...
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
@@ -1033,8 +1035,8 @@ async def _(foo: Tuple[Any, ...] = RegexGroup()): ...
|
|||||||
|
|
||||||
获取正则匹配结果的 group 字典。
|
获取正则匹配结果的 group 字典。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Any, Annotated
|
from typing import Any, Annotated
|
||||||
@@ -1044,13 +1046,13 @@ async def _(foo: Annotated[dict[str, Any], RegexDict()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Any, Dict
|
from typing import Any
|
||||||
from nonebot.params import RegexDict
|
from nonebot.params import RegexDict
|
||||||
|
|
||||||
async def _(foo: Dict[str, Any] = RegexDict()): ...
|
async def _(foo: dict[str, Any] = RegexDict()): ...
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
@@ -1060,8 +1062,8 @@ async def _(foo: Dict[str, Any] = RegexDict()): ...
|
|||||||
|
|
||||||
获取触发响应器的消息前缀字符串。
|
获取触发响应器的消息前缀字符串。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -1071,7 +1073,7 @@ async def _(foo: Annotated[str, Startswith()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import Startswith
|
from nonebot.params import Startswith
|
||||||
@@ -1086,8 +1088,8 @@ async def _(foo: str = Startswith()): ...
|
|||||||
|
|
||||||
获取触发响应器的消息后缀字符串。
|
获取触发响应器的消息后缀字符串。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -1097,7 +1099,7 @@ async def _(foo: Annotated[str, Endswith()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import Endswith
|
from nonebot.params import Endswith
|
||||||
@@ -1112,8 +1114,8 @@ async def _(foo: str = Endswith()): ...
|
|||||||
|
|
||||||
获取触发响应器的消息字符串。
|
获取触发响应器的消息字符串。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -1123,7 +1125,7 @@ async def _(foo: Annotated[str, Fullmatch()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import Fullmatch
|
from nonebot.params import Fullmatch
|
||||||
@@ -1138,8 +1140,8 @@ async def _(foo: str = Fullmatch()): ...
|
|||||||
|
|
||||||
获取触发响应器的关键字字符串。
|
获取触发响应器的关键字字符串。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {4}
|
```python {4}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -1149,7 +1151,7 @@ async def _(foo: Annotated[str, Keyword()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {3}
|
```python {3}
|
||||||
from nonebot.params import Keyword
|
from nonebot.params import Keyword
|
||||||
@@ -1164,8 +1166,8 @@ async def _(foo: str = Keyword()): ...
|
|||||||
|
|
||||||
获取某次 `receive` 接收的事件。
|
获取某次 `receive` 接收的事件。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {7}
|
```python {7}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -1178,7 +1180,7 @@ async def _(foo: Annotated[Event, Received("id")]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {5}
|
```python {5}
|
||||||
from nonebot.adapters import Event
|
from nonebot.adapters import Event
|
||||||
@@ -1195,8 +1197,8 @@ async def _(foo: Event = Received("id")): ...
|
|||||||
|
|
||||||
获取最近一次 `receive` 接收的事件。
|
获取最近一次 `receive` 接收的事件。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {7}
|
```python {7}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -1209,7 +1211,7 @@ async def _(foo: Annotated[Event, LastReceived()]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {5}
|
```python {5}
|
||||||
from nonebot.adapters import Event
|
from nonebot.adapters import Event
|
||||||
@@ -1226,8 +1228,8 @@ async def _(foo: Event = LastReceived()): ...
|
|||||||
|
|
||||||
获取某次 `got` 接收的参数。如果 `Arg` 参数留空,则使用函数的参数名作为要获取的参数。
|
获取某次 `got` 接收的参数。如果 `Arg` 参数留空,则使用函数的参数名作为要获取的参数。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {7,8}
|
```python {7,8}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -1241,7 +1243,7 @@ async def _(foo: Annotated[Message, Arg("key")]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {5,6}
|
```python {5,6}
|
||||||
from nonebot.params import Arg
|
from nonebot.params import Arg
|
||||||
@@ -1259,8 +1261,8 @@ async def _(foo: Message = Arg("key")): ...
|
|||||||
|
|
||||||
获取某次 `got` 接收的参数,并转换为字符串。如果 `Arg` 参数留空,则使用函数的参数名作为要获取的参数。
|
获取某次 `got` 接收的参数,并转换为字符串。如果 `Arg` 参数留空,则使用函数的参数名作为要获取的参数。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {6,7}
|
```python {6,7}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -1273,7 +1275,7 @@ async def _(foo: Annotated[str, ArgStr("key")]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {4,5}
|
```python {4,5}
|
||||||
from nonebot.params import ArgStr
|
from nonebot.params import ArgStr
|
||||||
@@ -1290,8 +1292,8 @@ async def _(foo: str = ArgStr("key")): ...
|
|||||||
|
|
||||||
获取某次 `got` 接收的参数的纯文本部分。如果 `Arg` 参数留空,则使用函数的参数名作为要获取的参数。
|
获取某次 `got` 接收的参数的纯文本部分。如果 `Arg` 参数留空,则使用函数的参数名作为要获取的参数。
|
||||||
|
|
||||||
<Tabs groupId="python">
|
<Tabs groupId="annotated">
|
||||||
<TabItem value="3.9" label="Python 3.9+" default>
|
<TabItem value="annotated" label="Use Annotated" default>
|
||||||
|
|
||||||
```python {6,7}
|
```python {6,7}
|
||||||
from typing import Annotated
|
from typing import Annotated
|
||||||
@@ -1304,7 +1306,7 @@ async def _(foo: Annotated[str, ArgPlainText("key")]): ...
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="no-annotated" label="Without Annotated">
|
||||||
|
|
||||||
```python {4,5}
|
```python {4,5}
|
||||||
from nonebot.params import ArgPlainText
|
from nonebot.params import ArgPlainText
|
@@ -823,7 +823,7 @@ description: nonebot.adapters 模块
|
|||||||
|
|
||||||
- **返回**
|
- **返回**
|
||||||
|
|
||||||
- untyped
|
- TF
|
||||||
|
|
||||||
### _method_ `format_map(mapping)` {#MessageTemplate-format-map}
|
### _method_ `format_map(mapping)` {#MessageTemplate-format-map}
|
||||||
|
|
@@ -155,7 +155,7 @@ description: nonebot.compat 模块
|
|||||||
|
|
||||||
- Any
|
- Any
|
||||||
|
|
||||||
## _def_ `model_dump(model, include=None, exclude=None)` {#model-dump}
|
## _def_ `model_dump(model, include=None, exclude=None, by_alias=False, exclude_unset=False, exclude_defaults=False, exclude_none=False)` {#model-dump}
|
||||||
|
|
||||||
- **参数**
|
- **参数**
|
||||||
|
|
||||||
@@ -165,6 +165,14 @@ description: nonebot.compat 模块
|
|||||||
|
|
||||||
- `exclude` (set[str] | None)
|
- `exclude` (set[str] | None)
|
||||||
|
|
||||||
|
- `by_alias` (bool)
|
||||||
|
|
||||||
|
- `exclude_unset` (bool)
|
||||||
|
|
||||||
|
- `exclude_defaults` (bool)
|
||||||
|
|
||||||
|
- `exclude_none` (bool)
|
||||||
|
|
||||||
- **返回**
|
- **返回**
|
||||||
|
|
||||||
- dict[str, Any]
|
- dict[str, Any]
|
||||||
@@ -183,6 +191,20 @@ description: nonebot.compat 模块
|
|||||||
|
|
||||||
- T
|
- T
|
||||||
|
|
||||||
|
## _def_ `type_validate_json(type_, data)` {#type-validate-json}
|
||||||
|
|
||||||
|
- **说明:** Validate JSON with given type.
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `type_` (type[T])
|
||||||
|
|
||||||
|
- `data` (str | bytes)
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- T
|
||||||
|
|
||||||
## _def_ `custom_validation(class_)` {#custom-validation}
|
## _def_ `custom_validation(class_)` {#custom-validation}
|
||||||
|
|
||||||
- **说明:** Use pydantic v1 like validator generator in pydantic v2
|
- **说明:** Use pydantic v1 like validator generator in pydantic v2
|
@@ -174,7 +174,6 @@ NoneBot 使用 [`pydantic`](https://pydantic-docs.helpmanual.io/) 以及
|
|||||||
- **用法**
|
- **用法**
|
||||||
|
|
||||||
```conf
|
```conf
|
||||||
SESSION_EXPIRE_TIMEOUT=120 # 单位: 秒
|
SESSION_EXPIRE_TIMEOUT=[-][DD]D[,][HH:MM:]SS[.ffffff]
|
||||||
SESSION_EXPIRE_TIMEOUT=[DD ][HH:MM]SS[.ffffff]
|
SESSION_EXPIRE_TIMEOUT=[±]P[DD]DT[HH]H[MM]M[SS]S # ISO 8601
|
||||||
SESSION_EXPIRE_TIMEOUT=P[DD]DT[HH]H[MM]M[SS]S # ISO 8601
|
|
||||||
```
|
```
|
@@ -17,6 +17,52 @@ pip install nonebot2[aiohttp]
|
|||||||
本驱动仅支持客户端连接
|
本驱动仅支持客户端连接
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
## _class_ `Session(params=None, headers=None, cookies=None, version=HTTPVersion.H11, timeout=None, proxy=None)` {#Session}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `params` (QueryTypes)
|
||||||
|
|
||||||
|
- `headers` (HeaderTypes)
|
||||||
|
|
||||||
|
- `cookies` (CookieTypes)
|
||||||
|
|
||||||
|
- `version` (str | [HTTPVersion](index.md#HTTPVersion))
|
||||||
|
|
||||||
|
- `timeout` (float | None)
|
||||||
|
|
||||||
|
- `proxy` (str | None)
|
||||||
|
|
||||||
|
### _async method_ `request(setup)` {#Session-request}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `setup` ([Request](index.md#Request))
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- [Response](index.md#Response)
|
||||||
|
|
||||||
|
### _async method_ `setup()` {#Session-setup}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
empty
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- None
|
||||||
|
|
||||||
|
### _async method_ `close()` {#Session-close}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
empty
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- None
|
||||||
|
|
||||||
## _class_ `Mixin(<auto>)` {#Mixin}
|
## _class_ `Mixin(<auto>)` {#Mixin}
|
||||||
|
|
||||||
- **说明:** AIOHTTP Mixin
|
- **说明:** AIOHTTP Mixin
|
||||||
@@ -45,6 +91,26 @@ pip install nonebot2[aiohttp]
|
|||||||
|
|
||||||
- AsyncGenerator[[WebSocket](index.md#WebSocket), None]
|
- AsyncGenerator[[WebSocket](index.md#WebSocket), None]
|
||||||
|
|
||||||
|
### _method_ `get_session(params=None, headers=None, cookies=None, version=HTTPVersion.H11, timeout=None, proxy=None)` {#Mixin-get-session}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `params` (QueryTypes)
|
||||||
|
|
||||||
|
- `headers` (HeaderTypes)
|
||||||
|
|
||||||
|
- `cookies` (CookieTypes)
|
||||||
|
|
||||||
|
- `version` (str | [HTTPVersion](index.md#HTTPVersion))
|
||||||
|
|
||||||
|
- `timeout` (float | None)
|
||||||
|
|
||||||
|
- `proxy` (str | None)
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- Session
|
||||||
|
|
||||||
## _class_ `WebSocket(*, request, session, websocket)` {#WebSocket}
|
## _class_ `WebSocket(*, request, session, websocket)` {#WebSocket}
|
||||||
|
|
||||||
- **说明:** AIOHTTP Websocket Wrapper
|
- **说明:** AIOHTTP Websocket Wrapper
|
||||||
@@ -67,12 +133,14 @@ pip install nonebot2[aiohttp]
|
|||||||
|
|
||||||
- untyped
|
- untyped
|
||||||
|
|
||||||
### _async method_ `close(code=1000)` {#WebSocket-close}
|
### _async method_ `close(code=1000, reason="")` {#WebSocket-close}
|
||||||
|
|
||||||
- **参数**
|
- **参数**
|
||||||
|
|
||||||
- `code` (int)
|
- `code` (int)
|
||||||
|
|
||||||
|
- `reason` (str)
|
||||||
|
|
||||||
- **返回**
|
- **返回**
|
||||||
|
|
||||||
- untyped
|
- untyped
|
@@ -139,7 +139,7 @@ pip install nonebot2[fastapi]
|
|||||||
|
|
||||||
- None
|
- None
|
||||||
|
|
||||||
### _method_ `run(host=None, port=None, *, app=None, **kwargs)` {#Driver-run}
|
### _method_ `run(host=None, port=None, *args, app=None, **kwargs)` {#Driver-run}
|
||||||
|
|
||||||
- **说明:** 使用 `uvicorn` 启动 FastAPI
|
- **说明:** 使用 `uvicorn` 启动 FastAPI
|
||||||
|
|
||||||
@@ -149,6 +149,8 @@ pip install nonebot2[fastapi]
|
|||||||
|
|
||||||
- `port` (int | None)
|
- `port` (int | None)
|
||||||
|
|
||||||
|
- `*args`
|
||||||
|
|
||||||
- `app` (str | None)
|
- `app` (str | None)
|
||||||
|
|
||||||
- `**kwargs`
|
- `**kwargs`
|
110
website/versioned_docs/version-2.3.1/api/drivers/httpx.md
Normal file
110
website/versioned_docs/version-2.3.1/api/drivers/httpx.md
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
---
|
||||||
|
sidebar_position: 3
|
||||||
|
description: nonebot.drivers.httpx 模块
|
||||||
|
---
|
||||||
|
|
||||||
|
# nonebot.drivers.httpx
|
||||||
|
|
||||||
|
[HTTPX](https://www.python-httpx.org/) 驱动适配
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nb driver install httpx
|
||||||
|
# 或者
|
||||||
|
pip install nonebot2[httpx]
|
||||||
|
```
|
||||||
|
|
||||||
|
:::tip 提示
|
||||||
|
本驱动仅支持客户端 HTTP 连接
|
||||||
|
:::
|
||||||
|
|
||||||
|
## _class_ `Session(params=None, headers=None, cookies=None, version=HTTPVersion.H11, timeout=None, proxy=None)` {#Session}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `params` (QueryTypes)
|
||||||
|
|
||||||
|
- `headers` (HeaderTypes)
|
||||||
|
|
||||||
|
- `cookies` (CookieTypes)
|
||||||
|
|
||||||
|
- `version` (str | [HTTPVersion](index.md#HTTPVersion))
|
||||||
|
|
||||||
|
- `timeout` (float | None)
|
||||||
|
|
||||||
|
- `proxy` (str | None)
|
||||||
|
|
||||||
|
### _async method_ `request(setup)` {#Session-request}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `setup` ([Request](index.md#Request))
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- [Response](index.md#Response)
|
||||||
|
|
||||||
|
### _async method_ `setup()` {#Session-setup}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
empty
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- None
|
||||||
|
|
||||||
|
### _async method_ `close()` {#Session-close}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
empty
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- None
|
||||||
|
|
||||||
|
## _class_ `Mixin(<auto>)` {#Mixin}
|
||||||
|
|
||||||
|
- **说明:** HTTPX Mixin
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
auto
|
||||||
|
|
||||||
|
### _async method_ `request(setup)` {#Mixin-request}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `setup` ([Request](index.md#Request))
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- [Response](index.md#Response)
|
||||||
|
|
||||||
|
### _method_ `get_session(params=None, headers=None, cookies=None, version=HTTPVersion.H11, timeout=None, proxy=None)` {#Mixin-get-session}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `params` (QueryTypes)
|
||||||
|
|
||||||
|
- `headers` (HeaderTypes)
|
||||||
|
|
||||||
|
- `cookies` (CookieTypes)
|
||||||
|
|
||||||
|
- `version` (str | [HTTPVersion](index.md#HTTPVersion))
|
||||||
|
|
||||||
|
- `timeout` (float | None)
|
||||||
|
|
||||||
|
- `proxy` (str | None)
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- Session
|
||||||
|
|
||||||
|
## _class_ `Driver(env, config)` {#Driver}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `env` ([Env](../config.md#Env))
|
||||||
|
|
||||||
|
- `config` ([Config](../config.md#Config))
|
@@ -503,12 +503,14 @@ description: nonebot.drivers 模块
|
|||||||
|
|
||||||
- type[D]
|
- type[D]
|
||||||
|
|
||||||
**2.** `(driver, *mixins) -> type[CombinedDriver]`
|
**2.** `(driver, _m, *mixins) -> type[CombinedDriver]`
|
||||||
|
|
||||||
- **参数**
|
- **参数**
|
||||||
|
|
||||||
- `driver` (type[D])
|
- `driver` (type[D])
|
||||||
|
|
||||||
|
- `_m` (type[[Mixin](#Mixin)])
|
||||||
|
|
||||||
- `*mixins` (type[[Mixin](#Mixin)])
|
- `*mixins` (type[[Mixin](#Mixin)])
|
||||||
|
|
||||||
- **返回**
|
- **返回**
|
||||||
@@ -535,6 +537,28 @@ description: nonebot.drivers 模块
|
|||||||
|
|
||||||
- [Response](#Response)
|
- [Response](#Response)
|
||||||
|
|
||||||
|
### _abstract method_ `get_session(params=None, headers=None, cookies=None, version=HTTPVersion.H11, timeout=None, proxy=None)` {#HTTPClientMixin-get-session}
|
||||||
|
|
||||||
|
- **说明:** 获取一个 HTTP 会话
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `params` (QueryTypes)
|
||||||
|
|
||||||
|
- `headers` (HeaderTypes)
|
||||||
|
|
||||||
|
- `cookies` (CookieTypes)
|
||||||
|
|
||||||
|
- `version` (str | [HTTPVersion](#HTTPVersion))
|
||||||
|
|
||||||
|
- `timeout` (float | None)
|
||||||
|
|
||||||
|
- `proxy` (str | None)
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- HTTPClientSession
|
||||||
|
|
||||||
## _class_ `HTTPServerSetup(<auto>)` {#HTTPServerSetup}
|
## _class_ `HTTPServerSetup(<auto>)` {#HTTPServerSetup}
|
||||||
|
|
||||||
- **说明:** HTTP 服务器路由配置。
|
- **说明:** HTTP 服务器路由配置。
|
@@ -115,7 +115,7 @@ pip install nonebot2[quart]
|
|||||||
|
|
||||||
- None
|
- None
|
||||||
|
|
||||||
### _method_ `run(host=None, port=None, *, app=None, **kwargs)` {#Driver-run}
|
### _method_ `run(host=None, port=None, *args, app=None, **kwargs)` {#Driver-run}
|
||||||
|
|
||||||
- **说明:** 使用 `uvicorn` 启动 Quart
|
- **说明:** 使用 `uvicorn` 启动 Quart
|
||||||
|
|
||||||
@@ -125,6 +125,8 @@ pip install nonebot2[quart]
|
|||||||
|
|
||||||
- `port` (int | None)
|
- `port` (int | None)
|
||||||
|
|
||||||
|
- `*args`
|
||||||
|
|
||||||
- `app` (str | None)
|
- `app` (str | None)
|
||||||
|
|
||||||
- `**kwargs`
|
- `**kwargs`
|
@@ -21,11 +21,11 @@ pip install nonebot2[websockets]
|
|||||||
|
|
||||||
- **参数**
|
- **参数**
|
||||||
|
|
||||||
- `func` ((P) -> Awaitable[T])
|
- `func` ((P) -> Coroutine[Any, Any, T])
|
||||||
|
|
||||||
- **返回**
|
- **返回**
|
||||||
|
|
||||||
- (P) -> Awaitable[T]
|
- (P) -> Coroutine[Any, Any, T]
|
||||||
|
|
||||||
## _class_ `Mixin(<auto>)` {#Mixin}
|
## _class_ `Mixin(<auto>)` {#Mixin}
|
||||||
|
|
@@ -15,12 +15,6 @@ description: nonebot.matcher 模块
|
|||||||
|
|
||||||
empty
|
empty
|
||||||
|
|
||||||
### _instance-var_ `handlers` {#Matcher-handlers}
|
|
||||||
|
|
||||||
- **类型:** list[[Dependent](dependencies/index.md#Dependent)[Any]]
|
|
||||||
|
|
||||||
- **说明:** 事件响应器拥有的事件处理函数列表
|
|
||||||
|
|
||||||
### _class-var_ `type` {#Matcher-type}
|
### _class-var_ `type` {#Matcher-type}
|
||||||
|
|
||||||
- **类型:** ClassVar[str]
|
- **类型:** ClassVar[str]
|
||||||
@@ -39,6 +33,12 @@ description: nonebot.matcher 模块
|
|||||||
|
|
||||||
- **说明:** 事件响应器触发权限
|
- **说明:** 事件响应器触发权限
|
||||||
|
|
||||||
|
### _class-var_ `handlers` {#Matcher-handlers}
|
||||||
|
|
||||||
|
- **类型:** ClassVar[list[[Dependent](dependencies/index.md#Dependent)[Any]]]
|
||||||
|
|
||||||
|
- **说明:** 事件响应器拥有的事件处理函数列表
|
||||||
|
|
||||||
### _class-var_ `priority` {#Matcher-priority}
|
### _class-var_ `priority` {#Matcher-priority}
|
||||||
|
|
||||||
- **类型:** ClassVar[int]
|
- **类型:** ClassVar[int]
|
@@ -38,7 +38,7 @@ description: nonebot.plugin 模块
|
|||||||
- `require` => [`require`](load.md#require)
|
- `require` => [`require`](load.md#require)
|
||||||
- `PluginMetadata` => [`PluginMetadata`](model.md#PluginMetadata)
|
- `PluginMetadata` => [`PluginMetadata`](model.md#PluginMetadata)
|
||||||
|
|
||||||
## _def_ `get_plugin(name)` {#get-plugin}
|
## _def_ `get_plugin(plugin_id)` {#get-plugin}
|
||||||
|
|
||||||
- **说明**
|
- **说明**
|
||||||
|
|
||||||
@@ -46,9 +46,11 @@ description: nonebot.plugin 模块
|
|||||||
|
|
||||||
如果为 `load_plugins` 文件夹导入的插件,则为文件(夹)名。
|
如果为 `load_plugins` 文件夹导入的插件,则为文件(夹)名。
|
||||||
|
|
||||||
|
如果为嵌套的子插件,标识符为 `父插件标识符:子插件文件(夹)名`。
|
||||||
|
|
||||||
- **参数**
|
- **参数**
|
||||||
|
|
||||||
- `name` (str): 插件名,即 [Plugin.name](model.md#Plugin-name)。
|
- `plugin_id` (str): 插件标识符,即 [Plugin.id\_](model.md#Plugin-id-)。
|
||||||
|
|
||||||
- **返回**
|
- **返回**
|
||||||
|
|
||||||
@@ -84,7 +86,7 @@ description: nonebot.plugin 模块
|
|||||||
|
|
||||||
## _def_ `get_available_plugin_names()` {#get-available-plugin-names}
|
## _def_ `get_available_plugin_names()` {#get-available-plugin-names}
|
||||||
|
|
||||||
- **说明:** 获取当前所有可用的插件名(包含尚未加载的插件)。
|
- **说明:** 获取当前所有可用的插件标识符(包含尚未加载的插件)。
|
||||||
|
|
||||||
- **参数**
|
- **参数**
|
||||||
|
|
@@ -124,15 +124,11 @@ description: nonebot.plugin.load 模块
|
|||||||
|
|
||||||
## _def_ `require(name)` {#require}
|
## _def_ `require(name)` {#require}
|
||||||
|
|
||||||
- **说明**
|
- **说明:** 声明依赖插件。
|
||||||
|
|
||||||
获取一个插件的导出内容。
|
|
||||||
|
|
||||||
如果为 `load_plugins` 文件夹导入的插件,则为文件(夹)名。
|
|
||||||
|
|
||||||
- **参数**
|
- **参数**
|
||||||
|
|
||||||
- `name` (str): 插件名,即 [Plugin.name](model.md#Plugin-name)。
|
- `name` (str): 插件模块名或插件标识符,仅在已声明插件的情况下可使用标识符。
|
||||||
|
|
||||||
- **返回**
|
- **返回**
|
||||||
|
|
@@ -17,37 +17,31 @@ description: nonebot.plugin.manager 模块
|
|||||||
|
|
||||||
- `plugins` (Iterable[str] | None): 独立插件模块名集合。
|
- `plugins` (Iterable[str] | None): 独立插件模块名集合。
|
||||||
|
|
||||||
- `search_path` (Iterable[str] | None): 插件搜索路径(文件夹)。
|
- `search_path` (Iterable[str] | None): 插件搜索路径(文件夹),相对于当前工作目录。
|
||||||
|
|
||||||
### _property_ `third_party_plugins` {#PluginManager-third-party-plugins}
|
### _property_ `third_party_plugins` {#PluginManager-third-party-plugins}
|
||||||
|
|
||||||
- **类型:** set[str]
|
- **类型:** set[str]
|
||||||
|
|
||||||
- **说明:** 返回所有独立插件名称。
|
- **说明:** 返回所有独立插件标识符。
|
||||||
|
|
||||||
### _property_ `searched_plugins` {#PluginManager-searched-plugins}
|
### _property_ `searched_plugins` {#PluginManager-searched-plugins}
|
||||||
|
|
||||||
- **类型:** set[str]
|
- **类型:** set[str]
|
||||||
|
|
||||||
- **说明:** 返回已搜索到的插件名称。
|
- **说明:** 返回已搜索到的插件标识符。
|
||||||
|
|
||||||
### _property_ `available_plugins` {#PluginManager-available-plugins}
|
### _property_ `available_plugins` {#PluginManager-available-plugins}
|
||||||
|
|
||||||
- **类型:** set[str]
|
- **类型:** set[str]
|
||||||
|
|
||||||
- **说明:** 返回当前插件管理器中可用的插件名称。
|
- **说明:** 返回当前插件管理器中可用的插件标识符。
|
||||||
|
|
||||||
### _method_ `prepare_plugins()` {#PluginManager-prepare-plugins}
|
### _property_ `controlled_modules` {#PluginManager-controlled-modules}
|
||||||
|
|
||||||
- **说明:** 搜索插件并缓存插件名称。
|
- **类型:** dict[str, str]
|
||||||
|
|
||||||
- **参数**
|
- **说明:** 返回当前插件管理器中控制的插件标识符与模块路径映射字典。
|
||||||
|
|
||||||
empty
|
|
||||||
|
|
||||||
- **返回**
|
|
||||||
|
|
||||||
- set[str]
|
|
||||||
|
|
||||||
### _method_ `load_plugin(name)` {#PluginManager-load-plugin}
|
### _method_ `load_plugin(name)` {#PluginManager-load-plugin}
|
||||||
|
|
||||||
@@ -55,11 +49,11 @@ description: nonebot.plugin.manager 模块
|
|||||||
|
|
||||||
加载指定插件。
|
加载指定插件。
|
||||||
|
|
||||||
对于独立插件,可以使用完整插件模块名或者插件名称。
|
可以使用完整插件模块名或者插件标识符加载。
|
||||||
|
|
||||||
- **参数**
|
- **参数**
|
||||||
|
|
||||||
- `name` (str): 插件名称。
|
- `name` (str): 插件名称或插件标识符。
|
||||||
|
|
||||||
- **返回**
|
- **返回**
|
||||||
|
|
||||||
@@ -105,7 +99,7 @@ description: nonebot.plugin.manager 模块
|
|||||||
|
|
||||||
- `fullname` (str)
|
- `fullname` (str)
|
||||||
|
|
||||||
- `path`
|
- `path` (str)
|
||||||
|
|
||||||
### _method_ `create_module(spec)` {#PluginLoader-create-module}
|
### _method_ `create_module(spec)` {#PluginLoader-create-module}
|
||||||
|
|
@@ -93,7 +93,7 @@ description: nonebot.plugin.model 模块
|
|||||||
|
|
||||||
- **类型:** str
|
- **类型:** str
|
||||||
|
|
||||||
- **说明:** 插件索引标识,NoneBot 使用 文件/文件夹 名称作为标识符
|
- **说明:** 插件名称,NoneBot 使用 文件/文件夹 名称作为插件名称
|
||||||
|
|
||||||
### _instance-var_ `module` {#Plugin-module}
|
### _instance-var_ `module` {#Plugin-module}
|
||||||
|
|
||||||
@@ -130,3 +130,9 @@ description: nonebot.plugin.model 模块
|
|||||||
- **类型:** set[Plugin]
|
- **类型:** set[Plugin]
|
||||||
|
|
||||||
- **说明:** 子插件集合
|
- **说明:** 子插件集合
|
||||||
|
|
||||||
|
### _property_ `id_` {#Plugin-id-}
|
||||||
|
|
||||||
|
- **类型:** str
|
||||||
|
|
||||||
|
- **说明:** 插件索引标识
|
@@ -24,6 +24,16 @@ description: nonebot.typing 模块
|
|||||||
|
|
||||||
- untyped
|
- untyped
|
||||||
|
|
||||||
|
## _def_ `type_has_args(type_)` {#type-has-args}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
- `type_` (type[Any])
|
||||||
|
|
||||||
|
- **返回**
|
||||||
|
|
||||||
|
- bool
|
||||||
|
|
||||||
## _def_ `origin_is_union(origin)` {#origin-is-union}
|
## _def_ `origin_is_union(origin)` {#origin-is-union}
|
||||||
|
|
||||||
- **参数**
|
- **参数**
|
||||||
@@ -96,6 +106,12 @@ description: nonebot.typing 模块
|
|||||||
|
|
||||||
- Any
|
- Any
|
||||||
|
|
||||||
|
## _class_ `StateFlag(<auto>)` {#StateFlag}
|
||||||
|
|
||||||
|
- **参数**
|
||||||
|
|
||||||
|
auto
|
||||||
|
|
||||||
## _var_ `T_State` {#T-State}
|
## _var_ `T_State` {#T-State}
|
||||||
|
|
||||||
- **类型:** dict[Any, Any]
|
- **类型:** dict[Any, Any]
|
@@ -143,7 +143,7 @@ description: nonebot.utils 模块
|
|||||||
|
|
||||||
- **参数**
|
- **参数**
|
||||||
|
|
||||||
- `cm` (ContextManager[T])
|
- `cm` (AbstractContextManager[T])
|
||||||
|
|
||||||
- **返回**
|
- **返回**
|
||||||
|
|
@@ -579,13 +579,13 @@ nonebot.init(command_start={"/", ""}, command_sep={".", " "})
|
|||||||
- **类型**: `timedelta`
|
- **类型**: `timedelta`
|
||||||
- **默认值**: `timedelta(minutes=2)`
|
- **默认值**: `timedelta(minutes=2)`
|
||||||
|
|
||||||
用户会话超时时间,配置格式参考 [Datetime Types](https://docs.pydantic.dev/usage/types/#datetime-types),可以为单位为秒的 `int | float` 等。
|
用户会话超时时间,配置格式参考 [Datetime Types](https://docs.pydantic.dev/latest/api/standard_library_types/#datetimetimedelta)。
|
||||||
|
|
||||||
<Tabs groupId="configMethod">
|
<Tabs groupId="configMethod">
|
||||||
<TabItem value="dotenv" label="dotenv" default>
|
<TabItem value="dotenv" label="dotenv" default>
|
||||||
|
|
||||||
```dotenv
|
```dotenv
|
||||||
SESSION_EXPIRE_TIMEOUT=120
|
SESSION_EXPIRE_TIMEOUT=00:02:00
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
@@ -593,9 +593,9 @@ SESSION_EXPIRE_TIMEOUT=120
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# windows
|
# windows
|
||||||
set SESSION_EXPIRE_TIMEOUT '120'
|
set SESSION_EXPIRE_TIMEOUT '00:02:00'
|
||||||
# linux/macOS
|
# linux/macOS
|
||||||
export SESSION_EXPIRE_TIMEOUT='120'
|
export SESSION_EXPIRE_TIMEOUT='00:02:00'
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
@@ -21,7 +21,7 @@ options:
|
|||||||
`RuleChecker` 是一个返回值为 `bool` 类型的依赖函数,即 `RuleChecker` 支持依赖注入。我们可以根据上一节中添加的[配置项](./config.mdx#插件配置),在 `weather` 插件目录中编写一个响应规则:
|
`RuleChecker` 是一个返回值为 `bool` 类型的依赖函数,即 `RuleChecker` 支持依赖注入。我们可以根据上一节中添加的[配置项](./config.mdx#插件配置),在 `weather` 插件目录中编写一个响应规则:
|
||||||
|
|
||||||
```python {3,4} title=weather/__init__.py
|
```python {3,4} title=weather/__init__.py
|
||||||
plugin_config = Config.parse_obj(get_driver().config)
|
plugin_config = get_plugin_config(Config)
|
||||||
|
|
||||||
async def is_enable() -> bool:
|
async def is_enable() -> bool:
|
||||||
return plugin_config.weather_plugin_enabled
|
return plugin_config.weather_plugin_enabled
|
||||||
@@ -57,7 +57,7 @@ weather = on_command("天气", rule=rule)
|
|||||||
```python {10} title=weather/__init__.py
|
```python {10} title=weather/__init__.py
|
||||||
from nonebot.rule import to_me
|
from nonebot.rule import to_me
|
||||||
|
|
||||||
plugin_config = Config.parse_obj(get_driver().config)
|
plugin_config = get_plugin_config(Config)
|
||||||
|
|
||||||
async def is_enable() -> bool:
|
async def is_enable() -> bool:
|
||||||
return plugin_config.weather_plugin_enabled
|
return plugin_config.weather_plugin_enabled
|
@@ -102,17 +102,16 @@ async def got_location(location: str = ArgPlainText()):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
```python {5-10,14-16,18-19}
|
```python {5-9,13-15,17-18}
|
||||||
from nonebot.rule import to_me
|
from nonebot.rule import to_me
|
||||||
from arclet.alconna import Alconna, Args
|
from arclet.alconna import Alconna, Args
|
||||||
from nonebot_plugin_alconna import Match, on_alconna
|
from nonebot_plugin_alconna import Match, on_alconna
|
||||||
|
|
||||||
weather = on_alconna(
|
weather = on_alconna(
|
||||||
Alconna("天气", Args["location?", str]),
|
Alconna("天气", Args["location?", str]),
|
||||||
|
aliases={"weather", "天气预报"},
|
||||||
rule=to_me(),
|
rule=to_me(),
|
||||||
)
|
)
|
||||||
weather.shortcut("weather", {"command": "天气"})
|
|
||||||
weather.shortcut("天气预报", {"command": "天气"})
|
|
||||||
|
|
||||||
|
|
||||||
@weather.handle()
|
@weather.handle()
|
||||||
@@ -133,7 +132,7 @@ async def got_location(location: str):
|
|||||||
或阅读 [Alconna 基本介绍](./command.md) 一节。
|
或阅读 [Alconna 基本介绍](./command.md) 一节。
|
||||||
|
|
||||||
关于更多 `on_alconna` 的使用方法,可参考 [插件文档](https://github.com/nonebot/plugin-alconna/blob/master/docs.md),
|
关于更多 `on_alconna` 的使用方法,可参考 [插件文档](https://github.com/nonebot/plugin-alconna/blob/master/docs.md),
|
||||||
或阅读 [响应规则的使用](./matcher.md) 一节。
|
或阅读 [响应规则的使用](./matcher.mdx) 一节。
|
||||||
|
|
||||||
## 交流与反馈
|
## 交流与反馈
|
||||||
|
|
@@ -5,7 +5,7 @@ description: Alconna 基本介绍
|
|||||||
|
|
||||||
# Alconna 本体
|
# Alconna 本体
|
||||||
|
|
||||||
[`Alconna`](https://github.com/ArcletProject/Alconna) 隶属于 `ArcletProject`,是一个简单、灵活、高效的命令参数解析器, 并且不局限于解析命令式字符串。
|
[`Alconna`](https://github.com/ArcletProject/Alconna) 隶属于 `ArcletProject`,是一个简单、灵活、高效的命令参数解析器, 并且不局限于解析命令式字符串。
|
||||||
|
|
||||||
我们通过一个例子来讲解 **Alconna** 的核心 —— `Args`, `Subcommand`, `Option`:
|
我们通过一个例子来讲解 **Alconna** 的核心 —— `Args`, `Subcommand`, `Option`:
|
||||||
|
|
||||||
@@ -34,9 +34,7 @@ print(res.all_matched_args)
|
|||||||
|
|
||||||
这段代码通过`Alconna`创捷了一个接受主命令名为`pip`, 子命令为`install`且子命令接受一个 **Args** 参数`package`和二个 **Option** 参数`-r`和`-i`的命令参数解析器, 通过`parse`方法返回解析结果 **Arparma** 的实例。
|
这段代码通过`Alconna`创捷了一个接受主命令名为`pip`, 子命令为`install`且子命令接受一个 **Args** 参数`package`和二个 **Option** 参数`-r`和`-i`的命令参数解析器, 通过`parse`方法返回解析结果 **Arparma** 的实例。
|
||||||
|
|
||||||
## 组成
|
## 命令头
|
||||||
|
|
||||||
### 命令头
|
|
||||||
|
|
||||||
命令头是指命令的前缀 (Prefix) 与命令名 (Command) 的组合,例如 !help 中的 ! 与 help。
|
命令头是指命令的前缀 (Prefix) 与命令名 (Command) 的组合,例如 !help 中的 ! 与 help。
|
||||||
|
|
||||||
@@ -55,15 +53,15 @@ print(res.all_matched_args)
|
|||||||
| [123, "foo"] | "bar" | `[123, "bar"]` 或 `"foobar"` 或 `["foo", "bar"]` | 混合头 |
|
| [123, "foo"] | "bar" | `[123, "bar"]` 或 `"foobar"` 或 `["foo", "bar"]` | 混合头 |
|
||||||
| [(int, "foo"), (456, "bar")] | "baz" | `[123, "foobaz"]` 或 `[456, "foobaz"]` 或 `[456, "barbaz"]` | 对头 |
|
| [(int, "foo"), (456, "bar")] | "baz" | `[123, "foobaz"]` 或 `[456, "foobaz"]` 或 `[456, "barbaz"]` | 对头 |
|
||||||
|
|
||||||
无前缀的类型头:此时会将传入的值尝试转为 BasePattern,例如 `int` 会转为 `nepattern.INTEGER`。此时命令头会匹配对应的类型, 例如 `int` 会匹配 `123` 或 `"456"`,但不会匹配 `"foo"`。同时,Alconna 会将命令头匹配到的值转为对应的类型,例如 `int` 会将 `"123"` 转为 `123`。
|
对于无前缀的类型头,此时会将传入的值尝试转为 BasePattern,例如 `int` 会转为 `nepattern.INTEGER`。如此该命令头会匹配对应的类型, 例如 `int` 会匹配 `123` 或 `"456"`,但不会匹配 `"foo"`。解析后,Alconna 会将命令头匹配到的值转为对应的类型,例如 `int` 会将 `"123"` 转为 `123`。
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
|
||||||
**正则只在命令名上生效,命令前缀中的正则会被转义**
|
**正则内容只在命令名上生效,前缀中的正则会被转义**
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
除了通过传入 `re:xxx` 来使用正则表达式外,Alconna 还提供了一种更加简洁的方式来使用正则表达式,那就是 Bracket Header:
|
除了通过传入 `re:xxx` 来使用正则表达式外,Alconna 还提供了一种更加简洁的方式来使用正则表达式,称为 Bracket Header:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from alconna import Alconna
|
from alconna import Alconna
|
||||||
@@ -82,34 +80,34 @@ Bracket Header 类似 python 里的 f-string 写法,通过 "{}" 声明匹配
|
|||||||
- "{:\d+}" ⇔ "(\d+)"
|
- "{:\d+}" ⇔ "(\d+)"
|
||||||
- "{foo:int}" ⇔ "(?P<foo>\d+)",其中 "int" 部分若能转为 `BasePattern` 则读取里面的表达式
|
- "{foo:int}" ⇔ "(?P<foo>\d+)",其中 "int" 部分若能转为 `BasePattern` 则读取里面的表达式
|
||||||
|
|
||||||
### 参数声明(Args)
|
## 参数声明(Args)
|
||||||
|
|
||||||
`Args` 是用于声明命令参数的组件, 可以通过以下几种方式构造 **Args** :
|
`Args` 是用于声明命令参数的组件, 可以通过以下几种方式构造 **Args** :
|
||||||
|
|
||||||
- `Args[key, var, default][key1, var1, default1][...]`
|
- `Args[key, var, default][key1, var1, default1][...]`
|
||||||
- `Args[(key, var, default)]`
|
- `Args[(key, var, default)]`
|
||||||
- `Args.key[var, default]`
|
- `Args.key[var, default]`
|
||||||
|
|
||||||
其中,key **一定**是字符串,而 var 一般为参数的类型,default 为具体的值或者 **arclet.alconna.args.Field**
|
其中,key **一定**是字符串,而 var 一般为参数的类型,default 为具体的值或者 **arclet.alconna.args.Field**
|
||||||
|
|
||||||
其与函数签名类似,但是允许含有默认值的参数在前;同时支持 keyword-only 参数不依照构造顺序传入 (但是仍需要在非 keyword-only 参数之后)。
|
其与函数签名类似,但是允许含有默认值的参数在前;同时支持 keyword-only 参数不依照构造顺序传入 (但是仍需要在非 keyword-only 参数之后)。
|
||||||
|
|
||||||
#### key
|
### key
|
||||||
|
|
||||||
`key` 的作用是用以标记解析出来的参数并存放于 **Arparma** 中,以方便用户调用。
|
`key` 的作用是用以标记解析出来的参数并存放于 **Arparma** 中,以方便用户调用。
|
||||||
|
|
||||||
其有三种为 Args 注解的标识符: `?`、`/`、 `!`, 标识符与 key 之间建议以 `;` 分隔:
|
其有三种为 Args 注解的标识符: `?`、`/`、 `!`, 标识符与 key 之间建议以 `;` 分隔:
|
||||||
|
|
||||||
- `!` 标识符表示该处传入的参数应**不是**规定的类型,或**不在**指定的值中。
|
- `!` 标识符表示该处传入的参数应**不是**规定的类型,或**不在**指定的值中。
|
||||||
- `?` 标识符表示该参数为**可选**参数,会在无参数匹配时跳过。
|
- `?` 标识符表示该参数为**可选**参数,会在无参数匹配时跳过。
|
||||||
- `/` 标识符表示该参数的类型注解需要隐藏。
|
- `/` 标识符表示该参数的类型注解需要隐藏。
|
||||||
|
|
||||||
另外,对于参数的注释也可以标记在 `key` 中,其与 key 或者标识符 以 `#` 分割:
|
另外,对于参数的注释也可以标记在 `key` 中,其与 key 或者标识符 以 `#` 分割:
|
||||||
`foo#这是注释;?` 或 `foo?#这是注释`
|
`foo#这是注释;?` 或 `foo?#这是注释`
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
|
||||||
`Args` 中的 `key` 在实际命令中并不需要传入(keyword 参数除外):
|
`Args` 中的 `key` 在实际命令中并不需要传入(keyword 参数除外):
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from arclet.alconna import Alconna, Args
|
from arclet.alconna import Alconna, Args
|
||||||
@@ -120,7 +118,7 @@ alc.parse("test --foo abc") # 错误
|
|||||||
alc.parse("test abc") # 正确
|
alc.parse("test abc") # 正确
|
||||||
```
|
```
|
||||||
|
|
||||||
若需要 `test --foo abc`,你应该使用 `Option`:
|
若需要 `test --foo abc`,你应该使用 `Option`:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from arclet.alconna import Alconna, Args, Option
|
from arclet.alconna import Alconna, Args, Option
|
||||||
@@ -131,11 +129,11 @@ alc = Alconna("test", Option("--foo", Args["foo", str]))
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
#### var
|
### var
|
||||||
|
|
||||||
var 负责命令参数的**类型检查**与**类型转化**
|
var 负责命令参数的**类型检查**与**类型转化**
|
||||||
|
|
||||||
`Args` 的`var`表面上看需要传入一个 `type`,但实际上它需要的是一个 `nepattern.BasePattern` 的实例:
|
`Args` 的`var`表面上看需要传入一个 `type`,但实际上它需要的是一个 `nepattern.BasePattern` 的实例:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from arclet.alconna import Args
|
from arclet.alconna import Args
|
||||||
@@ -146,89 +144,109 @@ from nepattern import BasePattern
|
|||||||
args = Args["foo", BasePattern("@\d+")]
|
args = Args["foo", BasePattern("@\d+")]
|
||||||
```
|
```
|
||||||
|
|
||||||
示例中可以传入 `str` 是因为 `str` 已经注册在了 `nepattern.global_patterns` 中,因此会替换为 `nepattern.global_patterns[str]`
|
`pip` 示例中可以传入 `str` 是因为 `str` 已经注册在了 `nepattern.global_patterns` 中,因此会替换为 `nepattern.global_patterns[str]`
|
||||||
|
|
||||||
`nepattern.global_patterns`默认支持的类型有:
|
`nepattern.global_patterns`默认支持的类型有:
|
||||||
|
|
||||||
- `str`: 匹配任意字符串
|
- `str`: 匹配任意字符串
|
||||||
- `int`: 匹配整数
|
- `int`: 匹配整数
|
||||||
- `float`: 匹配浮点数
|
- `float`: 匹配浮点数
|
||||||
- `bool`: 匹配 `True` 与 `False` 以及他们小写形式
|
- `bool`: 匹配 `True` 与 `False` 以及他们小写形式
|
||||||
- `hex`: 匹配 `0x` 开头的十六进制字符串
|
- `hex`: 匹配 `0x` 开头的十六进制字符串
|
||||||
- `url`: 匹配网址
|
- `url`: 匹配网址
|
||||||
- `email`: 匹配 `xxxx@xxx` 的字符串
|
- `email`: 匹配 `xxxx@xxx` 的字符串
|
||||||
- `ipv4`: 匹配 `xxx.xxx.xxx.xxx` 的字符串
|
- `ipv4`: 匹配 `xxx.xxx.xxx.xxx` 的字符串
|
||||||
- `list`: 匹配类似 `["foo","bar","baz"]` 的字符串
|
- `list`: 匹配类似 `["foo","bar","baz"]` 的字符串
|
||||||
- `dict`: 匹配类似 `{"foo":"bar","baz":"qux"}` 的字符串
|
- `dict`: 匹配类似 `{"foo":"bar","baz":"qux"}` 的字符串
|
||||||
- `datetime`: 传入一个 `datetime` 支持的格式字符串,或时间戳
|
- `datetime`: 传入一个 `datetime` 支持的格式字符串,或时间戳
|
||||||
- `Any`: 匹配任意类型
|
- `Any`: 匹配任意类型
|
||||||
- `AnyString`: 匹配任意类型,转为 `str`
|
- `AnyString`: 匹配任意类型,转为 `str`
|
||||||
- `Number`: 匹配 `int` 与 `float`,转为 `int`
|
- `Number`: 匹配 `int` 与 `float`,转为 `int`
|
||||||
|
|
||||||
同时可以使用 typing 中的类型:
|
同时可以使用 typing 中的类型:
|
||||||
|
|
||||||
- `Literal[X]`: 匹配其中的任意一个值
|
- `Literal[X]`: 匹配其中的任意一个值
|
||||||
- `Union[X, Y]`: 匹配其中的任意一个类型
|
- `Union[X, Y]`: 匹配其中的任意一个类型
|
||||||
- `Optional[xxx]`: 会自动将默认值设为 `None`,并在解析失败时使用默认值
|
- `Optional[xxx]`: 会自动将默认值设为 `None`,并在解析失败时使用默认值
|
||||||
- `List[X]`: 匹配一个列表,其中的元素为 `X` 类型
|
- `List[X]`: 匹配一个列表,其中的元素为 `X` 类型
|
||||||
- `Dict[X, Y]`: 匹配一个字典,其中的 key 为 `X` 类型,value 为 `Y` 类型
|
- `Dict[X, Y]`: 匹配一个字典,其中的 key 为 `X` 类型,value 为 `Y` 类型
|
||||||
- ...
|
- ...
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
|
||||||
几类特殊的传入标记:
|
几类特殊的传入标记:
|
||||||
|
|
||||||
- `"foo"`: 匹配字符串 "foo" (若没有某个 `BasePattern` 与之关联)
|
- `"foo"`: 匹配字符串 "foo" (若没有某个 `BasePattern` 与之关联)
|
||||||
- `RawStr("foo")`: 匹配字符串 "foo" (不会被 `BasePattern` 替换)
|
- `RawStr("foo")`: 匹配字符串 "foo" (即使有 `BasePattern` 与之关联也不会被替换)
|
||||||
- `"foo|bar|baz"`: 匹配 "foo" 或 "bar" 或 "baz"
|
- `"foo|bar|baz"`: 匹配 "foo" 或 "bar" 或 "baz"
|
||||||
- `[foo, bar, Baz, ...]`: 匹配其中的任意一个值或类型
|
- `[foo, bar, Baz, ...]`: 匹配其中的任意一个值或类型
|
||||||
- `Callable[[X], Y]`: 匹配一个参数为 `X` 类型的值,并返回通过该函数调用得到的 `Y` 类型的值
|
- `Callable[[X], Y]`: 匹配一个参数为 `X` 类型的值,并返回通过该函数调用得到的 `Y` 类型的值
|
||||||
- `"re:xxx"`: 匹配一个正则表达式 `xxx`,会返回 Match[0]
|
- `"re:xxx"`: 匹配一个正则表达式 `xxx`,会返回 Match[0]
|
||||||
- `"rep:xxx"`: 匹配一个正则表达式 `xxx`,会返回 `re.Match` 对象
|
- `"rep:xxx"`: 匹配一个正则表达式 `xxx`,会返回 `re.Match` 对象
|
||||||
- `{foo: bar, baz: qux}`: 匹配字典中的任意一个键, 并返回对应的值 (特殊的键 ... 会匹配任意的值)
|
- `{foo: bar, baz: qux}`: 匹配字典中的任意一个键, 并返回对应的值 (特殊的键 ... 会匹配任意的值)
|
||||||
- ...
|
- ...
|
||||||
|
|
||||||
|
**特别的**,你可以不传入 `var`,此时会使用 `key` 作为 `var`, 匹配 `key` 字符串。
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
`MultiVar` 则是一个特殊的标注,用于告知解析器该参数可以接受多个值,其构造方法形如 `MultiVar(str)`。 同样的还有 `KeyWordVar`,其构造方法形如 `KeyWordVar(str)`,用于告知解析器该参数为一个 keyword-only 参数。
|
#### MultiVar 与 KeyWordVar
|
||||||
|
|
||||||
|
`MultiVar` 是一个特殊的标注,用于告知解析器该参数可以接受多个值,类似于函数中的 `*args`,其构造方法形如 `MultiVar(str)`。
|
||||||
|
|
||||||
|
同样的还有 `KeyWordVar`,类似于函数中的 `*, name: type`,其构造方法形如 `KeyWordVar(str)`,用于告知解析器该参数为一个 keyword-only 参数。
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
|
||||||
`MultiVar` 与 `KeyWordVar` 组合时,代表该参数为一个可接受多个 key-value 的参数,其构造方法形如 `MultiVar(KeyWordVar(str))`
|
`MultiVar` 与 `KeyWordVar` 组合时,代表该参数为一个可接受多个 key-value 的参数,类似于函数中的 `**kwargs`,其构造方法形如 `MultiVar(KeyWordVar(str))`
|
||||||
|
|
||||||
`MultiVar` 与 `KeyWordVar` 也可以传入 `default` 参数,用于指定默认值
|
`MultiVar` 与 `KeyWordVar` 也可以传入 `default` 参数,用于指定默认值
|
||||||
|
|
||||||
`MultiVar` 不能在 `KeyWordVar` 之后传入
|
`MultiVar` 不能在 `KeyWordVar` 之后传入
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
### Option 和 Subcommand
|
### default
|
||||||
|
|
||||||
`Option` 可以传入一组 `alias`,如 `Option("--foo|-F|--FOO|-f")` 或 `Option("--foo", alias=["-F"]`
|
`default` 传入的是该参数的默认值或者 `Field`,以携带对于该参数的更多信息。
|
||||||
|
|
||||||
传入别名后,`option` 会选择其中长度最长的作为选项名称。若传入为 "--foo|-f",则命令名称为 "--foo"
|
默认情况下 (即不声明) `default` 的值为特殊值 `Empty`。这也意味着你可以将默认值设置为 `None` 表示默认值为空值。
|
||||||
|
|
||||||
|
`Field` 构造需要的参数说明如下:
|
||||||
|
|
||||||
|
- default: 参数单元的默认值
|
||||||
|
- alias: 参数单元默认值的别名
|
||||||
|
- completion: 参数单元的补全说明生成函数
|
||||||
|
- unmatch_tips: 参数单元的错误提示生成函数,其接收一个表示匹配失败的元素的参数
|
||||||
|
- missing_tips: 参数单元的缺失提示生成函数
|
||||||
|
|
||||||
|
## 选项与子命令(Option & Subcommand)
|
||||||
|
|
||||||
|
`Option` 和 `Subcommand` 可以传入一组 `alias`,如 `Option("--foo|-F|--FOO|-f")`,`Subcommand("foo", alias=["F"])`
|
||||||
|
|
||||||
|
传入别名后,选项与子命令会选择其中长度最长的作为其名称。若传入为 "--foo|-f",则命令名称为 "--foo"
|
||||||
|
|
||||||
:::tip 特别提醒!!!
|
:::tip 特别提醒!!!
|
||||||
|
|
||||||
在 Alconna 中 Option 的名字或别名**没有要求**必须在前面写上 `-`
|
Option 的名字或别名**没有要求**必须在前面写上 `-`
|
||||||
|
|
||||||
|
Option 与 Subcommand 的唯一区别在于 Subcommand 可以传入自己的 **Option** 与 **Subcommand**
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
`Subcommand` 可以传入自己的 **Option** 与 **Subcommand**
|
|
||||||
|
|
||||||
他们拥有如下共同参数:
|
他们拥有如下共同参数:
|
||||||
|
|
||||||
- `help_text`: 传入该组件的帮助信息
|
- `help_text`: 传入该组件的帮助信息
|
||||||
- `dest`: 被指定为解析完成时标注匹配结果的标识符,不传入时默认为选项或子命令的名称 (name)
|
- `dest`: 被指定为解析完成时标注匹配结果的标识符,不传入时默认为选项或子命令的名称 (name)
|
||||||
- `requires`: 一段指定顺序的字符串列表,作为唯一的前置序列与命令嵌套替换
|
- `requires`: 一段指定顺序的字符串列表,作为唯一的前置序列与命令嵌套替换
|
||||||
对于命令 `test foo bar baz qux <a:int>` 来讲,因为`foo bar baz` 仅需要判断是否相等, 所以可以这么编写:
|
对于命令 `test foo bar baz qux <a:int>` 来讲,因为`foo bar baz` 仅需要判断是否相等, 所以可以这么编写:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
Alconna("test", Option("qux", Args.a[int], requires=["foo", "bar", "baz"]))
|
Alconna("test", Option("qux", Args.a[int], requires=["foo", "bar", "baz"]))
|
||||||
```
|
```
|
||||||
|
|
||||||
- `default`: 默认值,在该组件未被解析时使用使用该值替换。
|
- `default`: 默认值,在该组件未被解析时使用使用该值替换。
|
||||||
特别的,使用 `OptionResult` 或 `SubcomanndResult` 可以设置包括参数字典在内的默认值:
|
特别的,使用 `OptionResult` 或 `SubcomanndResult` 可以设置包括参数字典在内的默认值:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from arclet.alconna import Option, OptionResult
|
from arclet.alconna import Option, OptionResult
|
||||||
@@ -237,25 +255,27 @@ opt1 = Option("--foo", default=False)
|
|||||||
opt2 = Option("--foo", default=OptionResult(value=False, args={"bar": 1}))
|
opt2 = Option("--foo", default=OptionResult(value=False, args={"bar": 1}))
|
||||||
```
|
```
|
||||||
|
|
||||||
`Option` 可以特别设置传入一类 `Action`,作为解析操作
|
### Action
|
||||||
|
|
||||||
`Action` 分为三类:
|
`Option` 可以特别设置传入一类 `Action`,作为解析操作
|
||||||
|
|
||||||
|
`Action` 分为三类:
|
||||||
|
|
||||||
- `store`: 无 Args 时, 仅存储一个值, 默认为 Ellipsis; 有 Args 时, 后续的解析结果会覆盖之前的值
|
- `store`: 无 Args 时, 仅存储一个值, 默认为 Ellipsis; 有 Args 时, 后续的解析结果会覆盖之前的值
|
||||||
- `append`: 无 Args 时, 将多个值存为列表, 默认为 Ellipsis; 有 Args 时, 每个解析结果会追加到列表中, 当存在默认值并且不为列表时, 会自动将默认值变成列表, 以保证追加的正确性
|
- `append`: 无 Args 时, 将多个值存为列表, 默认为 Ellipsis; 有 Args 时, 每个解析结果会追加到列表中, 当存在默认值并且不为列表时, 会自动将默认值变成列表, 以保证追加的正确性
|
||||||
- `count`: 无 Args 时, 计数器加一; 有 Args 时, 表现与 STORE 相同, 当存在默认值并且不为数字时, 会自动将默认值变成 1, 以保证计数器的正确性。
|
- `count`: 无 Args 时, 计数器加一; 有 Args 时, 表现与 STORE 相同, 当存在默认值并且不为数字时, 会自动将默认值变成 1, 以保证计数器的正确性。
|
||||||
|
|
||||||
`Alconna` 提供了预制的几类 `Action`:
|
`Alconna` 提供了预制的几类 `Action`:
|
||||||
|
|
||||||
- `store`(默认),`store_value`,`store_true`,`store_false`
|
- `store`(默认),`store_value`,`store_true`,`store_false`
|
||||||
- `append`,`append_value`
|
- `append`,`append_value`
|
||||||
- `count`
|
- `count`
|
||||||
|
|
||||||
### Arparma
|
## 解析结果(Arparma)
|
||||||
|
|
||||||
`Alconna.parse` 会返回由 **Arparma** 承载的解析结果
|
`Alconna.parse` 会返回由 **Arparma** 承载的解析结果
|
||||||
|
|
||||||
`Arparma` 会有如下参数:
|
`Arparma` 有如下属性:
|
||||||
|
|
||||||
- 调试类
|
- 调试类
|
||||||
|
|
||||||
@@ -272,22 +292,53 @@ opt2 = Option("--foo", default=OptionResult(value=False, args={"bar": 1}))
|
|||||||
- other_args: 除主参数外的其他解析结果
|
- other_args: 除主参数外的其他解析结果
|
||||||
- all_matched_args: 所有 Args 的解析结果
|
- all_matched_args: 所有 Args 的解析结果
|
||||||
|
|
||||||
`Arparma` 同时提供了便捷的查询方法 `query[type]()`,会根据传入的 `path` 查找参数并返回
|
`Arparma` 同时提供了便捷的查询方法 `query[type]()`,会根据传入的 `path` 查找参数并返回
|
||||||
|
|
||||||
`path` 支持如下:
|
`path` 支持如下:
|
||||||
|
|
||||||
- `main_args`, `options`, ...: 返回对应的属性
|
- `main_args`, `options`, ...: 返回对应的属性
|
||||||
- `args`: 返回 all_matched_args
|
- `args`: 返回 all_matched_args
|
||||||
- `main_args.xxx`, `options.xxx`, ...: 返回字典中 `xxx`键对应的值
|
- `main_args.xxx`, `options.xxx`, ...: 返回字典中 `xxx`键对应的值
|
||||||
- `args.xxx`: 返回 all_matched_args 中 `xxx`键对应的值
|
- `args.xxx`: 返回 all_matched_args 中 `xxx`键对应的值
|
||||||
- `options.foo`, `foo`: 返回选项 `foo` 的解析结果 (OptionResult)
|
- `options.foo`, `foo`: 返回选项 `foo` 的解析结果 (OptionResult)
|
||||||
- `options.foo.value`, `foo.value`: 返回选项 `foo` 的解析值
|
- `options.foo.value`, `foo.value`: 返回选项 `foo` 的解析值
|
||||||
- `options.foo.args`, `foo.args`: 返回选项 `foo` 的解析参数字典
|
- `options.foo.args`, `foo.args`: 返回选项 `foo` 的解析参数字典
|
||||||
- `options.foo.args.bar`, `foo.bar`: 返回选项 `foo` 的参数字典中 `bar` 键对应的值 ...
|
- `options.foo.args.bar`, `foo.bar`: 返回选项 `foo` 的参数字典中 `bar` 键对应的值 ...
|
||||||
|
|
||||||
|
## 元数据(CommandMeta)
|
||||||
|
|
||||||
|
`Alconna` 的元数据相当于其配置,拥有以下条目:
|
||||||
|
|
||||||
|
- `description`: 命令的描述
|
||||||
|
- `usage`: 命令的用法
|
||||||
|
- `example`: 命令的使用样例
|
||||||
|
- `author`: 命令的作者
|
||||||
|
- `fuzzy_match`: 命令是否开启模糊匹配
|
||||||
|
- `fuzzy_threshold`: 模糊匹配阈值
|
||||||
|
- `raise_exception`: 命令是否抛出异常
|
||||||
|
- `hide`: 命令是否对 manager 隐藏
|
||||||
|
- `hide_shortcut`: 命令的快捷指令是否在 help 信息中隐藏
|
||||||
|
- `keep_crlf`: 命令解析时是否保留换行字符
|
||||||
|
- `compact`: 命令是否允许第一个参数紧随头部
|
||||||
|
- `strict`: 命令是否严格匹配,若为 False 则未知参数将作为名为 $extra 的参数
|
||||||
|
- `context_style`: 命令上下文插值的风格,None 为关闭,bracket 为 {...},parentheses 为 $(...)
|
||||||
|
- `extra`: 命令的自定义额外信息
|
||||||
|
|
||||||
|
元数据一定使用 `meta=...` 形式传入:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from arclet.alconna import Alconna, CommandMeta
|
||||||
|
|
||||||
|
alc = Alconna(..., meta=CommandMeta("foo", example="bar"))
|
||||||
|
```
|
||||||
|
|
||||||
## 命名空间配置
|
## 命名空间配置
|
||||||
|
|
||||||
命名空间配置 (以下简称命名空间) 相当于`Alconna`的设置,`Alconna`默认使用“Alconna”命名空间,命名空间有以下几个属性:
|
命名空间配置 (以下简称命名空间) 相当于 `Alconna` 的默认配置,其优先度低于 `CommandMeta`。
|
||||||
|
|
||||||
|
`Alconna` 默认使用 "Alconna" 命名空间。
|
||||||
|
|
||||||
|
命名空间有以下几个属性:
|
||||||
|
|
||||||
- name: 命名空间名称
|
- name: 命名空间名称
|
||||||
- prefixes: 默认前缀配置
|
- prefixes: 默认前缀配置
|
||||||
@@ -296,9 +347,11 @@ opt2 = Option("--foo", default=OptionResult(value=False, args={"bar": 1}))
|
|||||||
- fuzzy_match: 默认是否开启模糊匹配
|
- fuzzy_match: 默认是否开启模糊匹配
|
||||||
- raise_exception: 默认是否抛出异常
|
- raise_exception: 默认是否抛出异常
|
||||||
- builtin_option_name: 默认的内置选项名称(--help, --shortcut, --comp)
|
- builtin_option_name: 默认的内置选项名称(--help, --shortcut, --comp)
|
||||||
|
- disable_builtin_options: 默认禁用的内置选项(--help, --shortcut, --comp)
|
||||||
- enable_message_cache: 默认是否启用消息缓存
|
- enable_message_cache: 默认是否启用消息缓存
|
||||||
- compact: 默认是否开启紧凑模式
|
- compact: 默认是否开启紧凑模式
|
||||||
- strict: 命令是否严格匹配
|
- strict: 命令是否严格匹配
|
||||||
|
- context_style: 命令上下文插值的风格
|
||||||
- ...
|
- ...
|
||||||
|
|
||||||
### 新建命名空间并替换
|
### 新建命名空间并替换
|
||||||
@@ -307,7 +360,7 @@ opt2 = Option("--foo", default=OptionResult(value=False, args={"bar": 1}))
|
|||||||
from arclet.alconna import Alconna, namespace, Namespace, Subcommand, Args, config
|
from arclet.alconna import Alconna, namespace, Namespace, Subcommand, Args, config
|
||||||
|
|
||||||
|
|
||||||
ns = Namespace("foo", prefixes=["/"]) # 创建 "foo"命名空间配置, 它要求创建的Alconna的主命令前缀必须是/
|
ns = Namespace("foo", prefixes=["/"]) # 创建 "foo"命名空间配置, 它要求创建的Alconna的主命令前缀必须是/
|
||||||
|
|
||||||
alc = Alconna("pip", Subcommand("install", Args["package", str]), namespace=ns) # 在创建Alconna时候传入命名空间以替换默认命名空间
|
alc = Alconna("pip", Subcommand("install", Args["package", str]), namespace=ns) # 在创建Alconna时候传入命名空间以替换默认命名空间
|
||||||
|
|
||||||
@@ -342,15 +395,15 @@ with namespace(config.default_namespace.name) as np:
|
|||||||
|
|
||||||
快捷命令可以做到标识一段命令, 并且传递参数给原命令
|
快捷命令可以做到标识一段命令, 并且传递参数给原命令
|
||||||
|
|
||||||
一般情况下你可以通过 `Alconna.shortcut` 进行快捷指令操作 (创建,删除)
|
一般情况下你可以通过 `Alconna.shortcut` 进行快捷指令操作 (创建,删除)
|
||||||
|
|
||||||
`shortcut` 的第一个参数为快捷指令名称,第二个参数为 `ShortcutArgs`,作为快捷指令的配置:
|
`shortcut` 的第一个参数为快捷指令名称,第二个参数为 `ShortcutArgs`,作为快捷指令的配置:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
class ShortcutArgs(TypedDict):
|
class ShortcutArgs(TypedDict):
|
||||||
"""快捷指令参数"""
|
"""快捷指令参数"""
|
||||||
|
|
||||||
command: NotRequired[DataCollection[Any]]
|
command: NotRequired[str]
|
||||||
"""快捷指令的命令"""
|
"""快捷指令的命令"""
|
||||||
args: NotRequired[list[Any]]
|
args: NotRequired[list[Any]]
|
||||||
"""快捷指令的附带参数"""
|
"""快捷指令的附带参数"""
|
||||||
@@ -358,6 +411,10 @@ class ShortcutArgs(TypedDict):
|
|||||||
"""是否允许命令后随参数"""
|
"""是否允许命令后随参数"""
|
||||||
prefix: NotRequired[bool]
|
prefix: NotRequired[bool]
|
||||||
"""是否调用时保留指令前缀"""
|
"""是否调用时保留指令前缀"""
|
||||||
|
wrapper: NotRequired[ShortcutRegWrapper]
|
||||||
|
"""快捷指令的正则匹配结果的额外处理函数"""
|
||||||
|
humanized: NotRequired[str]
|
||||||
|
"""快捷指令的人类可读描述"""
|
||||||
```
|
```
|
||||||
|
|
||||||
### args的使用
|
### args的使用
|
||||||
@@ -400,28 +457,28 @@ alc.parse("echo hello world!")
|
|||||||
# hello world!
|
# hello world!
|
||||||
```
|
```
|
||||||
|
|
||||||
当 `fuzzy` 为 False 时,第一个例子中传入 `"涩图1张 abc"` 之类的快捷指令将视为解析失败
|
当 `fuzzy` 为 False 时,第一个例子中传入 `"涩图1张 abc"` 之类的快捷指令将视为解析失败
|
||||||
|
|
||||||
快捷指令允许三类特殊的 placeholder:
|
快捷指令允许三类特殊的 placeholder:
|
||||||
|
|
||||||
- `{%X}`: 如 `setu {%0}`,表示此处填入快捷指令后随的第 X 个参数。
|
- `{%X}`: 如 `setu {%0}`,表示此处填入快捷指令后随的第 X 个参数。
|
||||||
|
|
||||||
例如,若快捷指令为 `涩图`, 配置为 `{"command": "setu {%0}"}`, 则指令 `涩图 1` 相当于 `setu 1`
|
例如,若快捷指令为 `涩图`, 配置为 `{"command": "setu {%0}"}`, 则指令 `涩图 1` 相当于 `setu 1`
|
||||||
|
|
||||||
- `{*}`: 表示此处填入所有后随参数,并且可以通过 `{*X}` 的方式指定组合参数之间的分隔符。
|
- `{*}`: 表示此处填入所有后随参数,并且可以通过 `{*X}` 的方式指定组合参数之间的分隔符。
|
||||||
|
|
||||||
- `{X}`: 表示此处填入可能的正则匹配的组:
|
- `{X}`: 表示此处填入可能的正则匹配的组:
|
||||||
|
|
||||||
- 若 `command` 中存在匹配组 `(xxx)`,则 `{X}` 表示第 X 个匹配组的内容
|
- 若 `command` 中存在匹配组 `(xxx)`,则 `{X}` 表示第 X 个匹配组的内容
|
||||||
- 若 `command` 中存储匹配组 `(?P<xxx>...)`, 则 `{X}` 表示 **名字** 为 X 的匹配结果
|
- 若 `command` 中存储匹配组 `(?P<xxx>...)`, 则 `{X}` 表示 **名字** 为 X 的匹配结果
|
||||||
|
|
||||||
除此之外, 通过 **Alconna** 内置选项 `--shortcut` 可以动态操作快捷指令
|
除此之外, 通过 **Alconna** 内置选项 `--shortcut` 可以动态操作快捷指令
|
||||||
|
|
||||||
例如:
|
例如:
|
||||||
|
|
||||||
- `cmd --shortcut <key> <cmd>` 来增加一个快捷指令
|
- `cmd --shortcut <key> <cmd>` 来增加一个快捷指令
|
||||||
- `cmd --shortcut list` 来列出当前指令的所有快捷指令
|
- `cmd --shortcut list` 来列出当前指令的所有快捷指令
|
||||||
- `cmd --shortcut delete key` 来删除一个快捷指令
|
- `cmd --shortcut delete key` 来删除一个快捷指令
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from arclet.alconna import Alconna, Args
|
from arclet.alconna import Alconna, Args
|
||||||
@@ -437,7 +494,7 @@ alc.parse("eval --shortcut list")
|
|||||||
|
|
||||||
## 紧凑命令
|
## 紧凑命令
|
||||||
|
|
||||||
`Alconna`, `Option` 与 `Subcommand` 可以设置 `compact=True` 使得解析命令时允许名称与后随参数之间没有分隔:
|
`Alconna`, `Option` 与 `Subcommand` 可以设置 `compact=True` 使得解析命令时允许名称与后随参数之间没有分隔:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from arclet.alconna import Alconna, Option, CommandMeta, Args
|
from arclet.alconna import Alconna, Option, CommandMeta, Args
|
||||||
@@ -459,7 +516,7 @@ print(alc.parse("gcc -Fabc -Fdef -Fxyz").query[list]("flag.content"))
|
|||||||
# ['abc', 'def', 'xyz']
|
# ['abc', 'def', 'xyz']
|
||||||
```
|
```
|
||||||
|
|
||||||
当 `Option` 的 `action` 为 `count` 时,其自动支持 `compact` 特性:
|
当 `Option` 的 `action` 为 `count` 时,其自动支持 `compact` 特性:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from arclet.alconna import Alconna, Option, count
|
from arclet.alconna import Alconna, Option, count
|
||||||
@@ -472,8 +529,6 @@ print(alc.parse("pp -vvv").query[int]("verbose.value"))
|
|||||||
|
|
||||||
## 模糊匹配
|
## 模糊匹配
|
||||||
|
|
||||||
模糊匹配通过在 Alconna 中设置其 CommandMeta 开启
|
|
||||||
|
|
||||||
模糊匹配会应用在任意需要进行名称判断的地方,如 **命令名称**,**选项名称** 和 **参数名称** (如指定需要传入参数名称)。
|
模糊匹配会应用在任意需要进行名称判断的地方,如 **命令名称**,**选项名称** 和 **参数名称** (如指定需要传入参数名称)。
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@@ -490,7 +545,7 @@ alc.parse("test_fuzy")
|
|||||||
|
|
||||||
半自动补全为用户提供了推荐后续输入的功能
|
半自动补全为用户提供了推荐后续输入的功能
|
||||||
|
|
||||||
补全默认通过 `--comp` 或 `-cp` 或 `?` 触发:(命名空间配置可修改名称)
|
补全默认通过 `--comp` 或 `-cp` 或 `?` 触发:(命名空间配置可修改名称)
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from arclet.alconna import Alconna, Args, Option
|
from arclet.alconna import Alconna, Args, Option
|
||||||
@@ -515,9 +570,9 @@ output
|
|||||||
|
|
||||||
## Duplication
|
## Duplication
|
||||||
|
|
||||||
**Duplication** 用来提供更好的自动补全,类似于 **ArgParse** 的 **Namespace**
|
**Duplication** 用来提供更好的自动补全,类似于 **ArgParse** 的 **Namespace**
|
||||||
|
|
||||||
普通情况下使用,需要利用到 **ArgsStub**、**OptionStub** 和 **SubcommandStub** 三个部分
|
普通情况下使用,需要利用到 **ArgsStub**、**OptionStub** 和 **SubcommandStub** 三个部分
|
||||||
|
|
||||||
以pip为例,其对应的 Duplication 应如下构造:
|
以pip为例,其对应的 Duplication 应如下构造:
|
||||||
|
|
||||||
@@ -526,20 +581,20 @@ from arclet.alconna import Alconna, Args, Option, OptionResult, Duplication, Sub
|
|||||||
|
|
||||||
|
|
||||||
class MyDup(Duplication):
|
class MyDup(Duplication):
|
||||||
verbose: OptionResult
|
verbose: OptionResult
|
||||||
install: SubcommandStub
|
install: SubcommandStub
|
||||||
|
|
||||||
|
|
||||||
alc = Alconna(
|
alc = Alconna(
|
||||||
"pip",
|
"pip",
|
||||||
Subcommand(
|
Subcommand(
|
||||||
"install",
|
"install",
|
||||||
Args["package", str],
|
Args["package", str],
|
||||||
Option("-r|--requirement", Args["file", str]),
|
Option("-r|--requirement", Args["file", str]),
|
||||||
Option("-i|--index-url", Args["url", str]),
|
Option("-i|--index-url", Args["url", str]),
|
||||||
),
|
),
|
||||||
Option("-v|--version"),
|
Option("-v|--version"),
|
||||||
Option("-v|--verbose", action=count),
|
Option("-v|--verbose", action=count),
|
||||||
)
|
)
|
||||||
|
|
||||||
res = alc.parse("pip -v install ...") # 不使用duplication获得的提示较少
|
res = alc.parse("pip -v install ...") # 不使用duplication获得的提示较少
|
||||||
@@ -551,7 +606,7 @@ print(result.install)
|
|||||||
# SubcommandStub(_origin=Subcommand('install', args=Args('package': str)), _value=Ellipsis, available=True, args=ArgsStub(_origin=Args('package': str), _value={'package': '...'}, available=True), dest='install', options=[OptionStub(_origin=Option('requirement', args=Args('file': str)), _value=None, available=False, args=ArgsStub(_origin=Args('file': str), _value={}, available=False), dest='requirement', aliases=['r', 'requirement'], name='requirement'), OptionStub(_origin=Option('index-url', args=Args('url': str)), _value=None, available=False, args=ArgsStub(_origin=Args('url': str), _value={}, available=False), dest='index-url', aliases=['index-url', 'i'], name='index-url')], subcommands=[], name='install')
|
# SubcommandStub(_origin=Subcommand('install', args=Args('package': str)), _value=Ellipsis, available=True, args=ArgsStub(_origin=Args('package': str), _value={'package': '...'}, available=True), dest='install', options=[OptionStub(_origin=Option('requirement', args=Args('file': str)), _value=None, available=False, args=ArgsStub(_origin=Args('file': str), _value={}, available=False), dest='requirement', aliases=['r', 'requirement'], name='requirement'), OptionStub(_origin=Option('index-url', args=Args('url': str)), _value=None, available=False, args=ArgsStub(_origin=Args('url': str), _value={}, available=False), dest='index-url', aliases=['index-url', 'i'], name='index-url')], subcommands=[], name='install')
|
||||||
```
|
```
|
||||||
|
|
||||||
**Duplication** 也可以如 **Namespace** 一样直接标明参数名称和类型:
|
**Duplication** 也可以如 **Namespace** 一样直接标明参数名称和类型:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
@@ -563,3 +618,23 @@ class MyDup(Duplication):
|
|||||||
file: Optional[str] = None
|
file: Optional[str] = None
|
||||||
url: Optional[str] = None
|
url: Optional[str] = None
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 上下文插值
|
||||||
|
|
||||||
|
当 `context_style` 条目被设置后,传入的命令中符合上下文插值的字段会被自动替换成当前上下文中的信息。
|
||||||
|
|
||||||
|
上下文可以在 `parse` 中传入:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from arclet.alconna import Alconna, Args, CommandMeta
|
||||||
|
|
||||||
|
alc = Alconna("test", Args["foo", int], meta=CommandMeta(context_style="parentheses"))
|
||||||
|
|
||||||
|
alc.parse("test $(bar)", {"bar": 123})
|
||||||
|
# {"foo": 123}
|
||||||
|
```
|
||||||
|
|
||||||
|
context_style 的值分两种:
|
||||||
|
|
||||||
|
- `"bracket"`: 插值格式为 `{...}`,例如 `{foo}`
|
||||||
|
- `"parentheses"`: 插值格式为 `$(...)`,例如 `$(bar)`
|
@@ -46,3 +46,31 @@ description: 配置项
|
|||||||
- **默认值**: `[]`
|
- **默认值**: `[]`
|
||||||
|
|
||||||
全局加载的扩展,路径以 . 分隔,如 `foo.bar.baz:DemoExtension`。
|
全局加载的扩展,路径以 . 分隔,如 `foo.bar.baz:DemoExtension`。
|
||||||
|
|
||||||
|
## alconna_context_style
|
||||||
|
|
||||||
|
- **类型**: `Optional[Literal["bracket", "parentheses"]]`
|
||||||
|
- **默认值**: `None`
|
||||||
|
|
||||||
|
全局命令上下文插值的风格,None 为关闭,bracket 为 `{...}`,parentheses 为 `$(...)`。
|
||||||
|
|
||||||
|
## alconna_enable_saa_patch
|
||||||
|
|
||||||
|
- **类型**: `bool`
|
||||||
|
- **默认值**: `False`
|
||||||
|
|
||||||
|
是否启用 SAA 补丁。
|
||||||
|
|
||||||
|
## alconna_apply_filehost
|
||||||
|
|
||||||
|
- **类型**: `bool`
|
||||||
|
- **默认值**: `False`
|
||||||
|
|
||||||
|
是否启用文件托管。
|
||||||
|
|
||||||
|
## alconna_apply_fetch_targets
|
||||||
|
|
||||||
|
- **类型**: `bool`
|
||||||
|
- **默认值**: `False`
|
||||||
|
|
||||||
|
是否启动时拉取一次发送对象列表。
|
@@ -3,13 +3,14 @@ sidebar_position: 3
|
|||||||
description: 响应规则的使用
|
description: 响应规则的使用
|
||||||
---
|
---
|
||||||
|
|
||||||
|
import Messenger from "@site/src/components/Messenger";
|
||||||
|
|
||||||
# Alconna 插件
|
# Alconna 插件
|
||||||
|
|
||||||
展示:
|
展示:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from nonebot_plugin_alconna.adapters.onebot12 import Image
|
from nonebot_plugin_alconna import At, Image, on_alconna
|
||||||
from nonebot_plugin_alconna import At, on_alconna
|
|
||||||
from arclet.alconna import Args, Option, Alconna, Arparma, MultiVar, Subcommand
|
from arclet.alconna import Args, Option, Alconna, Arparma, MultiVar, Subcommand
|
||||||
|
|
||||||
|
|
||||||
@@ -30,8 +31,8 @@ rg = on_alconna(alc, auto_send_output=True)
|
|||||||
@rg.handle()
|
@rg.handle()
|
||||||
async def _(result: Arparma):
|
async def _(result: Arparma):
|
||||||
if result.find("list"):
|
if result.find("list"):
|
||||||
img = await ob12_gen_role_group_list_image()
|
img: bytes = await gen_role_group_list_image()
|
||||||
await rg.finish(Image(img))
|
await rg.finish(Image(raw=img))
|
||||||
if result.find("add"):
|
if result.find("add"):
|
||||||
group = await create_role_group(result.query[str]("add.name"))
|
group = await create_role_group(result.query[str]("add.name"))
|
||||||
if result.find("add.member"):
|
if result.find("add.member"):
|
||||||
@@ -42,7 +43,7 @@ async def _(result: Arparma):
|
|||||||
|
|
||||||
## 响应器使用
|
## 响应器使用
|
||||||
|
|
||||||
本插件基于 **Alconna**,为 **Nonebot** 提供了一类新的事件响应器辅助函数 `on_alconna`:
|
本插件基于 **Alconna**,为 **Nonebot** 提供了一类新的事件响应器辅助函数 `on_alconna`:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def on_alconna(
|
def on_alconna(
|
||||||
@@ -61,10 +62,10 @@ def on_alconna(
|
|||||||
):
|
):
|
||||||
```
|
```
|
||||||
|
|
||||||
- `command`: Alconna 命令或字符串,字符串将通过 `AlconnaFormat` 转换为 Alconna 命令
|
- `command`: Alconna 命令或字符串,字符串将通过 `AlconnaFormat` 转换为 Alconna 命令
|
||||||
- `skip_for_unmatch`: 是否在命令不匹配时跳过该响应
|
- `skip_for_unmatch`: 是否在命令不匹配时跳过该响应
|
||||||
- `auto_send_output`: 是否自动发送输出信息并跳过响应
|
- `auto_send_output`: 是否自动发送输出信息并跳过响应
|
||||||
- `aliases`: 命令别名, 作用类似于 `on_command` 中的 aliases
|
- `aliases`: 命令别名, 作用类似于 `on_command` 中的 aliases
|
||||||
- `comp_config`: 补全会话配置, 不传入则不启用补全会话
|
- `comp_config`: 补全会话配置, 不传入则不启用补全会话
|
||||||
- `extensions`: 需要加载的匹配扩展, 可以是扩展类或扩展实例
|
- `extensions`: 需要加载的匹配扩展, 可以是扩展类或扩展实例
|
||||||
- `exclude_ext`: 需要排除的匹配扩展, 可以是扩展类或扩展的id
|
- `exclude_ext`: 需要排除的匹配扩展, 可以是扩展类或扩展的id
|
||||||
@@ -72,14 +73,14 @@ def on_alconna(
|
|||||||
- `use_cmd_start`: 是否使用 COMMAND_START 作为命令前缀
|
- `use_cmd_start`: 是否使用 COMMAND_START 作为命令前缀
|
||||||
- `use_cmd_sep`: 是否使用 COMMAND_SEP 作为命令分隔符
|
- `use_cmd_sep`: 是否使用 COMMAND_SEP 作为命令分隔符
|
||||||
|
|
||||||
`on_alconna` 返回的是 `Matcher` 的子类 `AlconnaMatcher` ,其拓展了如下方法:
|
`on_alconna` 返回的是 `Matcher` 的子类 `AlconnaMatcher` ,其拓展了如下方法:
|
||||||
|
|
||||||
- `.assign(path, value, or_not)`: 用于对包含多个选项/子命令的命令的分派处理(具体请看[条件控制](./matcher.md#条件控制))
|
- `.assign(path, value, or_not)`: 用于对包含多个选项/子命令的命令的分派处理(具体请看[条件控制](./matcher.mdx#条件控制))
|
||||||
- `.got_path(path, prompt, middleware)`: 在 `got` 方法的基础上,会以 path 对应的参数为准,读取传入 message 的最后一个消息段并验证转换
|
- `.got_path(path, prompt, middleware)`: 在 `got` 方法的基础上,会以 path 对应的参数为准,读取传入 message 的最后一个消息段并验证转换
|
||||||
- `.set_path_arg(key, value)`, `.get_path_arg(key)`: 类似 `set_arg` 和 `got_arg`,为 `got_path` 的特化版本
|
- `.set_path_arg(key, value)`, `.get_path_arg(key)`: 类似 `set_arg` 和 `got_arg`,为 `got_path` 的特化版本
|
||||||
- `.reject_path(path[, prompt, fallback])`: 类似于 `reject_arg`,对应 `got_path`
|
- `.reject_path(path[, prompt, fallback])`: 类似于 `reject_arg`,对应 `got_path`
|
||||||
- `.dispatch`: 同样的分派处理,但是是类似 `CommandGroup` 一样返回新的 `AlconnaMatcher`
|
- `.dispatch`: 同样的分派处理,但是是类似 `CommandGroup` 一样返回新的 `AlconnaMatcher`
|
||||||
- `.got`, `send`, `reject`, ... : 拓展了 prompt 类型,即支持使用 `UniMessage` 作为 prompt
|
- `.got`, `send`, `reject`, ... : 拓展了 prompt 类型,即支持使用 `UniMessage` 作为 prompt
|
||||||
|
|
||||||
实例:
|
实例:
|
||||||
|
|
||||||
@@ -88,7 +89,7 @@ from nonebot import require
|
|||||||
require("nonebot_plugin_alconna")
|
require("nonebot_plugin_alconna")
|
||||||
|
|
||||||
from arclet.alconna import Alconna, Option, Args
|
from arclet.alconna import Alconna, Option, Args
|
||||||
from nonebot_plugin_alconna import on_alconna, AlconnaMatch, Match, UniMessage
|
from nonebot_plugin_alconna import on_alconna, Match, UniMessage
|
||||||
|
|
||||||
|
|
||||||
login = on_alconna(Alconna(["/"], "login", Args["password?", str], Option("-r|--recall"))) # 这里["/"]指命令前缀必须是/
|
login = on_alconna(Alconna(["/"], "login", Args["password?", str], Option("-r|--recall"))) # 这里["/"]指命令前缀必须是/
|
||||||
@@ -96,13 +97,13 @@ login = on_alconna(Alconna(["/"], "login", Args["password?", str], Option("-r|--
|
|||||||
# /login -r 触发
|
# /login -r 触发
|
||||||
@login.assign("recall")
|
@login.assign("recall")
|
||||||
async def login_exit():
|
async def login_exit():
|
||||||
await login.finish("已退出")
|
await login.finish("已退出")
|
||||||
|
|
||||||
# /login xxx 触发
|
# /login xxx 触发
|
||||||
@login.assign("password")
|
@login.assign("password")
|
||||||
async def login_handle(pw: Match[str] = AlconnaMatch("password")):
|
async def login_handle(pw: Match[str]):
|
||||||
if pw.available:
|
if pw.available:
|
||||||
login.set_path_arg("password", pw.result)
|
login.set_path_arg("password", pw.result)
|
||||||
|
|
||||||
# /login 触发
|
# /login 触发
|
||||||
@login.got_path("password", prompt=UniMessage.template("{:At(user, $event.get_user_id())} 请输入密码"))
|
@login.got_path("password", prompt=UniMessage.template("{:At(user, $event.get_user_id())} 请输入密码"))
|
||||||
@@ -115,24 +116,24 @@ async def login_got(password: str):
|
|||||||
|
|
||||||
本插件提供了一系列依赖注入函数,便于在响应函数中获取解析结果:
|
本插件提供了一系列依赖注入函数,便于在响应函数中获取解析结果:
|
||||||
|
|
||||||
- `AlconnaResult`: `CommandResult` 类型的依赖注入函数
|
- `AlconnaResult`: `CommandResult` 类型的依赖注入函数
|
||||||
- `AlconnaMatches`: `Arparma` 类型的依赖注入函数
|
- `AlconnaMatches`: `Arparma` 类型的依赖注入函数
|
||||||
- `AlconnaDuplication`: `Duplication` 类型的依赖注入函数
|
- `AlconnaDuplication`: `Duplication` 类型的依赖注入函数
|
||||||
- `AlconnaMatch`: `Match` 类型的依赖注入函数
|
- `AlconnaMatch`: `Match` 类型的依赖注入函数
|
||||||
- `AlconnaQuery`: `Query` 类型的依赖注入函数
|
- `AlconnaQuery`: `Query` 类型的依赖注入函数
|
||||||
|
|
||||||
同时,基于 [`Annotated` 支持](https://github.com/nonebot/nonebot2/pull/1832),添加了两类注解:
|
同时,基于 [`Annotated` 支持](https://github.com/nonebot/nonebot2/pull/1832),添加了两类注解:
|
||||||
|
|
||||||
- `AlcMatches`:同 `AlconnaMatches`
|
- `AlcMatches`:同 `AlconnaMatches`
|
||||||
- `AlcResult`:同 `AlconnaResult`
|
- `AlcResult`:同 `AlconnaResult`
|
||||||
|
|
||||||
可以看到,本插件提供了几类额外的模型:
|
可以看到,本插件提供了几类额外的模型:
|
||||||
|
|
||||||
- `CommandResult`: 解析结果,包括了源命令 `source: Alconna` ,解析结果 `result: Arparma`,以及可能的输出信息 `output: str | None` 字段
|
- `CommandResult`: 解析结果,包括了源命令 `source: Alconna` ,解析结果 `result: Arparma`,以及可能的输出信息 `output: str | None` 字段
|
||||||
- `Match`: 匹配项,表示参数是否存在于 `all_matched_args` 内,可用 `Match.available` 判断是否匹配,`Match.result` 获取匹配的值
|
- `Match`: 匹配项,表示参数是否存在于 `all_matched_args` 内,可用 `Match.available` 判断是否匹配,`Match.result` 获取匹配的值
|
||||||
- `Query`: 查询项,表示参数是否可由 `Arparma.query` 查询并获得结果,可用 `Query.available` 判断是否查询成功,`Query.result` 获取查询结果
|
- `Query`: 查询项,表示参数是否可由 `Arparma.query` 查询并获得结果,可用 `Query.available` 判断是否查询成功,`Query.result` 获取查询结果
|
||||||
|
|
||||||
**Alconna** 默认依赖注入的目标参数皆不需要使用依赖注入函数, 该效果对于 `AlconnaMatcher.got_path` 下的 Arg 同样有效:
|
**Alconna** 默认依赖注入的目标参数皆不需要使用依赖注入函数, 该效果对于 `AlconnaMatcher.got_path` 下的 Arg 同样有效:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
async def handle(
|
async def handle(
|
||||||
@@ -224,8 +225,8 @@ async def handle_test4(qux: Query[bool] = Query("baz.qux", False)):
|
|||||||
| [飞书](https://github.com/nonebot/adapter-feishu) | adapters.feishu |
|
| [飞书](https://github.com/nonebot/adapter-feishu) | adapters.feishu |
|
||||||
| [GitHub](https://github.com/nonebot/adapter-github) | adapters.github |
|
| [GitHub](https://github.com/nonebot/adapter-github) | adapters.github |
|
||||||
| [QQ bot](https://github.com/nonebot/adapter-qq) | adapters.qq |
|
| [QQ bot](https://github.com/nonebot/adapter-qq) | adapters.qq |
|
||||||
| [QQ 频道 bot](https://github.com/nonebot/adapter-qq) | adapters.qqguild |
|
|
||||||
| [钉钉](https://github.com/nonebot/adapter-ding) | adapters.ding |
|
| [钉钉](https://github.com/nonebot/adapter-ding) | adapters.ding |
|
||||||
|
| [Dodo](https://github.com/nonebot/adapter-dodo) | adapters.dodo |
|
||||||
| [Console](https://github.com/nonebot/adapter-console) | adapters.console |
|
| [Console](https://github.com/nonebot/adapter-console) | adapters.console |
|
||||||
| [开黑啦](https://github.com/Tian-que/nonebot-adapter-kaiheila) | adapters.kook |
|
| [开黑啦](https://github.com/Tian-que/nonebot-adapter-kaiheila) | adapters.kook |
|
||||||
| [Mirai](https://github.com/ieew/nonebot_adapter_mirai2) | adapters.mirai |
|
| [Mirai](https://github.com/ieew/nonebot_adapter_mirai2) | adapters.mirai |
|
||||||
@@ -233,7 +234,6 @@ async def handle_test4(qux: Query[bool] = Query("baz.qux", False)):
|
|||||||
| [MineCraft](https://github.com/17TheWord/nonebot-adapter-minecraft) | adapters.minecraft |
|
| [MineCraft](https://github.com/17TheWord/nonebot-adapter-minecraft) | adapters.minecraft |
|
||||||
| [BiliBili Live](https://github.com/wwweww/adapter-bilibili) | adapters.bilibili |
|
| [BiliBili Live](https://github.com/wwweww/adapter-bilibili) | adapters.bilibili |
|
||||||
| [Walle-Q](https://github.com/onebot-walle/nonebot_adapter_walleq) | adapters.onebot12 |
|
| [Walle-Q](https://github.com/onebot-walle/nonebot_adapter_walleq) | adapters.onebot12 |
|
||||||
| [Villa](https://github.com/CMHopeSunshine/nonebot-adapter-villa) | adapters.villa |
|
|
||||||
| [Discord](https://github.com/nonebot/adapter-discord) | adapters.discord |
|
| [Discord](https://github.com/nonebot/adapter-discord) | adapters.discord |
|
||||||
| [Red 协议](https://github.com/nonebot/adapter-red) | adapters.red |
|
| [Red 协议](https://github.com/nonebot/adapter-red) | adapters.red |
|
||||||
| [Satori 协议](https://github.com/nonebot/adapter-satori) | adapters.satori |
|
| [Satori 协议](https://github.com/nonebot/adapter-satori) | adapters.satori |
|
||||||
@@ -341,7 +341,7 @@ async def tt(target: Union[str, At]):
|
|||||||
|
|
||||||
## 响应器创建装饰
|
## 响应器创建装饰
|
||||||
|
|
||||||
本插件提供了一个 `funcommand` 装饰器, 其用于将一个接受任意参数, 返回 `str` 或 `Message` 或 `MessageSegment` 的函数转换为命令响应器:
|
本插件提供了一个 `funcommand` 装饰器, 其用于将一个接受任意参数, 返回 `str` 或 `Message` 或 `MessageSegment` 的函数转换为命令响应器:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from nonebot_plugin_alconna import funcommand
|
from nonebot_plugin_alconna import funcommand
|
||||||
@@ -369,7 +369,7 @@ async def echo_exit(msg: Match[str] = AlconnaMatch("msg")):
|
|||||||
|
|
||||||
## 类Koishi构造器
|
## 类Koishi构造器
|
||||||
|
|
||||||
本插件提供了一个 `Command` 构造器,其基于 `arclet.alconna.tools` 中的 `AlconnaString`, 以类似 `Koishi` 中注册命令的方式来构建一个 **AlconnaMatcher** :
|
本插件提供了一个 `Command` 构造器,其基于 `arclet.alconna.tools` 中的 `AlconnaString`, 以类似 `Koishi` 中注册命令的方式来构建一个 **AlconnaMatcher** :
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from nonebot_plugin_alconna import Command, Arparma
|
from nonebot_plugin_alconna import Command, Arparma
|
||||||
@@ -389,7 +389,7 @@ async def _(arp: Arparma):
|
|||||||
await book.send(str(arp.options))
|
await book.send(str(arp.options))
|
||||||
```
|
```
|
||||||
|
|
||||||
甚至,你可以设置 `action` 来设定响应行为:
|
甚至,你可以设置 `action` 来设定响应行为:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
book = (
|
book = (
|
||||||
@@ -403,9 +403,9 @@ book = (
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
## 返回值回调
|
## 返回值中间件
|
||||||
|
|
||||||
在 `AlconnaMatch`,`AlconnaQuery` 或 `got_path` 中,你可以使用 `middleware` 参数来传入一个对返回值进行处理的函数:
|
在 `AlconnaMatch`,`AlconnaQuery` 或 `got_path` 中,你可以使用 `middleware` 参数来传入一个对返回值进行处理的函数:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from nonebot_plugin_alconna import image_fetch
|
from nonebot_plugin_alconna import image_fetch
|
||||||
@@ -422,13 +422,13 @@ async def mask_h(matcher: AlconnaMatcher, img: Match[bytes] = AlconnaMatch("img"
|
|||||||
await matcher.send(result.content)
|
await matcher.send(result.content)
|
||||||
```
|
```
|
||||||
|
|
||||||
其中,`image_fetch` 是一个中间件,其接受一个 `Image` 对象,并提取图片的二进制数据返回。
|
其中,`image_fetch` 是一个中间件,其接受一个 `Image` 对象,并提取图片的二进制数据返回。
|
||||||
|
|
||||||
## 匹配拓展
|
## 匹配拓展
|
||||||
|
|
||||||
本插件提供了一个 `Extension` 类,其用于自定义 AlconnaMatcher 的部分行为
|
本插件提供了一个 `Extension` 类,其用于自定义 AlconnaMatcher 的部分行为
|
||||||
|
|
||||||
例如 `LLMExtension` (仅举例):
|
例如一个 `LLMExtension` 可以如下实现 (仅举例):
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from nonebot_plugin_alconna import Extension, Alconna, on_alconna, Interface
|
from nonebot_plugin_alconna import Extension, Alconna, on_alconna, Interface
|
||||||
@@ -467,14 +467,15 @@ matcher = on_alconna(
|
|||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
那么添加了 `LLMExtension` 的响应器便能接受任何能通过 llm 翻译为具体命令的自然语言消息,同时可以在响应器中为所有 `llm` 参数注入模型变量。
|
那么添加了 `LLMExtension` 的响应器便能接受任何能通过 llm 翻译为具体命令的自然语言消息,同时可以在响应器中为所有 `llm` 参数注入模型变量。
|
||||||
|
|
||||||
目前 `Extension` 的功能有:
|
目前 `Extension` 的功能有:
|
||||||
|
|
||||||
- `validate`: 对于事件的来源适配器或 bot 选择是否接受响应
|
- `validate`: 对于事件的来源适配器或 bot 选择是否接受响应
|
||||||
- `output_converter`: 输出信息的自定义转换方法
|
- `output_converter`: 输出信息的自定义转换方法
|
||||||
- `message_provider`: 从传入事件中自定义提取消息的方法
|
- `message_provider`: 从传入事件中自定义提取消息的方法
|
||||||
- `receive_provider`: 对传入的消息 (Message 或 UniMessage) 的额外处理
|
- `receive_provider`: 对传入的消息 (Message 或 UniMessage) 的额外处理
|
||||||
|
- `context_provider`: 对命令上下文的额外处理
|
||||||
- `permission_check`: 命令对消息解析并确认头部匹配(即确认选择响应)时对发送者的权限判断
|
- `permission_check`: 命令对消息解析并确认头部匹配(即确认选择响应)时对发送者的权限判断
|
||||||
- `parse_wrapper`: 对命令解析结果的额外处理
|
- `parse_wrapper`: 对命令解析结果的额外处理
|
||||||
- `send_wrapper`: 对发送的消息 (Message 或 UniMessage) 的额外处理
|
- `send_wrapper`: 对发送的消息 (Message 或 UniMessage) 的额外处理
|
||||||
@@ -482,11 +483,11 @@ matcher = on_alconna(
|
|||||||
- `catch`: 自定义依赖注入处理函数
|
- `catch`: 自定义依赖注入处理函数
|
||||||
- `post_init`: 响应器创建后对命令对象的额外处理
|
- `post_init`: 响应器创建后对命令对象的额外处理
|
||||||
|
|
||||||
例如内置的 `DiscordSlashExtension`,其可自动将 Alconna 对象翻译成 slash 指令并注册,且将收到的指令交互事件转为指令供命令解析:
|
例如内置的 `DiscordSlashExtension`,其可自动将 Alconna 对象翻译成 slash 指令并注册,且将收到的指令交互事件转为指令供命令解析:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from nonebot_plugin_alconna import Match, on_alconna
|
from nonebot_plugin_alconna import Match, on_alconna
|
||||||
from nonebot_plugin_alconna.adapters.discord import DiscordSlashExtension
|
from nonebot_plugin_alconna.builtins.extensions.discord import DiscordSlashExtension
|
||||||
|
|
||||||
|
|
||||||
alc = Alconna(
|
alc = Alconna(
|
||||||
@@ -508,8 +509,99 @@ async def remove(plugin: Match[str], time: Match[int]):
|
|||||||
await matcher.finish(f"removed {plugin.result} with {time.result if time.available else -1}")
|
await matcher.finish(f"removed {plugin.result} with {time.result if time.available else -1}")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
目前插件提供了 4 个内置的 `Extension`,它们在 `nonebot_plugin_alconna.builtins.extensions` 下:
|
||||||
|
|
||||||
|
- `ReplyRecordExtension`: 将消息事件中的回复暂存在 extension 中,使得解析用的消息不带回复信息,同时可以在后续的处理中获取回复信息。
|
||||||
|
- `DiscordSlashExtension`: 将 Alconna 的命令自动转换为 Discord 的 Slash Command,并将 Slash Command 的交互事件转换为消息交给 Alconna 处理。
|
||||||
|
- `MarkdownOutputExtension`: 将 Alconna 的自动输出转换为 Markdown 格式
|
||||||
|
- `TelegramSlashExtension`: 将 Alconna 的命令注册在 Telegram 上以获得提示。
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
|
||||||
全局的 Extension 可延迟加载 (即若有全局拓展加载于部分 AlconnaMatcher 之后,这部分响应器会被追加拓展)
|
全局的 Extension 可延迟加载 (即若有全局拓展加载于部分 AlconnaMatcher 之后,这部分响应器会被追加拓展)
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
## 补全会话
|
||||||
|
|
||||||
|
补全会话基于 [`半自动补全`](./command.md#半自动补全),用于指令参数缺失或参数错误时给予交互式提示,类似于 `got-reject`:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from nonebot_plugin_alconna import Alconna, Args, Field, At, on_alconna
|
||||||
|
|
||||||
|
alc = Alconna(
|
||||||
|
"添加教师",
|
||||||
|
Args["name", str, Field(completion=lambda: "请输入姓名")],
|
||||||
|
Args["phone", int, Field(completion=lambda: "请输入手机号")],
|
||||||
|
Args["at", [str, At], Field(completion=lambda: "请输入教师号")],
|
||||||
|
)
|
||||||
|
|
||||||
|
cmd = on_alconna(alc, comp_config={"lite": True}, skip_for_unmatch=False)
|
||||||
|
|
||||||
|
@cmd.handle()
|
||||||
|
async def handle(result: Arparma):
|
||||||
|
cmd.finish("添加成功")
|
||||||
|
```
|
||||||
|
|
||||||
|
此时,当用户输入 `添加教师` 时,会自动提示用户输入姓名,手机号和教师号,用户输入后会自动进入下一个提示:
|
||||||
|
|
||||||
|
<Messenger
|
||||||
|
msgs={[
|
||||||
|
{ position: "right", msg: "添加教师" },
|
||||||
|
{ position: "left", msg: "以下是建议的输入: \n- name: 请输入姓名" },
|
||||||
|
{ position: "right", msg: "foo" },
|
||||||
|
{ position: "left", msg: "以下是建议的输入: \n- phone: 请输入手机号" },
|
||||||
|
{ position: "right", msg: "12345" },
|
||||||
|
{ position: "left", msg: "以下是建议的输入: \n- at: 请输入教师号" },
|
||||||
|
{ position: "right", msg: "@me" },
|
||||||
|
{ position: "left", msg: "添加成功" },
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
|
||||||
|
补全会话配置如下:
|
||||||
|
|
||||||
|
```python
|
||||||
|
class CompConfig(TypedDict):
|
||||||
|
tab: NotRequired[str]
|
||||||
|
"""用于切换提示的指令的名称"""
|
||||||
|
enter: NotRequired[str]
|
||||||
|
"""用于输入提示的指令的名称"""
|
||||||
|
exit: NotRequired[str]
|
||||||
|
"""用于退出会话的指令的名称"""
|
||||||
|
timeout: NotRequired[int]
|
||||||
|
"""超时时间"""
|
||||||
|
hide_tabs: NotRequired[bool]
|
||||||
|
"""是否隐藏所有提示"""
|
||||||
|
hides: NotRequired[Set[Literal["tab", "enter", "exit"]]]
|
||||||
|
"""隐藏的指令"""
|
||||||
|
disables: NotRequired[Set[Literal["tab", "enter", "exit"]]]
|
||||||
|
"""禁用的指令"""
|
||||||
|
lite: NotRequired[bool]
|
||||||
|
"""是否使用简洁版本的补全会话(相当于同时配置 disables、hides、hide_tabs)"""
|
||||||
|
```
|
||||||
|
|
||||||
|
## 内置插件
|
||||||
|
|
||||||
|
类似于 Nonebot 本身提供的内置插件,`nonebot_plugin_alconna` 提供了两个内置插件:`echo` 和 `help`。
|
||||||
|
|
||||||
|
你可以用本插件的 `load_builtin_plugin(s)` 来加载它们:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from nonebot_plugin_alconna import load_builtin_plugins
|
||||||
|
|
||||||
|
load_builtin_plugins("echo", "help")
|
||||||
|
```
|
||||||
|
|
||||||
|
其中 `help` 仅能列出所有 Alconna 指令。
|
||||||
|
|
||||||
|
<Messenger
|
||||||
|
msgs={[
|
||||||
|
{ position: "right", msg: "/帮助" },
|
||||||
|
{
|
||||||
|
position: "left",
|
||||||
|
msg: "# 当前可用的命令有:\n 0 /echo : echo 指令\n 1 /help : 显示所有命令帮助\n# 输入'命令名 -h|--help' 查看特定命令的语法",
|
||||||
|
},
|
||||||
|
{ position: "right", msg: "/echo [图片]" },
|
||||||
|
{ position: "left", msg: "[图片]" },
|
||||||
|
]}
|
||||||
|
/>
|
@@ -12,27 +12,30 @@ import TabItem from "@theme/TabItem";
|
|||||||
|
|
||||||
## 通用消息段
|
## 通用消息段
|
||||||
|
|
||||||
适配器下的消息段标注会匹配适配器特定的 `MessageSegment`, 而通用消息段与适配器消息段的区别在于:
|
适配器下的消息段标注会匹配适配器特定的 `MessageSegment`, 而通用消息段与适配器消息段的区别在于:
|
||||||
通用消息段会匹配多个适配器中相似类型的消息段,并返回 `uniseg` 模块中定义的 [`Segment` 模型](https://nonebot.dev/docs/next/best-practice/alconna/utils#%E9%80%9A%E7%94%A8%E6%B6%88%E6%81%AF%E6%AE%B5), 以达到**跨平台接收消息**的作用。
|
通用消息段会匹配多个适配器中相似类型的消息段,并返回 `uniseg` 模块中定义的 [`Segment` 模型](https://nonebot.dev/docs/next/best-practice/alconna/utils#%E9%80%9A%E7%94%A8%E6%B6%88%E6%81%AF%E6%AE%B5), 以达到**跨平台接收消息**的作用。
|
||||||
|
|
||||||
`nonebot-plugin-alconna.uniseg` 提供了类似 `MessageSegment` 的通用消息段,并可在 `Alconna` 下直接标注使用:
|
`nonebot-plugin-alconna.uniseg` 提供了类似 `MessageSegment` 的通用消息段,并可在 `Alconna` 下直接标注使用:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
class Segment:
|
class Segment:
|
||||||
"""基类标注"""
|
"""基类标注"""
|
||||||
|
children: List["Segment"]
|
||||||
|
|
||||||
class Text(Segment):
|
class Text(Segment):
|
||||||
"""Text对象, 表示一类文本元素"""
|
"""Text对象, 表示一类文本元素"""
|
||||||
text: str
|
text: str
|
||||||
style: Optional[str]
|
styles: Dict[Tuple[int, int], List[str]]
|
||||||
|
|
||||||
class At(Segment):
|
class At(Segment):
|
||||||
"""At对象, 表示一类提醒某用户的元素"""
|
"""At对象, 表示一类提醒某用户的元素"""
|
||||||
type: Literal["user", "role", "channel"]
|
flag: Literal["user", "role", "channel"]
|
||||||
target: str
|
target: str
|
||||||
|
display: Optional[str]
|
||||||
|
|
||||||
class AtAll(Segment):
|
class AtAll(Segment):
|
||||||
"""AtAll对象, 表示一类提醒所有人的元素"""
|
"""AtAll对象, 表示一类提醒所有人的元素"""
|
||||||
|
here: bool
|
||||||
|
|
||||||
class Emoji(Segment):
|
class Emoji(Segment):
|
||||||
"""Emoji对象, 表示一类表情元素"""
|
"""Emoji对象, 表示一类表情元素"""
|
||||||
@@ -42,17 +45,23 @@ class Emoji(Segment):
|
|||||||
class Media(Segment):
|
class Media(Segment):
|
||||||
url: Optional[str]
|
url: Optional[str]
|
||||||
id: Optional[str]
|
id: Optional[str]
|
||||||
path: Optional[str]
|
path: Optional[Union[str, Path]]
|
||||||
raw: Optional[bytes]
|
raw: Optional[Union[bytes, BytesIO]]
|
||||||
|
mimetype: Optional[str]
|
||||||
|
name: str
|
||||||
|
|
||||||
|
to_url: ClassVar[Optional[MediaToUrl]]
|
||||||
|
|
||||||
class Image(Media):
|
class Image(Media):
|
||||||
"""Image对象, 表示一类图片元素"""
|
"""Image对象, 表示一类图片元素"""
|
||||||
|
|
||||||
class Audio(Media):
|
class Audio(Media):
|
||||||
"""Audio对象, 表示一类音频元素"""
|
"""Audio对象, 表示一类音频元素"""
|
||||||
|
duration: Optional[int]
|
||||||
|
|
||||||
class Voice(Media):
|
class Voice(Media):
|
||||||
"""Voice对象, 表示一类语音元素"""
|
"""Voice对象, 表示一类语音元素"""
|
||||||
|
duration: Optional[int]
|
||||||
|
|
||||||
class Video(Media):
|
class Video(Media):
|
||||||
"""Video对象, 表示一类视频元素"""
|
"""Video对象, 表示一类视频元素"""
|
||||||
@@ -73,17 +82,41 @@ class Reference(Segment):
|
|||||||
"""Reference对象,表示一类引用消息。转发消息 (Forward) 也属于此类"""
|
"""Reference对象,表示一类引用消息。转发消息 (Forward) 也属于此类"""
|
||||||
id: Optional[str]
|
id: Optional[str]
|
||||||
"""此处不一定是消息ID,可能是其他ID,如消息序号等"""
|
"""此处不一定是消息ID,可能是其他ID,如消息序号等"""
|
||||||
content: Optional[Union[Message, str, List[Union[RefNode, CustomNode]]]]
|
children: List[Union[RefNode, CustomNode]]
|
||||||
|
|
||||||
class Card(Segment):
|
class Hyper(Segment):
|
||||||
type: Literal["xml", "json"]
|
"""Hyper对象,表示一类超级消息。如卡片消息、ark消息、小程序等"""
|
||||||
raw: str
|
format: Literal["xml", "json"]
|
||||||
|
raw: Optional[str]
|
||||||
|
content: Optional[Union[dict, list]]
|
||||||
|
|
||||||
class Other(Segment):
|
class Other(Segment):
|
||||||
"""其他 Segment"""
|
"""其他 Segment"""
|
||||||
|
origin: MessageSegment
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
此类消息段通过 `UniMessage.export` 可以转为特定的 `MessageSegment`
|
:::tips
|
||||||
|
|
||||||
|
或许你注意到了 `Segment` 上有一个 `children` 属性。
|
||||||
|
|
||||||
|
这是因为在 [`Satori`](https://satori.js.org/zh-CN/) 协议的规定下,一类元素可以用其子元素来代表一类兼容性消息
|
||||||
|
(例如,qq 的商场表情在某些平台上可以用图片代替)。
|
||||||
|
|
||||||
|
为此,本插件提供了两种方式来表达 "获取子元素" 的方法:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from nonebot_plugin_alconna.builtins.uniseg.chronocat import MarketFace
|
||||||
|
from nonebot_plugin_alconna import Args, Image, Alconna, select, select_first
|
||||||
|
|
||||||
|
# 表示这个指令需要的图片要么直接是 Image 要么是在 MarketFace 元素内的 Image
|
||||||
|
alc1 = Alconna("make_meme", Args["img", [Image, Image.from_(MarketFace)]])
|
||||||
|
|
||||||
|
# 表示这个指令需要的图片会在目标元素下进行搜索,将所有符合 Image 的元素选出来并将第一个作为结果
|
||||||
|
alc2 = Alconna("make_meme", Args["img", select(Image, index=0)]) # 也可以使用 select_first(Image)
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
## 通用消息序列
|
## 通用消息序列
|
||||||
|
|
||||||
@@ -127,6 +160,7 @@ matcher = on_xxx(...)
|
|||||||
@matcher.handle()
|
@matcher.handle()
|
||||||
async def _(message: Message = EventMessage()):
|
async def _(message: Message = EventMessage()):
|
||||||
msg = await UniMessage.generate(message=message)
|
msg = await UniMessage.generate(message=message)
|
||||||
|
msg1 = UniMessage.generate_without_reply(message=message)
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
@@ -148,6 +182,21 @@ async def handle_test():
|
|||||||
await test.send(await UniMessage(Image(path="path/to/img")).export())
|
await test.send(await UniMessage(Image(path="path/to/img")).export())
|
||||||
```
|
```
|
||||||
|
|
||||||
|
除此之外 `UniMessage.send` 方法基于 `UniMessage.export` 并调用各适配器下的发送消息方法,返回一个 `Receipt` 对象,用于修改/撤回消息:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from nonebot import Bot, on_command
|
||||||
|
from nonebot_plugin_alconna.uniseg import UniMessage
|
||||||
|
|
||||||
|
|
||||||
|
test = on_command("test")
|
||||||
|
|
||||||
|
@test.handle()
|
||||||
|
async def handle():
|
||||||
|
receipt = await UniMessage.text("hello!").send(at_sender=True, reply_to=True)
|
||||||
|
await receipt.recall(delay=1)
|
||||||
|
```
|
||||||
|
|
||||||
而在 `AlconnaMatcher` 下,`got`, `send`, `reject` 等可以发送消息的方法皆支持使用 `UniMessage`,不需要手动调用 export 方法:
|
而在 `AlconnaMatcher` 下,`got`, `send`, `reject` 等可以发送消息的方法皆支持使用 `UniMessage`,不需要手动调用 export 方法:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@@ -168,24 +217,9 @@ async def tt(target: At):
|
|||||||
await test_cmd.send(UniMessage([target, "\ndone."]))
|
await test_cmd.send(UniMessage([target, "\ndone."]))
|
||||||
```
|
```
|
||||||
|
|
||||||
除此之外 `UniMessage.send` 方法基于 `UniMessage.export` 并调用各适配器下的发送消息方法,返回一个 `Receipt` 对象,用于修改/撤回消息:
|
|
||||||
|
|
||||||
```python
|
|
||||||
from nonebot import Bot, on_command
|
|
||||||
from nonebot_plugin_alconna.uniseg import UniMessage
|
|
||||||
|
|
||||||
|
|
||||||
test = on_command("test")
|
|
||||||
|
|
||||||
@test.handle()
|
|
||||||
async def handle():
|
|
||||||
receipt = await UniMessage.text("hello!").send(at_sender=True, reply_to=True)
|
|
||||||
await receipt.recall(delay=1)
|
|
||||||
```
|
|
||||||
|
|
||||||
:::caution
|
:::caution
|
||||||
|
|
||||||
在响应器以外的地方,`bot` 参数必须手动传入。
|
在响应器以外的地方,除非启用了 `alconna_apply_fetch_targets` 配置项,否则 `bot` 参数必须手动传入。
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
@@ -391,7 +425,7 @@ message.count(Text) == 2
|
|||||||
message.get(Text, 1) == UniMessage([Text("test1")])
|
message.get(Text, 1) == UniMessage([Text("test1")])
|
||||||
```
|
```
|
||||||
|
|
||||||
### 消息发送
|
## 消息发送
|
||||||
|
|
||||||
前面提到,通用消息可用 `UniMessage.send` 发送自身:
|
前面提到,通用消息可用 `UniMessage.send` 发送自身:
|
||||||
|
|
||||||
@@ -408,6 +442,25 @@ async def send(
|
|||||||
|
|
||||||
实际上,`UniMessage` 同时提供了获取消息事件 id 与消息发送对象的方法:
|
实际上,`UniMessage` 同时提供了获取消息事件 id 与消息发送对象的方法:
|
||||||
|
|
||||||
|
<Tabs groupId="get_unimsg">
|
||||||
|
<TabItem value="depend" label="使用依赖注入">
|
||||||
|
|
||||||
|
通过提供的 `MessageTarget`, `MessageId` 或 `MsgTarget`, `MsgId` 依赖注入器来获取消息事件 id 与消息发送对象。
|
||||||
|
|
||||||
|
```python
|
||||||
|
from nonebot_plugin_alconna.uniseg import MessageId, MsgTarget
|
||||||
|
|
||||||
|
|
||||||
|
matcher = on_xxx(...)
|
||||||
|
|
||||||
|
@matcher.handle()
|
||||||
|
asycn def _(target: MsgTarget, msg_id: MessageId):
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
<TabItem value="method" label="使用 UniMessage 的方法">
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from nonebot import Event, Bot
|
from nonebot import Event, Bot
|
||||||
from nonebot_plugin_alconna.uniseg import UniMessage, Target
|
from nonebot_plugin_alconna.uniseg import UniMessage, Target
|
||||||
@@ -422,24 +475,116 @@ asycn def _(bot: Bot, event: Event):
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
`send`, `get_target`, `get_message_id` 中与 `event`, `bot` 相关的参数都会尝试从上下文中获取对象。
|
`send`, `get_target`, `get_message_id` 中与 `event`, `bot` 相关的参数都会尝试从上下文中获取对象。
|
||||||
|
|
||||||
其中,`Target`:
|
### 消息发送对象
|
||||||
|
|
||||||
|
消息发送对象是用来描述响应消息时的发送对象或者主动发送消息时的目标对象的对象,它包含了以下属性:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
class Target:
|
class Target:
|
||||||
id: str
|
id: str
|
||||||
"""目标id;若为群聊则为group_id或者channel_id,若为私聊则为user_id"""
|
"""目标id;若为群聊则为group_id或者channel_id,若为私聊则为user_id"""
|
||||||
parent_id: str = ""
|
parent_id: str
|
||||||
"""父级id;若为频道则为guild_id,其他情况为空字符串"""
|
"""父级id;若为频道则为guild_id,其他情况下可能为空字符串(例如 Feishu 下可作为部门 id)"""
|
||||||
channel: bool = False
|
channel: bool
|
||||||
"""是否为频道,仅当目标平台同时支持群聊和频道时有效"""
|
"""是否为频道,仅当目标平台符合频道概念时"""
|
||||||
private: bool = False
|
private: bool
|
||||||
"""是否为私聊"""
|
"""是否为私聊"""
|
||||||
source: str = ""
|
source: str
|
||||||
"""可能的事件id"""
|
"""可能的事件id"""
|
||||||
|
self_id: Union[str, None]
|
||||||
|
"""机器人id,若为 None 则 Bot 对象会随机选择"""
|
||||||
|
selector: Union[Callable[[Bot], Awaitable[bool]], None]
|
||||||
|
"""选择器,用于在多个 Bot 对象中选择特定 Bot"""
|
||||||
|
extra: Dict[str, Any]
|
||||||
|
"""额外信息,用于适配器扩展"""
|
||||||
```
|
```
|
||||||
|
|
||||||
是用来描述响应消息时的发送对象。
|
其构造时需要如下参数:
|
||||||
|
|
||||||
同样的,你可以通过依赖注入的方式在响应器中直接获取它们。
|
- `id` 为目标id;若为群聊则为 group_id 或者 channel_id,若为私聊则为user_id
|
||||||
|
- `parent_id` 为父级id;若为频道则为 guild_id,其他情况下可能为空字符串(例如 Feishu 下可作为部门 id)
|
||||||
|
- `channel` 为是否为频道,仅当目标平台符合频道概念时
|
||||||
|
- `private` 为是否为私聊
|
||||||
|
- `source` 为可能的事件id
|
||||||
|
- `self_id` 为机器人id,若为 None 则 Bot 对象会随机选择
|
||||||
|
- `selector` 为选择器,用于在多个 Bot 对象中选择特定 Bot
|
||||||
|
- `scope` 为适配器范围,用于传入内置的特定选择器
|
||||||
|
- `adapter` 为适配器名称,若为 None 则需要明确指定 Bot 对象
|
||||||
|
- `platform` 为平台名称,仅当目标适配器存在多个平台时使用
|
||||||
|
- `extra` 为额外信息,用于适配器扩展
|
||||||
|
|
||||||
|
通过 `Target` 对象,我们可以在 `UniMessage.send` 中指定发送对象:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from nonebot_plugin_alconna.uniseg import UniMessage, MsgTarget, Target, SupportScope
|
||||||
|
|
||||||
|
|
||||||
|
matcher = on_xxx(...)
|
||||||
|
|
||||||
|
@matcher.handle()
|
||||||
|
async def _(target: MsgTarget):
|
||||||
|
await UniMessage("Hello!").send(target=target)
|
||||||
|
target1 = Target("xxxx", scope=SupportScope.qq_client)
|
||||||
|
await UniMessage("Hello!").send(target=target1)
|
||||||
|
```
|
||||||
|
|
||||||
|
### 主动发送消息
|
||||||
|
|
||||||
|
`UniMessage.send` 也可以用于主动发送消息:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from nonebot_plugin_alconna.uniseg import UniMessage, Target, SupportScope
|
||||||
|
from nonebot import get_driver
|
||||||
|
|
||||||
|
|
||||||
|
driver = get_driver()
|
||||||
|
|
||||||
|
@driver.on_startup
|
||||||
|
async def on_startup():
|
||||||
|
target = Target("xxxx", scope=SupportScope.qq_client)
|
||||||
|
await UniMessage("Hello!").send(target=target)
|
||||||
|
```
|
||||||
|
|
||||||
|
## 自定义消息段
|
||||||
|
|
||||||
|
`uniseg` 提供了部分方法来允许用户自定义 Segment 的序列化和反序列化:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from dataclasses import dataclass
|
||||||
|
|
||||||
|
from nonebot.adapters import Bot
|
||||||
|
from nonebot.adapters import MessageSegment as BaseMessageSegment
|
||||||
|
from nonebot.adapters.satori import Custom, Message, MessageSegment
|
||||||
|
|
||||||
|
from nonebot_plugin_alconna.uniseg.builder import MessageBuilder
|
||||||
|
from nonebot_plugin_alconna.uniseg.exporter import MessageExporter
|
||||||
|
from nonebot_plugin_alconna.uniseg import Segment, custom_handler, custom_register
|
||||||
|
|
||||||
|
|
||||||
|
@dataclass
|
||||||
|
class MarketFace(Segment):
|
||||||
|
tabId: str
|
||||||
|
faceId: str
|
||||||
|
key: str
|
||||||
|
|
||||||
|
|
||||||
|
@custom_register(MarketFace, "chronocat:marketface")
|
||||||
|
def mfbuild(builder: MessageBuilder, seg: BaseMessageSegment):
|
||||||
|
if not isinstance(seg, Custom):
|
||||||
|
raise ValueError("MarketFace can only be built from Satori Message")
|
||||||
|
return MarketFace(**seg.data)(*builder.generate(seg.children))
|
||||||
|
|
||||||
|
|
||||||
|
@custom_handler(MarketFace)
|
||||||
|
async def mfexport(exporter: MessageExporter, seg: MarketFace, bot: Bot, fallback: bool):
|
||||||
|
if exporter.get_message_type() is Message:
|
||||||
|
return MessageSegment("chronocat:marketface", seg.data)(await exporter.export(seg.children, bot, fallback))
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
具体而言,你可以使用 `custom_register` 来增加一个从 MessageSegment 到 Segment 的处理方法;使用 `custom_handler` 来增加一个从 Segment 到 MessageSegment 的处理方法。
|
@@ -0,0 +1,145 @@
|
|||||||
|
import TabItem from "@theme/TabItem";
|
||||||
|
import Tabs from "@theme/Tabs";
|
||||||
|
|
||||||
|
# 数据库
|
||||||
|
|
||||||
|
[`nonebot-plugin-orm`](https://github.com/nonebot/plugin-orm) 是 NoneBot 的数据库支持插件。
|
||||||
|
本插件基于 [SQLAlchemy](https://www.sqlalchemy.org/) 和 [Alembic](https://alembic.sqlalchemy.org/),提供了许多与 NoneBot 紧密集成的功能:
|
||||||
|
|
||||||
|
- 多 Engine / Connection 支持
|
||||||
|
- Session 管理
|
||||||
|
- 关系模型管理、依赖注入支持
|
||||||
|
- 数据库迁移
|
||||||
|
|
||||||
|
## 安装
|
||||||
|
|
||||||
|
<Tabs groupId="install">
|
||||||
|
<TabItem value="cli" label="使用 nb-cli">
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb plugin install nonebot-plugin-orm
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
<TabItem value="pip" label="使用 pip">
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pip install nonebot-plugin-orm
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
|
||||||
|
<TabItem value="pdm" label="使用 pdm">
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pdm add nonebot-plugin-orm
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
|
## 数据库驱动和后端
|
||||||
|
|
||||||
|
本插件只提供了 ORM 功能,没有数据库后端,也没有直接连接数据库后端的能力。
|
||||||
|
所以你需要另行安装数据库驱动和数据库后端,并且配置数据库连接信息。
|
||||||
|
|
||||||
|
### SQLite
|
||||||
|
|
||||||
|
[SQLite](https://www.sqlite.org/) 是一个轻量级的嵌入式数据库,它的数据以单文件的形式存储在本地,不需要单独的数据库后端。
|
||||||
|
SQLite 非常适合用于开发环境和小型应用,但是不适合用于大型应用的生产环境。
|
||||||
|
|
||||||
|
虽然不需要另行安装数据库后端,但你仍然需要安装数据库驱动:
|
||||||
|
|
||||||
|
<Tabs groupId="install">
|
||||||
|
<TabItem value="pip" label="使用 pip">
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pip install "nonebot-plugin-orm[sqlite]"
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
|
||||||
|
<TabItem value="pdm" label="使用 pdm">
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pdm add "nonebot-plugin-orm[sqlite]"
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
|
默认情况下,数据库文件为 `<data path>/nonebot-plugin-orm/db.sqlite3`(数据目录由 [nonebot-plugin-localstore](../data-storing) 提供)。
|
||||||
|
或者,你可以通过配置 `SQLALCHEMY_DATABASE_URL` 来指定数据库文件路径:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
SQLALCHEMY_DATABASE_URL=sqlite+aiosqlite:///file_path
|
||||||
|
```
|
||||||
|
|
||||||
|
### PostgreSQL
|
||||||
|
|
||||||
|
[PostgreSQL](https://www.postgresql.org/) 是世界上最先进的开源关系数据库之一,对各种高级且广泛应用的功能有最好的支持,是中小型应用的首选数据库。
|
||||||
|
|
||||||
|
<Tabs groupId="install">
|
||||||
|
<TabItem value="pip" label="使用 pip">
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pip install nonebot-plugin-orm[postgresql]
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
|
||||||
|
<TabItem value="pdm" label="使用 pdm">
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pdm add nonebot-plugin-orm[postgresql]
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
|
```shell
|
||||||
|
SQLALCHEMY_DATABASE_URL=postgresql+psycopg://user:password@host:port/dbname[?key=value&key=value...]
|
||||||
|
```
|
||||||
|
|
||||||
|
### MySQL / MariaDB
|
||||||
|
|
||||||
|
[MySQL](https://www.mysql.com/) 和 [MariaDB](https://mariadb.com/) 是经典的开源关系数据库,适合用于中小型应用。
|
||||||
|
|
||||||
|
<Tabs groupId="install">
|
||||||
|
<TabItem value="pip" label="使用 pip">
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pip install nonebot-plugin-orm[mysql]
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
|
||||||
|
<TabItem value="pdm" label="使用 pdm">
|
||||||
|
|
||||||
|
```shell
|
||||||
|
pdm add nonebot-plugin-orm[mysql]
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
|
```shell
|
||||||
|
SQLALCHEMY_DATABASE_URL=mysql+aiomysql://user:password@host:port/dbname[?key=value&key=value...]
|
||||||
|
```
|
||||||
|
|
||||||
|
## 使用
|
||||||
|
|
||||||
|
本插件提供了数据库迁移功能(此功能依赖于 [nb-cli 脚手架](../../quick-start#安装脚手架))。
|
||||||
|
在安装了新的插件或机器人之后,你需要执行一次数据库迁移操作,将数据库同步至与机器人一致的状态:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb orm upgrade
|
||||||
|
```
|
||||||
|
|
||||||
|
运行完毕后,可以检查一下:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb orm check
|
||||||
|
```
|
||||||
|
|
||||||
|
如果输出是 `没有检测到新的升级操作`,那么恭喜你,数据库已经迁移完成了,你可以启动机器人了。
|
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"label": "数据库",
|
||||||
|
"position": 7
|
||||||
|
}
|
@@ -0,0 +1,378 @@
|
|||||||
|
# 开发者指南
|
||||||
|
|
||||||
|
开发者指南内容较多,故分为了一个示例以及数个专题。
|
||||||
|
阅读(并且最好跟随实践)示例后,你将会对使用 `nonebot-plugin-orm` 开发插件有一个基本的认识。
|
||||||
|
如果想要更深入地学习关于 [SQLAlchemy](https://www.sqlalchemy.org/) 和 [Alembic](https://alembic.sqlalchemy.org/) 的知识,或者在使用过程中遇到了问题,可以查阅专题以及其官方文档。
|
||||||
|
|
||||||
|
## 示例
|
||||||
|
|
||||||
|
### 模型定义
|
||||||
|
|
||||||
|
首先,我们需要设计存储的数据的结构。
|
||||||
|
例如天气插件,需要存储**什么地方 (`location`)** 的**天气是什么 (`weather`)**。
|
||||||
|
其中,一个地方只会有一种天气,而不同地方可能有相同的天气。
|
||||||
|
所以,我们可以设计出如下的模型:
|
||||||
|
|
||||||
|
```python title=weather/__init__.py showLineNumbers
|
||||||
|
from nonebot_plugin_orm import Model
|
||||||
|
from sqlalchemy.orm import Mapped, mapped_column
|
||||||
|
|
||||||
|
|
||||||
|
class Weather(Model):
|
||||||
|
location: Mapped[str] = mapped_column(primary_key=True)
|
||||||
|
weather: Mapped[str]
|
||||||
|
```
|
||||||
|
|
||||||
|
其中,`primary_key=True` 意味着此列 (`location`) 是主键,即内容是唯一的且非空的。
|
||||||
|
每一个模型必须有至少一个主键。
|
||||||
|
|
||||||
|
我们可以用以下代码检查模型生成的数据库模式是否正确:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from sqlalchemy.schema import CreateTable
|
||||||
|
|
||||||
|
print(CreateTable(Weather.__table__))
|
||||||
|
```
|
||||||
|
|
||||||
|
```sql
|
||||||
|
CREATE TABLE weather_weather (
|
||||||
|
location VARCHAR NOT NULL,
|
||||||
|
weather VARCHAR NOT NULL,
|
||||||
|
CONSTRAINT pk_weather_weather PRIMARY KEY (location)
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
可以注意到表名是 `weather_weather` 而不是 `Weather` 或者 `weather`。
|
||||||
|
这是因为 `nonebot-plugin-orm` 会自动为模型生成一个表名,规则是:`<插件模块名>_<类名小写>`。
|
||||||
|
|
||||||
|
你也可以通过指定 `__tablename__` 属性来自定义表名:
|
||||||
|
|
||||||
|
```python {2}
|
||||||
|
class Weather(Model):
|
||||||
|
__tablename__ = "weather"
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
```sql {1}
|
||||||
|
CREATE TABLE weather (
|
||||||
|
...
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
但是,并不推荐你这么做,因为这可能会导致不同插件间的表名重复,引发冲突。
|
||||||
|
特别是当你会发布插件时,你并不知道其他插件会不会使用相同的表名。
|
||||||
|
|
||||||
|
### 首次迁移
|
||||||
|
|
||||||
|
我们成功定义了模型,现在启动机器人试试吧:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ nb run
|
||||||
|
01-02 15:04:05 [SUCCESS] nonebot | NoneBot is initializing...
|
||||||
|
01-02 15:04:05 [ERROR] nonebot_plugin_orm | 启动检查失败
|
||||||
|
01-02 15:04:05 [ERROR] nonebot | Application startup failed. Exiting.
|
||||||
|
Traceback (most recent call last):
|
||||||
|
...
|
||||||
|
click.exceptions.UsageError: 检测到新的升级操作:
|
||||||
|
[('add_table',
|
||||||
|
Table('weather', MetaData(), Column('location', String(), table=<weather>, primary_key=True, nullable=False), Column('weather', String(), table=<weather>, nullable=False), schema=None))]
|
||||||
|
```
|
||||||
|
|
||||||
|
咦,发生了什么?
|
||||||
|
`nonebot-plugin-orm` 试图阻止我们启动机器人。
|
||||||
|
原来是我们定义了模型,但是数据库中并没有对应的表,这会导致插件不能正常运行。
|
||||||
|
所以,我们需要迁移数据库。
|
||||||
|
|
||||||
|
首先,我们需要创建一个迁移脚本:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb orm revision -m "first revision" --branch-label weather
|
||||||
|
```
|
||||||
|
|
||||||
|
其中,`-m` 参数是迁移脚本的描述,`--branch-label` 参数是迁移脚本的分支,一般为插件模块名。
|
||||||
|
执行命令过后,出现了一个 `weather/migrations` 目录,其中有一个 `xxxxxxxxxxxx_first_revision.py` 文件:
|
||||||
|
|
||||||
|
```shell {4,5}
|
||||||
|
weather
|
||||||
|
├── __init__.py
|
||||||
|
├── config.py
|
||||||
|
└── migrations
|
||||||
|
└── xxxxxxxxxxxx_first_revision.py
|
||||||
|
```
|
||||||
|
|
||||||
|
这就是我们创建的迁移脚本,它记录了数据库模式的变化。
|
||||||
|
我们可以查看一下它的内容:
|
||||||
|
|
||||||
|
```python title=weather/migrations/xxxxxxxxxxxx_first_revision.py {25-33,39-41} showLineNumbers
|
||||||
|
"""first revision
|
||||||
|
|
||||||
|
迁移 ID: xxxxxxxxxxxx
|
||||||
|
父迁移:
|
||||||
|
创建时间: 2006-01-02 15:04:05.999999
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from collections.abc import Sequence
|
||||||
|
|
||||||
|
import sqlalchemy as sa
|
||||||
|
from alembic import op
|
||||||
|
|
||||||
|
revision: str = "xxxxxxxxxxxx"
|
||||||
|
down_revision: str | Sequence[str] | None = None
|
||||||
|
branch_labels: str | Sequence[str] | None = ("weather",)
|
||||||
|
depends_on: str | Sequence[str] | None = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade(name: str = "") -> None:
|
||||||
|
if name:
|
||||||
|
return
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.create_table(
|
||||||
|
"weather_weather",
|
||||||
|
sa.Column("location", sa.String(), nullable=False),
|
||||||
|
sa.Column("weather", sa.String(), nullable=False),
|
||||||
|
sa.PrimaryKeyConstraint("location", name=op.f("pk_weather_weather")),
|
||||||
|
info={"bind_key": "weather"},
|
||||||
|
)
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade(name: str = "") -> None:
|
||||||
|
if name:
|
||||||
|
return
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.drop_table("weather_weather")
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
```
|
||||||
|
|
||||||
|
可以注意到脚本的主体部分(其余是模版代码,请勿修改)是:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.create_table( # CREATE TABLE
|
||||||
|
"weather_weather", # weather_weather
|
||||||
|
sa.Column("location", sa.String(), nullable=False), # location VARCHAR NOT NULL,
|
||||||
|
sa.Column("weather", sa.String(), nullable=False), # weather VARCHAR NOT NULL,
|
||||||
|
sa.PrimaryKeyConstraint("location", name=op.f("pk_weather_weather")), # CONSTRAINT pk_weather_weather PRIMARY KEY (location)
|
||||||
|
info={"bind_key": "weather"},
|
||||||
|
)
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
```
|
||||||
|
|
||||||
|
```python
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.drop_table("weather_weather") # DROP TABLE weather_weather;
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
```
|
||||||
|
|
||||||
|
虽然我们不是很懂这些代码的意思,但是可以注意到它们几乎与 SQL 语句 (DDL) 一一对应。
|
||||||
|
显然,它们是用来创建和删除表的。
|
||||||
|
|
||||||
|
我们还可以注意到,`upgrade()` 和 `downgrade()` 函数中的代码是**互逆**的。
|
||||||
|
也就是说,执行一次 `upgrade()` 函数,再执行一次 `downgrade()` 函数后,数据库的模式就会回到原来的状态。
|
||||||
|
|
||||||
|
这就是迁移脚本的作用:记录数据库模式的变化,以便我们在不同的环境中(例如开发环境和生产环境)**可复现地**、**可逆地**同步数据库模式,正如 git 对我们的代码做的事情那样。
|
||||||
|
|
||||||
|
对了,不要忘记还有一段注释:`commands auto generated by Alembic - please adjust!`。
|
||||||
|
它在提醒我们,这些代码是由 Alembic 自动生成的,我们应该检查它们,并且根据需要进行调整。
|
||||||
|
|
||||||
|
:::caution 注意
|
||||||
|
迁移脚本冗长且繁琐,我们一般不会手写它们,而是由 Alembic 自动生成。
|
||||||
|
一般情况下,Alembic 足够智能,可以正确地生成迁移脚本。
|
||||||
|
但是,在复杂或有歧义的情况下,我们可能需要手动调整迁移脚本。
|
||||||
|
所以,**永远要检查迁移脚本,并且在开发环境中测试!**
|
||||||
|
|
||||||
|
**迁移脚本中任何一处错误都足以使数据付之东流!**
|
||||||
|
:::
|
||||||
|
|
||||||
|
确定迁移脚本正确后,我们就可以执行迁移脚本,将数据库模式同步到数据库中:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb orm upgrade
|
||||||
|
```
|
||||||
|
|
||||||
|
现在,我们可以正常启动机器人了。
|
||||||
|
|
||||||
|
开发过程中,我们可能会频繁地修改模型,这意味着我们需要频繁地创建并执行迁移脚本,非常繁琐。
|
||||||
|
实际上,此时我们不在乎数据安全,只需要数据库模式与模型定义一致即可。
|
||||||
|
所以,我们可以关闭 `nonebot-plugin-orm` 的启动检查:
|
||||||
|
|
||||||
|
```shell title=.env.dev
|
||||||
|
ALEMBIC_STARTUP_CHECK=false
|
||||||
|
```
|
||||||
|
|
||||||
|
现在,每次启动机器人时,数据库模式会自动与模型定义同步,无需手动迁移。
|
||||||
|
|
||||||
|
### 会话管理
|
||||||
|
|
||||||
|
我们已经成功定义了模型,并且迁移了数据库,现在可以开始使用数据库了……吗?
|
||||||
|
并不能,因为模型只是数据结构的定义,并不能通过它操作数据(如果你曾经使用过 [Tortoise ORM](https://tortoise.github.io/),可能会知道 `await Weather.get(location="上海")` 这样的面向对象编程。
|
||||||
|
但是 SQLAlchemy 不同,选择了命令式编程)。
|
||||||
|
我们需要使用**会话**操作数据:
|
||||||
|
|
||||||
|
```python title=weather/__init__.py {10,13} showLineNumbers
|
||||||
|
from nonebot import on_command
|
||||||
|
from nonebot.adapters import Message
|
||||||
|
from nonebot.params import CommandArg
|
||||||
|
from nonebot_plugin_orm import async_scoped_session
|
||||||
|
|
||||||
|
weather = on_command("天气")
|
||||||
|
|
||||||
|
|
||||||
|
@weather.handle()
|
||||||
|
async def _(session: async_scoped_session, args: Message = CommandArg()):
|
||||||
|
location = args.extract_plain_text()
|
||||||
|
|
||||||
|
if wea := await session.get(Weather, location):
|
||||||
|
await weather.finish(f"今天{location}的天气是{wea.weather}")
|
||||||
|
|
||||||
|
await weather.finish(f"未查询到{location}的天气")
|
||||||
|
```
|
||||||
|
|
||||||
|
我们通过 `session: async_scoped_session` 依赖注入获得了一个会话,然后使用 `await session.get(Weather, location)` 查询数据库。
|
||||||
|
`async_scoped_session` 是一个有作用域限制的会话,作用域为当前事件、当前事件响应器。
|
||||||
|
会话产生的模型实例(例如此处的 `wea := await session.get(Weather, location)`)作用域与会话相同。
|
||||||
|
|
||||||
|
:::caution 注意
|
||||||
|
此处提到的“会话”指的是 ORM 会话,而非 [NoneBot 会话](../../../appendices/session-control),两者的生命周期也是不同的(NoneBot 会话的生命周期中可能包含多个事件,不同的事件也会有不同的事件响应器)。
|
||||||
|
具体而言,就是不要将 ORM 会话和模型实例存储在 NoneBot 会话状态中:
|
||||||
|
|
||||||
|
```python {12}
|
||||||
|
from nonebot.params import ArgPlainText
|
||||||
|
from nonebot.typing import T_State
|
||||||
|
|
||||||
|
|
||||||
|
@weather.got("location", prompt="请输入地名")
|
||||||
|
async def _(state: T_State, session: async_scoped_session, location: str = ArgPlainText()):
|
||||||
|
wea = await session.get(Weather, location)
|
||||||
|
|
||||||
|
if not wea:
|
||||||
|
await weather.finish(f"未查询到{location}的天气")
|
||||||
|
|
||||||
|
state["weather"] = wea # 不要这么做,除非你知道自己在做什么
|
||||||
|
```
|
||||||
|
|
||||||
|
当然非要这么做也不是不可以:
|
||||||
|
|
||||||
|
```python {6}
|
||||||
|
@weather.handle()
|
||||||
|
async def _(state: T_State, session: async_scoped_session):
|
||||||
|
# 通过 await session.merge(state["weather"]) 获得了此 ORM 会话中的相应模型实例,
|
||||||
|
# 而非直接使用会话状态中的模型实例,
|
||||||
|
# 因为先前的 ORM 会话已经关闭了。
|
||||||
|
wea = await session.merge(state["weather"])
|
||||||
|
await weather.finish(f"今天{state['location']}的天气是{wea.weather}")
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
当有数据更改时,我们需要提交事务,也要注意会话作用域问题:
|
||||||
|
|
||||||
|
```python title=weather/__init__.py {12,20} showLineNumbers
|
||||||
|
from nonebot.params import Depends
|
||||||
|
|
||||||
|
|
||||||
|
async def get_weather(
|
||||||
|
session: async_scoped_session, args: Message = CommandArg()
|
||||||
|
) -> Weather:
|
||||||
|
location = args.extract_plain_text()
|
||||||
|
|
||||||
|
if not (wea := await session.get(Weather, location)):
|
||||||
|
wea = Weather(location=location, weather="未知")
|
||||||
|
session.add(wea)
|
||||||
|
# await session.commit() # 不应该在其他地方提交事务
|
||||||
|
|
||||||
|
return wea
|
||||||
|
|
||||||
|
|
||||||
|
@weather.handle()
|
||||||
|
async def _(session: async_scoped_session, wea: Weather = Depends(get_weather)):
|
||||||
|
await weather.send(f"今天的天气是{wea.weather}")
|
||||||
|
await session.commit() # 而应该在事件响应器结束前提交事务
|
||||||
|
```
|
||||||
|
|
||||||
|
当然我们也可以获得一个新的会话,不过此时就要手动管理会话了:
|
||||||
|
|
||||||
|
```python title=weather/__init__.py {5-6} showLineNumbers
|
||||||
|
from nonebot_plugin_orm import get_session
|
||||||
|
|
||||||
|
|
||||||
|
async def get_weather(location: str) -> str:
|
||||||
|
session = get_session()
|
||||||
|
async with session.begin():
|
||||||
|
wea = await session.get(Weather, location)
|
||||||
|
|
||||||
|
if not wea:
|
||||||
|
wea = Weather(location=location, weather="未知")
|
||||||
|
session.add(wea)
|
||||||
|
|
||||||
|
return wea.weather
|
||||||
|
|
||||||
|
|
||||||
|
@weather.handle()
|
||||||
|
async def _(args: Message = CommandArg()):
|
||||||
|
wea = await get_weather(args.extract_plain_text())
|
||||||
|
await weather.send(f"今天的天气是{wea}")
|
||||||
|
```
|
||||||
|
|
||||||
|
### 依赖注入
|
||||||
|
|
||||||
|
在上面的示例中,我们都是通过会话获得数据的。
|
||||||
|
不过,我们也可以通过依赖注入获得数据:
|
||||||
|
|
||||||
|
```python title=weather/__init__.py {12-14} showLineNumbers
|
||||||
|
from sqlalchemy import select
|
||||||
|
from nonebot.params import Depends
|
||||||
|
from nonebot_plugin_orm import SQLDepends
|
||||||
|
|
||||||
|
|
||||||
|
def extract_arg_plain_text(args: Message = CommandArg()) -> str:
|
||||||
|
return args.extract_plain_text()
|
||||||
|
|
||||||
|
|
||||||
|
@weather.handle()
|
||||||
|
async def _(
|
||||||
|
wea: Weather = SQLDepends(
|
||||||
|
select(Weather).where(Weather.location == Depends(extract_arg_plain_text))
|
||||||
|
),
|
||||||
|
):
|
||||||
|
await weather.send(f"今天的天气是{wea.weather}")
|
||||||
|
```
|
||||||
|
|
||||||
|
其中,`SQLDepends` 是一个特殊的依赖注入,它会根据类型标注和 SQL 语句提供数据,SQL 语句中也可以有子依赖。
|
||||||
|
|
||||||
|
不同的类型标注也会获得不同形式的数据:
|
||||||
|
|
||||||
|
```python title=weather/__init__.py {5} showLineNumbers
|
||||||
|
from collections.abc import Sequence
|
||||||
|
|
||||||
|
@weather.handle()
|
||||||
|
async def _(
|
||||||
|
weas: Sequence[Weather] = SQLDepends(
|
||||||
|
select(Weather).where(Weather.weather == Depends(extract_arg_plain_text))
|
||||||
|
),
|
||||||
|
):
|
||||||
|
await weather.send(f"今天的天气是{weas[0].weather}的城市有{','.join(wea.location for wea in weas)}")
|
||||||
|
```
|
||||||
|
|
||||||
|
支持的类型标注请参见 [依赖注入](dependency)。
|
||||||
|
|
||||||
|
我们也可以像 [类作为依赖](../../../advanced/dependency#类作为依赖) 那样,在类属性中声明子依赖:
|
||||||
|
|
||||||
|
```python title=weather/__init__.py {5-6,10} showLineNumbers
|
||||||
|
from collections.abc import Sequence
|
||||||
|
|
||||||
|
class Weather(Model):
|
||||||
|
location: Mapped[str] = mapped_column(primary_key=True)
|
||||||
|
weather: Mapped[str] = Depends(extract_arg_plain_text)
|
||||||
|
# weather: Annotated[Mapped[str], Depends(extract_arg_plain_text)] # Annotated 支持
|
||||||
|
|
||||||
|
|
||||||
|
@weather.handle()
|
||||||
|
async def _(weas: Sequence[Weather]):
|
||||||
|
await weather.send(
|
||||||
|
f"今天的天气是{weas[0].weather}的城市有{','.join(wea.location for wea in weas)}"
|
||||||
|
)
|
||||||
|
```
|
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"label": "开发者指南",
|
||||||
|
"position": 3
|
||||||
|
}
|
@@ -0,0 +1,240 @@
|
|||||||
|
---
|
||||||
|
sidebar_position: 3
|
||||||
|
description: 依赖注入
|
||||||
|
---
|
||||||
|
|
||||||
|
# 依赖注入
|
||||||
|
|
||||||
|
`nonebot-plugin-orm` 提供了强大且灵活的依赖注入,可以方便地帮助你获取数据库会话和查询数据。
|
||||||
|
|
||||||
|
## 数据库会话
|
||||||
|
|
||||||
|
### AsyncSession
|
||||||
|
|
||||||
|
新数据库会话,常用于有独立的数据库操作逻辑的插件。
|
||||||
|
|
||||||
|
```python {13,26}
|
||||||
|
from nonebot import on_message
|
||||||
|
from nonebot.params import Depends
|
||||||
|
from nonebot_plugin_orm import AsyncSession, Model, async_scoped_session
|
||||||
|
from sqlalchemy.orm import Mapped, mapped_column
|
||||||
|
|
||||||
|
message = on_message()
|
||||||
|
|
||||||
|
|
||||||
|
class Message(Model):
|
||||||
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||||
|
|
||||||
|
|
||||||
|
async def get_message(session: AsyncSession) -> Message:
|
||||||
|
# 等价于 session = get_session()
|
||||||
|
async with session:
|
||||||
|
msg = Message()
|
||||||
|
|
||||||
|
session.add(msg)
|
||||||
|
await session.commit()
|
||||||
|
await session.refresh(msg)
|
||||||
|
|
||||||
|
return msg
|
||||||
|
|
||||||
|
|
||||||
|
@message.handle()
|
||||||
|
async def _(session: async_scoped_session, msg: Message = Depends(get_message)):
|
||||||
|
await session.rollback() # 无法回退 get_message() 中的更改
|
||||||
|
await message.send(str(msg.id)) # msg 被存储,msg.id 递增
|
||||||
|
```
|
||||||
|
|
||||||
|
### async_scoped_session
|
||||||
|
|
||||||
|
数据库作用域会话,常用于事件响应器和有与响应逻辑相关的数据库操作逻辑的插件。
|
||||||
|
|
||||||
|
```python {13,26}
|
||||||
|
from nonebot import on_message
|
||||||
|
from nonebot.params import Depends
|
||||||
|
from nonebot_plugin_orm import Model, async_scoped_session
|
||||||
|
from sqlalchemy.orm import Mapped, mapped_column
|
||||||
|
|
||||||
|
message = on_message()
|
||||||
|
|
||||||
|
|
||||||
|
class Message(Model):
|
||||||
|
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
|
||||||
|
|
||||||
|
|
||||||
|
async def get_message(session: async_scoped_session) -> Message:
|
||||||
|
# 等价于 session = get_scoped_session()
|
||||||
|
msg = Message()
|
||||||
|
|
||||||
|
session.add(msg)
|
||||||
|
await session.flush()
|
||||||
|
await session.refresh(msg)
|
||||||
|
|
||||||
|
return msg
|
||||||
|
|
||||||
|
|
||||||
|
@message.handle()
|
||||||
|
async def _(session: async_scoped_session, msg: Message = Depends(get_message)):
|
||||||
|
await session.rollback() # 可以回退 get_message() 中的更改
|
||||||
|
await message.send(str(msg.id)) # msg 没有被存储,msg.id 不变
|
||||||
|
```
|
||||||
|
|
||||||
|
## 查询数据
|
||||||
|
|
||||||
|
### Model
|
||||||
|
|
||||||
|
支持类作为依赖。
|
||||||
|
|
||||||
|
```python
|
||||||
|
from typing import Annotated
|
||||||
|
|
||||||
|
from nonebot.params import Depends
|
||||||
|
from nonebot_plugin_orm import Model
|
||||||
|
from sqlalchemy.orm import Mapped, mapped_column
|
||||||
|
|
||||||
|
|
||||||
|
def get_id() -> int: ...
|
||||||
|
|
||||||
|
|
||||||
|
class Message(Model):
|
||||||
|
id: Annotated[Mapped[int], Depends(get_id)] = mapped_column(
|
||||||
|
primary_key=True, autoincrement=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
async def _(msg: Message):
|
||||||
|
# 等价于 msg = (
|
||||||
|
# await (await session.stream(select(Message).where(Message.id == get_id())))
|
||||||
|
# .scalars()
|
||||||
|
# .one_or_none()
|
||||||
|
# )
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
### SQLDepends
|
||||||
|
|
||||||
|
参数为一个 SQL 语句,决定依赖注入的内容,SQL 语句中可以使用子依赖。
|
||||||
|
|
||||||
|
```python {11-13}
|
||||||
|
from nonebot.params import Depends
|
||||||
|
from nonebot_plugin_orm import Model, SQLDepends
|
||||||
|
from sqlalchemy import select
|
||||||
|
|
||||||
|
|
||||||
|
def get_id() -> int: ...
|
||||||
|
|
||||||
|
|
||||||
|
async def _(
|
||||||
|
model: Model = SQLDepends(select(Model).where(Model.id == Depends(get_id))),
|
||||||
|
): ...
|
||||||
|
```
|
||||||
|
|
||||||
|
参数可以是任意 SQL 语句,但不建议使用 `select` 以外的语句,因为语句可能没有返回值(`returning` 除外),而且代码不清晰。
|
||||||
|
|
||||||
|
### 类型标注
|
||||||
|
|
||||||
|
类型标注决定依赖注入的数据结构,主要影响以下几个层面:
|
||||||
|
|
||||||
|
- 迭代器(`session.execute()`)或异步迭代器(`session.stream()`)
|
||||||
|
- 标量(`session.execute().scalars()`)或元组(`session.execute()`)
|
||||||
|
- 一个(`session.execute().one_or_none()`,注意 `None` 时可能触发 [重载](../../../appendices/overload#重载))或全部(`session.execute()` / `session.execute().all()`)
|
||||||
|
- 连续(`session().execute()`)或分块(`session.execute().partitions()`)
|
||||||
|
|
||||||
|
具体如下(可以使用父类型作为类型标注):
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(rows_partitions: AsyncIterator[Sequence[Tuple[Model, ...]]]):
|
||||||
|
# 等价于 rows_partitions = await (await session.stream(sql).partitions())
|
||||||
|
|
||||||
|
async for partition in rows_partitions:
|
||||||
|
for row in partition:
|
||||||
|
print(row[0], row[1], ...)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(model_partitions: AsyncIterator[Sequence[Model]]):
|
||||||
|
# 等价于 model_partitions = await (await session.stream(sql).scalars().partitions())
|
||||||
|
|
||||||
|
async for partition in model_partitions:
|
||||||
|
for model in partition:
|
||||||
|
print(model)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(row_partitions: Iterator[Sequence[Tuple[Model, ...]]]):
|
||||||
|
# 等价于 row_partitions = await session.execute(sql).partitions()
|
||||||
|
|
||||||
|
for partition in rows_partitions:
|
||||||
|
for row in partition:
|
||||||
|
print(row[0], row[1], ...)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(model_partitions: Iterator[Sequence[Model]]):
|
||||||
|
# 等价于 model_partitions = await (await session.execute(sql).scalars().partitions())
|
||||||
|
|
||||||
|
for partition in model_partitions:
|
||||||
|
for model in partition:
|
||||||
|
print(model)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(rows: sa_async.AsyncResult[Tuple[Model, ...]]):
|
||||||
|
# 等价于 rows = await session.stream(sql)
|
||||||
|
|
||||||
|
async for row in rows:
|
||||||
|
print(row[0], row[1], ...)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(models: sa_async.AsyncScalarResult[Model]):
|
||||||
|
# 等价于 models = await session.stream(sql).scalars()
|
||||||
|
|
||||||
|
async for model in models:
|
||||||
|
print(model)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(rows: sa.Result[Tuple[Model, ...]]):
|
||||||
|
# 等价于 rows = await session.execute(sql)
|
||||||
|
|
||||||
|
for row in rows:
|
||||||
|
print(row[0], row[1], ...)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(models: sa.ScalarResult[Model]):
|
||||||
|
# 等价于 models = await session.execute(sql).scalars()
|
||||||
|
|
||||||
|
for model in models:
|
||||||
|
print(model)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(rows: Sequence[Tuple[Model, ...]]):
|
||||||
|
# 等价于 rows = await (await session.stream(sql).all())
|
||||||
|
|
||||||
|
for row in rows:
|
||||||
|
print(row[0], row[1], ...)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(models: Sequence[Model]):
|
||||||
|
# 等价于 models = await (await session.stream(sql).scalars().all())
|
||||||
|
|
||||||
|
for model in models:
|
||||||
|
print(model)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(row: Tuple[Model, ...]):
|
||||||
|
# 等价于 row = await (await session.stream(sql).one_or_none())
|
||||||
|
|
||||||
|
print(row[0], row[1], ...)
|
||||||
|
```
|
||||||
|
|
||||||
|
- ```python
|
||||||
|
async def _(model: Model):
|
||||||
|
# 等价于 model = await (await session.stream(sql).scalars().one_or_none())
|
||||||
|
|
||||||
|
print(model)
|
||||||
|
```
|
@@ -0,0 +1,147 @@
|
|||||||
|
---
|
||||||
|
sidebar_position: 2
|
||||||
|
description: 测试
|
||||||
|
---
|
||||||
|
|
||||||
|
# 测试
|
||||||
|
|
||||||
|
百思不如一试,测试是发现问题的最佳方式。
|
||||||
|
|
||||||
|
不同的用户会有不同的配置,为了提高项目的兼容性,我们需要在不同数据库后端上测试。
|
||||||
|
手动进行大量的、重复的测试不可靠,也不现实,因此我们推荐使用 [GitHub Actions](https://github.com/features/actions) 进行自动化测试:
|
||||||
|
|
||||||
|
```yaml title=.github/workflows/test.yml {12-42,52-53} showLineNumbers
|
||||||
|
name: Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
db:
|
||||||
|
- sqlite+aiosqlite:///db.sqlite3
|
||||||
|
- postgresql+psycopg://postgres:postgres@localhost:5432/postgres
|
||||||
|
- mysql+aiomysql://mysql:mysql@localhost:3306/mymysql
|
||||||
|
|
||||||
|
fail-fast: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
SQLALCHEMY_DATABASE_URL: ${{ matrix.db }}
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgresql:
|
||||||
|
image: ${{ startsWith(matrix.db, 'postgresql') && 'postgres' || '' }}
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
POSTGRES_DB: postgres
|
||||||
|
ports:
|
||||||
|
- 5432:5432
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
image: ${{ startsWith(matrix.db, 'mysql') && 'mysql' || '' }}
|
||||||
|
env:
|
||||||
|
MYSQL_ROOT_PASSWORD: mysql
|
||||||
|
MYSQL_USER: mysql
|
||||||
|
MYSQL_PASSWORD: mysql
|
||||||
|
MYSQL_DATABASE: mymysql
|
||||||
|
ports:
|
||||||
|
- 3306:3306
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Run migrations
|
||||||
|
run: pipx run nb-cli orm upgrade
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: pytest
|
||||||
|
```
|
||||||
|
|
||||||
|
如果项目还需要考虑跨平台和跨 Python 版本兼容,测试矩阵中还需要增加这两个维度。
|
||||||
|
但是,我们没必要在所有平台和 Python 版本上运行所有数据库的测试,因为很显然,PostgreSQL 和 MySQL 这类独立的数据库后端不会受平台和 Python 影响,而且 Github Actions 的非 Linux 平台不支持运行独立服务:
|
||||||
|
|
||||||
|
| | Python 3.9 | Python 3.10 | Python 3.11 | Python 3.12 |
|
||||||
|
| ----------- | ---------- | ----------- | ----------- | --------------------------- |
|
||||||
|
| **Linux** | SQLite | SQLite | SQLite | SQLite / PostgreSQL / MySQL |
|
||||||
|
| **Windows** | SQLite | SQLite | SQLite | SQLite |
|
||||||
|
| **macOS** | SQLite | SQLite | SQLite | SQLite |
|
||||||
|
|
||||||
|
```yaml title=.github/workflows/test.yml {12-24} showLineNumbers
|
||||||
|
name: Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
||||||
|
db: ["sqlite+aiosqlite:///db.sqlite3"]
|
||||||
|
|
||||||
|
include:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
python-version: "3.12"
|
||||||
|
db: postgresql+psycopg://postgres:postgres@localhost:5432/postgres
|
||||||
|
- os: ubuntu-latest
|
||||||
|
python-version: "3.12"
|
||||||
|
db: mysql+aiomysql://mysql:mysql@localhost:3306/mymysql
|
||||||
|
|
||||||
|
fail-fast: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
SQLALCHEMY_DATABASE_URL: ${{ matrix.db }}
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgresql:
|
||||||
|
image: ${{ startsWith(matrix.db, 'postgresql') && 'postgres' || '' }}
|
||||||
|
env:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
POSTGRES_DB: postgres
|
||||||
|
ports:
|
||||||
|
- 5432:5432
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
image: ${{ startsWith(matrix.db, 'mysql') && 'mysql' || '' }}
|
||||||
|
env:
|
||||||
|
MYSQL_ROOT_PASSWORD: mysql
|
||||||
|
MYSQL_USER: mysql
|
||||||
|
MYSQL_PASSWORD: mysql
|
||||||
|
MYSQL_DATABASE: mymysql
|
||||||
|
ports:
|
||||||
|
- 3306:3306
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Run migrations
|
||||||
|
run: pipx run nb-cli orm upgrade
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: pytest
|
||||||
|
```
|
@@ -0,0 +1,158 @@
|
|||||||
|
---
|
||||||
|
sidebar_position: 2
|
||||||
|
description: 用户指南
|
||||||
|
---
|
||||||
|
|
||||||
|
# 用户指南
|
||||||
|
|
||||||
|
`nonebot-plugin-orm` 功能强大且复杂,使用上有一定难度。
|
||||||
|
不过,对于用户而言,只需要掌握部分功能即可。
|
||||||
|
|
||||||
|
:::caution 注意
|
||||||
|
请注意区分插件的项目名(如:`nonebot-plugin-wordcloud`)和模块名(如:`nonebot_plugin_wordcloud`)。`nonebot-plugin-orm` 中统一使用插件模块名。参见 [插件命名规范](../../developer/plugin-publishing#插件命名规范)。
|
||||||
|
:::
|
||||||
|
|
||||||
|
## 示例
|
||||||
|
|
||||||
|
### 创建新机器人
|
||||||
|
|
||||||
|
我们想要创建一个机器人,并安装 `nonebot-plugin-wordcloud` 插件,只需要执行以下命令:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb init # 初始化项目文件夹
|
||||||
|
|
||||||
|
pip install nonebot-plugin-orm[sqlite] # 安装 nonebot-plugin-orm,并附带 SQLite 支持
|
||||||
|
|
||||||
|
nb plugin install nonebot-plugin-wordcloud # 安装插件
|
||||||
|
|
||||||
|
# nb orm heads # 查看有什么插件使用到了数据库(可选)
|
||||||
|
|
||||||
|
nb orm upgrade # 升级数据库
|
||||||
|
|
||||||
|
# nb orm check # 检查一下数据库模式是否与模型定义一致(可选)
|
||||||
|
|
||||||
|
nb run # 启动机器人
|
||||||
|
```
|
||||||
|
|
||||||
|
### 卸载插件
|
||||||
|
|
||||||
|
我们已经安装了 `nonebot-plugin-wordcloud` 插件,但是现在想要卸载它,并且**删除它的数据**,只需要执行以下命令:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb plugin uninstall nonebot-plugin-wordcloud # 卸载插件
|
||||||
|
|
||||||
|
# nb orm heads # 查看有什么插件使用到了数据库。(可选)
|
||||||
|
|
||||||
|
nb orm downgrade nonebot_plugin_wordcloud@base # 降级数据库,删除数据
|
||||||
|
|
||||||
|
# nb orm check # 检查一下数据库模式是否与模型定义一致(可选)
|
||||||
|
```
|
||||||
|
|
||||||
|
## CLI
|
||||||
|
|
||||||
|
接下来,让我们了解下示例中出现的 CLI 命令的含义:
|
||||||
|
|
||||||
|
### heads
|
||||||
|
|
||||||
|
显示所有的分支头。一般一个分支对应一个插件。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb orm heads
|
||||||
|
```
|
||||||
|
|
||||||
|
输出格式为 `<迁移 ID> (<插件模块名>) (<头部类型>)`:
|
||||||
|
|
||||||
|
```
|
||||||
|
46327b837dd8 (nonebot_plugin_chatrecorder) (head)
|
||||||
|
9492159f98f7 (nonebot_plugin_user) (head)
|
||||||
|
71a72119935f (nonebot_plugin_session_orm) (effective head)
|
||||||
|
ade8cdca5470 (nonebot_plugin_wordcloud) (head)
|
||||||
|
```
|
||||||
|
|
||||||
|
### upgrade
|
||||||
|
|
||||||
|
升级数据库。每次安装新的插件或更新插件版本后,都需要执行此命令。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb orm upgrade <插件模块名>@<迁移 ID>
|
||||||
|
```
|
||||||
|
|
||||||
|
其中,`<插件模块名>@<迁移 ID>` 是可选参数。如果不指定,则会将所有分支升级到最新版本,这也是最常见的用法:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb orm upgrade
|
||||||
|
```
|
||||||
|
|
||||||
|
### downgrade
|
||||||
|
|
||||||
|
降级数据库。当需要回滚插件版本或删除插件时,可以执行此命令。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb orm downgrade <插件模块名>@<迁移 ID>
|
||||||
|
```
|
||||||
|
|
||||||
|
其中,`<迁移 ID>` 也可以是 `base`,即回滚到初始状态。常用于卸载插件后删除其数据:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb orm downgrade <插件模块名>@base
|
||||||
|
```
|
||||||
|
|
||||||
|
### check
|
||||||
|
|
||||||
|
检查数据库模式是否与模型定义一致。机器人启动前会自动运行此命令(`ALEMBIC_STARTUP_CHECK=true` 时),并在检查失败时阻止启动。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
nb orm check
|
||||||
|
```
|
||||||
|
|
||||||
|
## 配置
|
||||||
|
|
||||||
|
### sqlalchemy_database_url
|
||||||
|
|
||||||
|
默认数据库连接 URL。参见 [数据库驱动和后端](.#数据库驱动和后端) 和 [引擎配置 — SQLAlchemy 2.0 文档](https://docs.sqlalchemy.org/en/20/core/engines.html#database-urls)。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
SQLALCHEMY_DATABASE_URL=dialect+driver://username:password@host:port/database
|
||||||
|
```
|
||||||
|
|
||||||
|
### sqlalchemy_bind
|
||||||
|
|
||||||
|
bind keys(一般为插件模块名)到数据库连接 URL、[`create_async_engine()`](https://docs.sqlalchemy.org/en/20/orm/extensions/asyncio.html#sqlalchemy.ext.asyncio.create_async_engine) 参数字典或 [`AsyncEngine`](https://docs.sqlalchemy.org/en/20/orm/extensions/asyncio.html#sqlalchemy.ext.asyncio.AsyncEngine) 实例的字典。
|
||||||
|
例如,我们想要让 `nonebot-plugin-wordcloud` 插件使用一个 SQLite 数据库,并开启 [Echo 选项](https://docs.sqlalchemy.org/en/20/core/engines.html#sqlalchemy.create_engine.params.echo) 便于 debug,而其他插件使用默认的 PostgreSQL 数据库,可以这样配置:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
SQLALCHEMY_BINDS='{
|
||||||
|
"": "postgresql+psycopg://scott:tiger@localhost/mydatabase",
|
||||||
|
"nonebot_plugin_wordcloud": {
|
||||||
|
"url": "sqlite+aiosqlite://",
|
||||||
|
"echo": true
|
||||||
|
}
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
### sqlalchemy_engine_options
|
||||||
|
|
||||||
|
[`create_async_engine()`](https://docs.sqlalchemy.org/en/20/orm/extensions/asyncio.html#sqlalchemy.ext.asyncio.create_async_engine) 默认参数字典。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
SQLALCHEMY_ENGINE_OPTIONS='{
|
||||||
|
"pool_size": 5,
|
||||||
|
"max_overflow": 10,
|
||||||
|
"pool_timeout": 30,
|
||||||
|
"pool_recycle": 3600,
|
||||||
|
"echo": true
|
||||||
|
}'
|
||||||
|
```
|
||||||
|
|
||||||
|
### sqlalchemy_echo
|
||||||
|
|
||||||
|
开启 [Echo 选项](https://docs.sqlalchemy.org/en/20/core/engines.html#sqlalchemy.create_engine.params.echo) 和 [Echo Pool 选项](https://docs.sqlalchemy.org/en/20/core/engines.html#sqlalchemy.create_engine.params.echo_pool) 便于 debug。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
SQLALCHEMY_ECHO=true
|
||||||
|
```
|
||||||
|
|
||||||
|
:::caution 注意
|
||||||
|
以上配置之间有覆盖关系,遵循特殊优先于一般的原则,具体为 [`sqlalchemy_database_url`](#sqlalchemy_database_url) > [`sqlalchemy_bind`](#sqlalchemy_bind) > [`sqlalchemy_echo`](#sqlalchemy_echo) > [`sqlalchemy_engine_options`](#sqlalchemy_engine_options)。
|
||||||
|
但覆盖顺序并非显而易见,出于清晰考虑,请只配置必要的选项。
|
||||||
|
:::
|
@@ -60,7 +60,7 @@ async def handle_function(event: OnebotV11MessageEvent | OnebotV12MessageEvent,
|
|||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem value="3.8" label="Python 3.8+">
|
<TabItem value="3.9" label="Python 3.9">
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from typing import Union
|
from typing import Union
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user