中文序号

This commit is contained in:
Chen_Xu233 2024-07-27 23:04:18 +08:00
parent e290a94cf3
commit d727f5e912
4 changed files with 137 additions and 82 deletions

View File

@ -9,6 +9,7 @@ require("nonebot_plugin_cesaa")
import re import re
import os import os
import cn2an
import nonebot_plugin_saa as saa import nonebot_plugin_saa as saa
from typing import Union, Optional, List from typing import Union, Optional, List
@ -243,6 +244,7 @@ async def handle_rank(
await saa.Text("明明这个时间段都没有人说话怎么会有话痨榜呢?").finish() await saa.Text("明明这个时间段都没有人说话怎么会有话痨榜呢?").finish()
rank = got_rank(msg_counter(messages)) rank = got_rank(msg_counter(messages))
logger.debug(rank)
rank2: List[UserRankInfo] = [] rank2: List[UserRankInfo] = []
ids = await persist_id2user_id([int(i[0]) for i in rank]) ids = await persist_id2user_id([int(i[0]) for i in rank])
for i in range(len(rank)): for i in range(len(rank)):
@ -250,7 +252,7 @@ async def handle_rank(
logger.debug(rank[i]) logger.debug(rank[i])
total = sum([i[1] for i in rank]) total = sum([i[1] for i in rank])
index = 1
for i in rank: for i in rank:
if user_info := await get_user_info(bot, event, user_id=str(i[0])): if user_info := await get_user_info(bot, event, user_id=str(i[0])):
logger.debug(user_info) logger.debug(user_info)
@ -266,15 +268,18 @@ async def handle_rank(
user = UserRankInfo(**model_dump(user_info), user = UserRankInfo(**model_dump(user_info),
user_bnum=i[1], user_bnum=i[1],
user_proportion= round(i[1] / total * 100, 2), user_proportion= round(i[1] / total * 100, 2),
user_index= rank.index(i) + 1, user_index= cn2an.an2cn(index),
user_nickname=user_nickname, user_nickname= user_nickname,
user_avatar_bytes= user_avatar, user_avatar_bytes= user_avatar,
) )
user.user_gender="" if user_info.user_gender == "female" else "" if user_info.user_gender == "male" else "ta" user.user_gender="" if user_info.user_gender == "female" else "" if user_info.user_gender == "male" else "ta"
rank2.append(user) rank2.append(user)
index += 1
string: str = "" string: str = ""
for i in range(len(rank)): for i in rank2:
logger.debug(i.user_name)
for i in range(len(rank2)):
str_example = plugin_config.string_format.format( str_example = plugin_config.string_format.format(
index=rank2[i].user_index, index=rank2[i].user_index,
nickname=rank2[i].user_nickname, nickname=rank2[i].user_nickname,

190
pdm.lock
View File

@ -2,10 +2,13 @@
# It is not intended for manual editing. # It is not intended for manual editing.
[metadata] [metadata]
groups = ["default", "dev", "Test"] groups = ["default", "Test", "dev"]
strategy = ["cross_platform", "inherit_metadata"] strategy = ["inherit_metadata"]
lock_version = "4.4.1" lock_version = "4.5.0"
content_hash = "sha256:e388af17c95c71913ef18221b02ac1ca91b36c90a325abce6f4feb655afca6fd" content_hash = "sha256:92f7320fcd5cca140159f00fd791bd62098bbff78b0e29f3bb35be0e667cdc26"
[[metadata.targets]]
requires_python = "~=3.9"
[[package]] [[package]]
name = "aiofiles" name = "aiofiles"
@ -27,6 +30,8 @@ groups = ["default"]
dependencies = [ dependencies = [
"Mako", "Mako",
"SQLAlchemy>=1.3.0", "SQLAlchemy>=1.3.0",
"importlib-metadata; python_version < \"3.9\"",
"importlib-resources; python_version < \"3.9\"",
"typing-extensions>=4", "typing-extensions>=4",
] ]
files = [ files = [
@ -39,7 +44,10 @@ name = "annotated-types"
version = "0.7.0" version = "0.7.0"
requires_python = ">=3.8" requires_python = ">=3.8"
summary = "Reusable constraint types to use with typing.Annotated" summary = "Reusable constraint types to use with typing.Annotated"
groups = ["Test", "default", "dev"] groups = ["default", "Test", "dev"]
dependencies = [
"typing-extensions>=4.0.0; python_version < \"3.9\"",
]
files = [ files = [
{file = "annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53"}, {file = "annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53"},
{file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"}, {file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"},
@ -69,6 +77,7 @@ requires_python = ">=3.6"
summary = "In-process task scheduler with Cron-like capabilities" summary = "In-process task scheduler with Cron-like capabilities"
groups = ["default"] groups = ["default"]
dependencies = [ dependencies = [
"importlib-metadata>=3.6.0; python_version < \"3.8\"",
"pytz", "pytz",
"six>=1.4.0", "six>=1.4.0",
"tzlocal!=3.*,>=2.0", "tzlocal!=3.*,>=2.0",
@ -80,7 +89,7 @@ files = [
[[package]] [[package]]
name = "arclet-alconna" name = "arclet-alconna"
version = "1.8.18" version = "1.8.19"
requires_python = ">=3.8" requires_python = ">=3.8"
summary = "A High-performance, Generality, Humane Command Line Arguments Parser Library." summary = "A High-performance, Generality, Humane Command Line Arguments Parser Library."
groups = ["default"] groups = ["default"]
@ -90,8 +99,8 @@ dependencies = [
"typing-extensions>=4.5.0", "typing-extensions>=4.5.0",
] ]
files = [ files = [
{file = "arclet_alconna-1.8.18-py3-none-any.whl", hash = "sha256:f3226887f71b5464ebc654fdb2317a31319f5520e967229248fdad4c9584a165"}, {file = "arclet_alconna-1.8.19-py3-none-any.whl", hash = "sha256:c78d5527d8ea13990e96f996a3480bf236ad63b81114f53ce2c010bc2a0ee1d8"},
{file = "arclet_alconna-1.8.18.tar.gz", hash = "sha256:e797f9fa4ed07b05f9f0ed2aea6ff2a54d184f201be656303e03751ac0803d99"}, {file = "arclet_alconna-1.8.19.tar.gz", hash = "sha256:12064caad6854a4b00dc5b7376d86e15911072acd9278531bf86e4fb97568288"},
] ]
[[package]] [[package]]
@ -303,18 +312,34 @@ summary = "Composable command line interface toolkit"
groups = ["default", "dev"] groups = ["default", "dev"]
dependencies = [ dependencies = [
"colorama; platform_system == \"Windows\"", "colorama; platform_system == \"Windows\"",
"importlib-metadata; python_version < \"3.8\"",
] ]
files = [ files = [
{file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"}, {file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"},
{file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"}, {file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"},
] ]
[[package]]
name = "cn2an"
version = "0.5.22"
requires_python = ">=3.6"
summary = "Convert Chinese numerals and Arabic numerals."
groups = ["default"]
dependencies = [
"proces>=0.1.3",
"setuptools>=47.3.1",
]
files = [
{file = "cn2an-0.5.22-py3-none-any.whl", hash = "sha256:cba4c8f305b43da01f50696047cca3116c727424ac62338da6a3426e01454f3e"},
{file = "cn2an-0.5.22.tar.gz", hash = "sha256:27ae5b56441d7329ed2ececffa026bfa8fc353dcf1fb0d9146b303b9cce3ac37"},
]
[[package]] [[package]]
name = "colorama" name = "colorama"
version = "0.4.6" version = "0.4.6"
requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" requires_python = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
summary = "Cross-platform colored terminal text." summary = "Cross-platform colored terminal text."
groups = ["Test", "default", "dev"] groups = ["default", "Test", "dev"]
marker = "sys_platform == \"win32\" or platform_system == \"Windows\"" marker = "sys_platform == \"win32\" or platform_system == \"Windows\""
files = [ files = [
{file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},
@ -562,6 +587,9 @@ version = "0.14.0"
requires_python = ">=3.7" requires_python = ">=3.7"
summary = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" summary = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
groups = ["default", "dev"] groups = ["default", "dev"]
dependencies = [
"typing-extensions; python_version < \"3.8\"",
]
files = [ files = [
{file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"}, {file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"},
{file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"}, {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"},
@ -636,7 +664,7 @@ name = "idna"
version = "3.7" version = "3.7"
requires_python = ">=3.5" requires_python = ">=3.5"
summary = "Internationalized Domain Names in Applications (IDNA)" summary = "Internationalized Domain Names in Applications (IDNA)"
groups = ["Test", "default", "dev"] groups = ["default", "Test", "dev"]
files = [ files = [
{file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"}, {file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"},
{file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"}, {file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"},
@ -649,6 +677,7 @@ requires_python = ">=3.8"
summary = "Read metadata from Python packages" summary = "Read metadata from Python packages"
groups = ["default", "dev"] groups = ["default", "dev"]
dependencies = [ dependencies = [
"typing-extensions>=3.6.4; python_version < \"3.8\"",
"zipp>=0.5", "zipp>=0.5",
] ]
files = [ files = [
@ -748,6 +777,7 @@ groups = ["dev"]
dependencies = [ dependencies = [
"SecretStorage>=3.2; sys_platform == \"linux\"", "SecretStorage>=3.2; sys_platform == \"linux\"",
"importlib-metadata>=4.11.4; python_version < \"3.12\"", "importlib-metadata>=4.11.4; python_version < \"3.12\"",
"importlib-resources; python_version < \"3.9\"",
"jaraco-classes", "jaraco-classes",
"jaraco-context", "jaraco-context",
"jaraco-functools", "jaraco-functools",
@ -764,8 +794,9 @@ name = "loguru"
version = "0.7.2" version = "0.7.2"
requires_python = ">=3.5" requires_python = ">=3.5"
summary = "Python logging made (stupidly) simple" summary = "Python logging made (stupidly) simple"
groups = ["Test", "default"] groups = ["default", "Test"]
dependencies = [ dependencies = [
"aiocontextvars>=0.2.0; python_version < \"3.7\"",
"colorama>=0.3.4; sys_platform == \"win32\"", "colorama>=0.3.4; sys_platform == \"win32\"",
"win32-setctime>=1.0.0; sys_platform == \"win32\"", "win32-setctime>=1.0.0; sys_platform == \"win32\"",
] ]
@ -937,7 +968,7 @@ name = "multidict"
version = "6.0.5" version = "6.0.5"
requires_python = ">=3.7" requires_python = ">=3.7"
summary = "multidict implementation" summary = "multidict implementation"
groups = ["Test", "default"] groups = ["default", "Test"]
files = [ files = [
{file = "multidict-6.0.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:228b644ae063c10e7f324ab1ab6b548bdf6f8b47f3ec234fef1093bc2735e5f9"}, {file = "multidict-6.0.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:228b644ae063c10e7f324ab1ab6b548bdf6f8b47f3ec234fef1093bc2735e5f9"},
{file = "multidict-6.0.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:896ebdcf62683551312c30e20614305f53125750803b614e9e6ce74a96232604"}, {file = "multidict-6.0.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:896ebdcf62683551312c30e20614305f53125750803b614e9e6ce74a96232604"},
@ -1074,13 +1105,13 @@ files = [
[[package]] [[package]]
name = "nonebot-plugin-alconna" name = "nonebot-plugin-alconna"
version = "0.49.0" version = "0.50.2"
requires_python = ">=3.9" requires_python = ">=3.9"
summary = "Alconna Adapter for Nonebot" summary = "Alconna Adapter for Nonebot"
groups = ["default"] groups = ["default"]
dependencies = [ dependencies = [
"arclet-alconna-tools>=0.7.6", "arclet-alconna-tools>=0.7.6",
"arclet-alconna>=1.8.16", "arclet-alconna>=1.8.19",
"importlib-metadata>=4.13.0", "importlib-metadata>=4.13.0",
"nepattern>=0.7.4", "nepattern>=0.7.4",
"nonebot-plugin-waiter>=0.6.0", "nonebot-plugin-waiter>=0.6.0",
@ -1088,14 +1119,14 @@ dependencies = [
"tarina>=0.5.4", "tarina>=0.5.4",
] ]
files = [ files = [
{file = "nonebot_plugin_alconna-0.49.0-py3-none-any.whl", hash = "sha256:a9733a37c521373d9dd71752ab0e9cd2338c385ef9871c8e3f2ad178b2f1668f"}, {file = "nonebot_plugin_alconna-0.50.2-py3-none-any.whl", hash = "sha256:be641eaf539f6f9dfb2398be80e994fa27814064eeed89e7a46a03754756dfc1"},
{file = "nonebot_plugin_alconna-0.49.0.tar.gz", hash = "sha256:5060819b76d05c24d944e17b6a10de52e8821063d15220ab65083cda97c05706"}, {file = "nonebot_plugin_alconna-0.50.2.tar.gz", hash = "sha256:ebae23723cee5cbbc350aa864d9e3d95cb1ab8324ba8674130df3302066277b1"},
] ]
[[package]] [[package]]
name = "nonebot-plugin-apscheduler" name = "nonebot-plugin-apscheduler"
version = "0.4.0" version = "0.5.0"
requires_python = ">=3.8,<4.0" requires_python = "<4.0,>=3.9"
summary = "APScheduler Support for NoneBot2" summary = "APScheduler Support for NoneBot2"
groups = ["default"] groups = ["default"]
dependencies = [ dependencies = [
@ -1104,8 +1135,8 @@ dependencies = [
"pydantic!=2.5.0,!=2.5.1,<3.0.0,>=1.10.0", "pydantic!=2.5.0,!=2.5.1,<3.0.0,>=1.10.0",
] ]
files = [ files = [
{file = "nonebot_plugin_apscheduler-0.4.0-py3-none-any.whl", hash = "sha256:f01bb418a5ecf9f04dcadbbc2ff5ba565a48177eb0a758c8c46b13048ac5680c"}, {file = "nonebot_plugin_apscheduler-0.5.0-py3-none-any.whl", hash = "sha256:8b99b5ee60c4bc195d4df2fd27dab3d6963691e3332f6cee31a06eb4277c307f"},
{file = "nonebot_plugin_apscheduler-0.4.0.tar.gz", hash = "sha256:ba91e68809a38e6dbe28906366d47f37f754ded360944b938cd5ac62029a0eb6"}, {file = "nonebot_plugin_apscheduler-0.5.0.tar.gz", hash = "sha256:6c0230e99765f275dc83d6639ff33bd6f71203fa10cd1b8a204b0f95530cda86"},
] ]
[[package]] [[package]]
@ -1144,7 +1175,7 @@ files = [
[[package]] [[package]]
name = "nonebot-plugin-htmlrender" name = "nonebot-plugin-htmlrender"
version = "0.3.2" version = "0.3.3"
requires_python = "<4.0,>=3.9" requires_python = "<4.0,>=3.9"
summary = "通过浏览器渲染图片" summary = "通过浏览器渲染图片"
groups = ["default"] groups = ["default"]
@ -1153,14 +1184,14 @@ dependencies = [
"aiofiles>=0.8.0", "aiofiles>=0.8.0",
"jinja2>=3.0.3", "jinja2>=3.0.3",
"markdown>=3.3.6", "markdown>=3.3.6",
"nonebot2[fastapi]>=2.2.0", "nonebot2>=2.2.0",
"playwright>=1.17.2", "playwright>=1.17.2",
"pymdown-extensions>=9.1", "pymdown-extensions>=9.1",
"python-markdown-math>=0.8", "python-markdown-math>=0.8",
] ]
files = [ files = [
{file = "nonebot_plugin_htmlrender-0.3.2-py3-none-any.whl", hash = "sha256:6de89ce6427faa1c5096de9b64565c66293e319813da04267954dd362707c0ed"}, {file = "nonebot_plugin_htmlrender-0.3.3-py3-none-any.whl", hash = "sha256:2ac871d345c94103aa630153e007caa6319b5f5468491347513d746ba98b70d7"},
{file = "nonebot_plugin_htmlrender-0.3.2.tar.gz", hash = "sha256:acddfe12a2a82784e32e1d2b00d22de2ad75da5452fa1290fb8aa89f0d415e7d"}, {file = "nonebot_plugin_htmlrender-0.3.3.tar.gz", hash = "sha256:ab46ecc6dbd102628af8f88437fdc24da11839487950d07d0c5fd8db0db98ae8"},
] ]
[[package]] [[package]]
@ -1283,10 +1314,10 @@ files = [
[[package]] [[package]]
name = "nonebot2" name = "nonebot2"
version = "2.3.1" version = "2.3.2"
requires_python = "<4.0,>=3.9" requires_python = "<4.0,>=3.9"
summary = "An asynchronous python bot framework." summary = "An asynchronous python bot framework."
groups = ["Test", "default"] groups = ["default", "Test"]
dependencies = [ dependencies = [
"loguru<1.0.0,>=0.6.0", "loguru<1.0.0,>=0.6.0",
"pydantic!=2.5.0,!=2.5.1,<3.0.0,>=1.10.0", "pydantic!=2.5.0,!=2.5.1,<3.0.0,>=1.10.0",
@ -1297,25 +1328,25 @@ dependencies = [
"yarl<2.0.0,>=1.7.2", "yarl<2.0.0,>=1.7.2",
] ]
files = [ files = [
{file = "nonebot2-2.3.1-py3-none-any.whl", hash = "sha256:91ac0abebe6c403c2443b11a49e065b79e6199460bdd61a32148366b35f81c4d"}, {file = "nonebot2-2.3.2-py3-none-any.whl", hash = "sha256:c51aa3c1f23d8062ce6d13c8423dcb9a8bf0c44f21687916095f825da79a9a55"},
{file = "nonebot2-2.3.1.tar.gz", hash = "sha256:ac5a1a1759f15310e9183b606ce6bdbe52a90287bf36a69201be548e23d41e6c"}, {file = "nonebot2-2.3.2.tar.gz", hash = "sha256:af52e27e03e7fe147f2b642151eec81f264d058efe53b974eb08b5d90177cd14"},
] ]
[[package]] [[package]]
name = "nonebot2" name = "nonebot2"
version = "2.3.1" version = "2.3.2"
extras = ["fastapi"] extras = ["fastapi"]
requires_python = "<4.0,>=3.9" requires_python = "<4.0,>=3.9"
summary = "An asynchronous python bot framework." summary = "An asynchronous python bot framework."
groups = ["default"] groups = ["default"]
dependencies = [ dependencies = [
"fastapi<1.0.0,>=0.93.0", "fastapi<1.0.0,>=0.93.0",
"nonebot2==2.3.1", "nonebot2==2.3.2",
"uvicorn[standard]<1.0.0,>=0.20.0", "uvicorn[standard]<1.0.0,>=0.20.0",
] ]
files = [ files = [
{file = "nonebot2-2.3.1-py3-none-any.whl", hash = "sha256:91ac0abebe6c403c2443b11a49e065b79e6199460bdd61a32148366b35f81c4d"}, {file = "nonebot2-2.3.2-py3-none-any.whl", hash = "sha256:c51aa3c1f23d8062ce6d13c8423dcb9a8bf0c44f21687916095f825da79a9a55"},
{file = "nonebot2-2.3.1.tar.gz", hash = "sha256:ac5a1a1759f15310e9183b606ce6bdbe52a90287bf36a69201be548e23d41e6c"}, {file = "nonebot2-2.3.2.tar.gz", hash = "sha256:af52e27e03e7fe147f2b642151eec81f264d058efe53b974eb08b5d90177cd14"},
] ]
[[package]] [[package]]
@ -1371,13 +1402,13 @@ files = [
[[package]] [[package]]
name = "pkginfo" name = "pkginfo"
version = "1.11.1" version = "1.10.0"
requires_python = ">=3.8" requires_python = ">=3.6"
summary = "Query metadata from sdists / bdists / installed packages." summary = "Query metadata from sdists / bdists / installed packages."
groups = ["dev"] groups = ["dev"]
files = [ files = [
{file = "pkginfo-1.11.1-py3-none-any.whl", hash = "sha256:bfa76a714fdfc18a045fcd684dbfc3816b603d9d075febef17cb6582bea29573"}, {file = "pkginfo-1.10.0-py3-none-any.whl", hash = "sha256:889a6da2ed7ffc58ab5b900d888ddce90bce912f2d2de1dc1c26f4cb9fe65097"},
{file = "pkginfo-1.11.1.tar.gz", hash = "sha256:2e0dca1cf4c8e39644eed32408ea9966ee15e0d324c62ba899a393b3c6b467aa"}, {file = "pkginfo-1.10.0.tar.gz", hash = "sha256:5df73835398d10db79f8eecd5cd86b1f6d29317589ea70796994d49399af6297"},
] ]
[[package]] [[package]]
@ -1411,6 +1442,17 @@ files = [
{file = "playwright-1.44.0-py3-none-win_amd64.whl", hash = "sha256:5b8a4a1d4d50f4ff99b47965576322a8c4e34631854b862a25c1feb824be22a8"}, {file = "playwright-1.44.0-py3-none-win_amd64.whl", hash = "sha256:5b8a4a1d4d50f4ff99b47965576322a8c4e34631854b862a25c1feb824be22a8"},
] ]
[[package]]
name = "proces"
version = "0.1.7"
requires_python = ">=3.6"
summary = "text preprocess."
groups = ["default"]
files = [
{file = "proces-0.1.7-py3-none-any.whl", hash = "sha256:308325bbc96877263f06e57e5e9c760c4b42cc722887ad60be6b18fc37d68762"},
{file = "proces-0.1.7.tar.gz", hash = "sha256:70a05d9e973dd685f7a9092c58be695a8181a411d63796c213232fd3fdc43775"},
]
[[package]] [[package]]
name = "prompt-toolkit" name = "prompt-toolkit"
version = "3.0.47" version = "3.0.47"
@ -1442,7 +1484,7 @@ name = "pydantic"
version = "2.7.4" version = "2.7.4"
requires_python = ">=3.8" requires_python = ">=3.8"
summary = "Data validation using Python type hints" summary = "Data validation using Python type hints"
groups = ["Test", "default", "dev"] groups = ["default", "Test", "dev"]
dependencies = [ dependencies = [
"annotated-types>=0.4.0", "annotated-types>=0.4.0",
"pydantic-core==2.18.4", "pydantic-core==2.18.4",
@ -1458,7 +1500,7 @@ name = "pydantic-core"
version = "2.18.4" version = "2.18.4"
requires_python = ">=3.8" requires_python = ">=3.8"
summary = "Core functionality for Pydantic validation and serialization" summary = "Core functionality for Pydantic validation and serialization"
groups = ["Test", "default", "dev"] groups = ["default", "Test", "dev"]
dependencies = [ dependencies = [
"typing-extensions!=4.7.0,>=4.6.0", "typing-extensions!=4.7.0,>=4.6.0",
] ]
@ -1560,7 +1602,7 @@ files = [
name = "pygtrie" name = "pygtrie"
version = "2.5.0" version = "2.5.0"
summary = "A pure Python trie data structure implementation." summary = "A pure Python trie data structure implementation."
groups = ["Test", "default"] groups = ["default", "Test"]
files = [ files = [
{file = "pygtrie-2.5.0-py3-none-any.whl", hash = "sha256:8795cda8105493d5ae159a5bef313ff13156c5d4d72feddefacaad59f8c8ce16"}, {file = "pygtrie-2.5.0-py3-none-any.whl", hash = "sha256:8795cda8105493d5ae159a5bef313ff13156c5d4d72feddefacaad59f8c8ce16"},
{file = "pygtrie-2.5.0.tar.gz", hash = "sha256:203514ad826eb403dab1d2e2ddd034e0d1534bbe4dbe0213bb0593f66beba4e2"}, {file = "pygtrie-2.5.0.tar.gz", hash = "sha256:203514ad826eb403dab1d2e2ddd034e0d1534bbe4dbe0213bb0593f66beba4e2"},
@ -1600,7 +1642,7 @@ name = "python-dotenv"
version = "1.0.1" version = "1.0.1"
requires_python = ">=3.8" requires_python = ">=3.8"
summary = "Read key-value pairs from a .env file and set them as environment variables" summary = "Read key-value pairs from a .env file and set them as environment variables"
groups = ["Test", "default"] groups = ["default", "Test"]
files = [ files = [
{file = "python-dotenv-1.0.1.tar.gz", hash = "sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca"}, {file = "python-dotenv-1.0.1.tar.gz", hash = "sha256:e324ee90a023d808f1959c46bcbc04446a10ced277783dc6ee09987c37ec10ca"},
{file = "python_dotenv-1.0.1-py3-none-any.whl", hash = "sha256:f7b63ef50f1b690dddf550d03497b66d609393b40b564ed0d674909a68ebf16a"}, {file = "python_dotenv-1.0.1-py3-none-any.whl", hash = "sha256:f7b63ef50f1b690dddf550d03497b66d609393b40b564ed0d674909a68ebf16a"},
@ -1767,6 +1809,7 @@ groups = ["default", "dev"]
dependencies = [ dependencies = [
"markdown-it-py>=2.2.0", "markdown-it-py>=2.2.0",
"pygments<3.0.0,>=2.13.0", "pygments<3.0.0,>=2.13.0",
"typing-extensions<5.0,>=4.0.0; python_version < \"3.9\"",
] ]
files = [ files = [
{file = "rich-13.7.1-py3-none-any.whl", hash = "sha256:4edbae314f59eb482f54e9e30bf00d33350aaa94f4bfcd4e9e3110e64d0d7222"}, {file = "rich-13.7.1-py3-none-any.whl", hash = "sha256:4edbae314f59eb482f54e9e30bf00d33350aaa94f4bfcd4e9e3110e64d0d7222"},
@ -1775,28 +1818,29 @@ files = [
[[package]] [[package]]
name = "ruff" name = "ruff"
version = "0.4.9" version = "0.5.5"
requires_python = ">=3.7" requires_python = ">=3.7"
summary = "An extremely fast Python linter and code formatter, written in Rust." summary = "An extremely fast Python linter and code formatter, written in Rust."
groups = ["dev"] groups = ["dev"]
files = [ files = [
{file = "ruff-0.4.9-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:b262ed08d036ebe162123170b35703aaf9daffecb698cd367a8d585157732991"}, {file = "ruff-0.5.5-py3-none-linux_armv6l.whl", hash = "sha256:605d589ec35d1da9213a9d4d7e7a9c761d90bba78fc8790d1c5e65026c1b9eaf"},
{file = "ruff-0.4.9-py3-none-macosx_11_0_arm64.whl", hash = "sha256:98ec2775fd2d856dc405635e5ee4ff177920f2141b8e2d9eb5bd6efd50e80317"}, {file = "ruff-0.5.5-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:00817603822a3e42b80f7c3298c8269e09f889ee94640cd1fc7f9329788d7bf8"},
{file = "ruff-0.4.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4555056049d46d8a381f746680db1c46e67ac3b00d714606304077682832998e"}, {file = "ruff-0.5.5-py3-none-macosx_11_0_arm64.whl", hash = "sha256:187a60f555e9f865a2ff2c6984b9afeffa7158ba6e1eab56cb830404c942b0f3"},
{file = "ruff-0.4.9-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e91175fbe48f8a2174c9aad70438fe9cb0a5732c4159b2a10a3565fea2d94cde"}, {file = "ruff-0.5.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fe26fc46fa8c6e0ae3f47ddccfbb136253c831c3289bba044befe68f467bfb16"},
{file = "ruff-0.4.9-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0e8e7b95673f22e0efd3571fb5b0cf71a5eaaa3cc8a776584f3b2cc878e46bff"}, {file = "ruff-0.5.5-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4ad25dd9c5faac95c8e9efb13e15803cd8bbf7f4600645a60ffe17c73f60779b"},
{file = "ruff-0.4.9-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:2d45ddc6d82e1190ea737341326ecbc9a61447ba331b0a8962869fcada758505"}, {file = "ruff-0.5.5-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f70737c157d7edf749bcb952d13854e8f745cec695a01bdc6e29c29c288fc36e"},
{file = "ruff-0.4.9-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:78de3fdb95c4af084087628132336772b1c5044f6e710739d440fc0bccf4d321"}, {file = "ruff-0.5.5-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:cfd7de17cef6ab559e9f5ab859f0d3296393bc78f69030967ca4d87a541b97a0"},
{file = "ruff-0.4.9-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:06b60f91bfa5514bb689b500a25ba48e897d18fea14dce14b48a0c40d1635893"}, {file = "ruff-0.5.5-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a09b43e02f76ac0145f86a08e045e2ea452066f7ba064fd6b0cdccb486f7c3e7"},
{file = "ruff-0.4.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:88bffe9c6a454bf8529f9ab9091c99490578a593cc9f9822b7fc065ee0712a06"}, {file = "ruff-0.5.5-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d0b856cb19c60cd40198be5d8d4b556228e3dcd545b4f423d1ad812bfdca5884"},
{file = "ruff-0.4.9-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:673bddb893f21ab47a8334c8e0ea7fd6598ecc8e698da75bcd12a7b9d0a3206e"}, {file = "ruff-0.5.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3687d002f911e8a5faf977e619a034d159a8373514a587249cc00f211c67a091"},
{file = "ruff-0.4.9-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8c1aff58c31948cc66d0b22951aa19edb5af0a3af40c936340cd32a8b1ab7438"}, {file = "ruff-0.5.5-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:ac9dc814e510436e30d0ba535f435a7f3dc97f895f844f5b3f347ec8c228a523"},
{file = "ruff-0.4.9-py3-none-musllinux_1_2_i686.whl", hash = "sha256:784d3ec9bd6493c3b720a0b76f741e6c2d7d44f6b2be87f5eef1ae8cc1d54c84"}, {file = "ruff-0.5.5-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:af9bdf6c389b5add40d89b201425b531e0a5cceb3cfdcc69f04d3d531c6be74f"},
{file = "ruff-0.4.9-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:732dd550bfa5d85af8c3c6cbc47ba5b67c6aed8a89e2f011b908fc88f87649db"}, {file = "ruff-0.5.5-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d40a8533ed545390ef8315b8e25c4bb85739b90bd0f3fe1280a29ae364cc55d8"},
{file = "ruff-0.4.9-py3-none-win32.whl", hash = "sha256:8064590fd1a50dcf4909c268b0e7c2498253273309ad3d97e4a752bb9df4f521"}, {file = "ruff-0.5.5-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:cab904683bf9e2ecbbe9ff235bfe056f0eba754d0168ad5407832928d579e7ab"},
{file = "ruff-0.4.9-py3-none-win_amd64.whl", hash = "sha256:e0a22c4157e53d006530c902107c7f550b9233e9706313ab57b892d7197d8e52"}, {file = "ruff-0.5.5-py3-none-win32.whl", hash = "sha256:696f18463b47a94575db635ebb4c178188645636f05e934fdf361b74edf1bb2d"},
{file = "ruff-0.4.9-py3-none-win_arm64.whl", hash = "sha256:5d5460f789ccf4efd43f265a58538a2c24dbce15dbf560676e430375f20a8198"}, {file = "ruff-0.5.5-py3-none-win_amd64.whl", hash = "sha256:50f36d77f52d4c9c2f1361ccbfbd09099a1b2ea5d2b2222c586ab08885cf3445"},
{file = "ruff-0.4.9.tar.gz", hash = "sha256:f1cb0828ac9533ba0135d148d214e284711ede33640465e706772645483427e3"}, {file = "ruff-0.5.5-py3-none-win_arm64.whl", hash = "sha256:3191317d967af701f1b73a31ed5788795936e423b7acce82a2b63e26eb3e89d6"},
{file = "ruff-0.5.5.tar.gz", hash = "sha256:cc5516bdb4858d972fbc31d246bdb390eab8df1a26e2353be2dbc0c2d7f5421a"},
] ]
[[package]] [[package]]
@ -1817,13 +1861,13 @@ files = [
[[package]] [[package]]
name = "setuptools" name = "setuptools"
version = "70.0.0" version = "71.1.0"
requires_python = ">=3.8" requires_python = ">=3.8"
summary = "Easily download, build, install, upgrade, and uninstall Python packages" summary = "Easily download, build, install, upgrade, and uninstall Python packages"
groups = ["dev"] groups = ["default", "dev"]
files = [ files = [
{file = "setuptools-70.0.0-py3-none-any.whl", hash = "sha256:54faa7f2e8d2d11bcd2c07bed282eef1046b5c080d1c32add737d7b5817b1ad4"}, {file = "setuptools-71.1.0-py3-none-any.whl", hash = "sha256:33874fdc59b3188304b2e7c80d9029097ea31627180896fb549c578ceb8a0855"},
{file = "setuptools-70.0.0.tar.gz", hash = "sha256:f211a66637b8fa059bb28183da127d4e86396c991a942b028c6650d4319c3fd0"}, {file = "setuptools-71.1.0.tar.gz", hash = "sha256:032d42ee9fb536e33087fb66cac5f840eb9391ed05637b3f2a76a7c8fb477936"},
] ]
[[package]] [[package]]
@ -1867,6 +1911,7 @@ summary = "Database Abstraction Library"
groups = ["default"] groups = ["default"]
dependencies = [ dependencies = [
"greenlet!=0.4.17; platform_machine == \"win32\" or platform_machine == \"WIN32\" or platform_machine == \"AMD64\" or platform_machine == \"amd64\" or platform_machine == \"x86_64\" or platform_machine == \"ppc64le\" or platform_machine == \"aarch64\"", "greenlet!=0.4.17; platform_machine == \"win32\" or platform_machine == \"WIN32\" or platform_machine == \"AMD64\" or platform_machine == \"amd64\" or platform_machine == \"x86_64\" or platform_machine == \"ppc64le\" or platform_machine == \"aarch64\"",
"importlib-metadata; python_version < \"3.8\"",
"typing-extensions>=4.6.0", "typing-extensions>=4.6.0",
] ]
files = [ files = [
@ -1988,7 +2033,7 @@ name = "tomli"
version = "2.0.1" version = "2.0.1"
requires_python = ">=3.7" requires_python = ">=3.7"
summary = "A lil' TOML parser" summary = "A lil' TOML parser"
groups = ["Test", "default"] groups = ["default", "Test"]
marker = "python_version < \"3.11\"" marker = "python_version < \"3.11\""
files = [ files = [
{file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"},
@ -2008,13 +2053,14 @@ files = [
[[package]] [[package]]
name = "twine" name = "twine"
version = "5.1.0" version = "5.1.1"
requires_python = ">=3.8" requires_python = ">=3.8"
summary = "Collection of utilities for publishing packages on PyPI" summary = "Collection of utilities for publishing packages on PyPI"
groups = ["dev"] groups = ["dev"]
dependencies = [ dependencies = [
"importlib-metadata>=3.6", "importlib-metadata>=3.6",
"keyring>=15.1", "keyring>=15.1",
"pkginfo<1.11",
"pkginfo>=1.8.1", "pkginfo>=1.8.1",
"readme-renderer>=35.0", "readme-renderer>=35.0",
"requests-toolbelt!=0.9.0,>=0.8.0", "requests-toolbelt!=0.9.0,>=0.8.0",
@ -2024,8 +2070,8 @@ dependencies = [
"urllib3>=1.26.0", "urllib3>=1.26.0",
] ]
files = [ files = [
{file = "twine-5.1.0-py3-none-any.whl", hash = "sha256:fe1d814395bfe50cfbe27783cb74efe93abeac3f66deaeb6c8390e4e92bacb43"}, {file = "twine-5.1.1-py3-none-any.whl", hash = "sha256:215dbe7b4b94c2c50a7315c0275d2258399280fbb7d04182c7e55e24b5f93997"},
{file = "twine-5.1.0.tar.gz", hash = "sha256:4d74770c88c4fcaf8134d2a6a9d863e40f08255ff7d8e2acb3cbbd57d25f6e9d"}, {file = "twine-5.1.1.tar.gz", hash = "sha256:9aa0825139c02b3434d913545c7b847a21c835e11597f5255842d457da2322db"},
] ]
[[package]] [[package]]
@ -2061,7 +2107,7 @@ name = "typing-extensions"
version = "4.12.2" version = "4.12.2"
requires_python = ">=3.8" requires_python = ">=3.8"
summary = "Backported and Experimental Type Hints for Python 3.8+" summary = "Backported and Experimental Type Hints for Python 3.8+"
groups = ["Test", "default", "dev"] groups = ["default", "Test", "dev"]
files = [ files = [
{file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"},
{file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"},
@ -2086,6 +2132,7 @@ requires_python = ">=3.8"
summary = "tzinfo object for the local timezone" summary = "tzinfo object for the local timezone"
groups = ["default"] groups = ["default"]
dependencies = [ dependencies = [
"backports-zoneinfo; python_version < \"3.9\"",
"tzdata; platform_system == \"Windows\"", "tzdata; platform_system == \"Windows\"",
] ]
files = [ files = [
@ -2247,6 +2294,7 @@ groups = ["dev"]
dependencies = [ dependencies = [
"distlib<1,>=0.3.7", "distlib<1,>=0.3.7",
"filelock<4,>=3.12.2", "filelock<4,>=3.12.2",
"importlib-metadata>=6.6; python_version < \"3.8\"",
"platformdirs<5,>=3.9.1", "platformdirs<5,>=3.9.1",
] ]
files = [ files = [
@ -2322,6 +2370,9 @@ name = "wcwidth"
version = "0.2.13" version = "0.2.13"
summary = "Measures the displayed width of unicode strings in a terminal" summary = "Measures the displayed width of unicode strings in a terminal"
groups = ["dev"] groups = ["dev"]
dependencies = [
"backports-functools-lru-cache>=1.2.1; python_version < \"3.2\"",
]
files = [ files = [
{file = "wcwidth-0.2.13-py2.py3-none-any.whl", hash = "sha256:3da69048e4540d84af32131829ff948f1e022c1c6bdb8d6102117aac784f6859"}, {file = "wcwidth-0.2.13-py2.py3-none-any.whl", hash = "sha256:3da69048e4540d84af32131829ff948f1e022c1c6bdb8d6102117aac784f6859"},
{file = "wcwidth-0.2.13.tar.gz", hash = "sha256:72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5"}, {file = "wcwidth-0.2.13.tar.gz", hash = "sha256:72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5"},
@ -2391,7 +2442,7 @@ name = "win32-setctime"
version = "1.1.0" version = "1.1.0"
requires_python = ">=3.5" requires_python = ">=3.5"
summary = "A small Python utility to set file creation time on Windows" summary = "A small Python utility to set file creation time on Windows"
groups = ["Test", "default"] groups = ["default", "Test"]
marker = "sys_platform == \"win32\"" marker = "sys_platform == \"win32\""
files = [ files = [
{file = "win32_setctime-1.1.0-py3-none-any.whl", hash = "sha256:231db239e959c2fe7eb1d7dc129f11172354f98361c4fa2d6d2d7e278baa8aad"}, {file = "win32_setctime-1.1.0-py3-none-any.whl", hash = "sha256:231db239e959c2fe7eb1d7dc129f11172354f98361c4fa2d6d2d7e278baa8aad"},
@ -2403,10 +2454,11 @@ name = "yarl"
version = "1.9.4" version = "1.9.4"
requires_python = ">=3.7" requires_python = ">=3.7"
summary = "Yet another URL library" summary = "Yet another URL library"
groups = ["Test", "default"] groups = ["default", "Test"]
dependencies = [ dependencies = [
"idna>=2.0", "idna>=2.0",
"multidict>=4.0", "multidict>=4.0",
"typing-extensions>=3.7.4; python_version < \"3.8\"",
] ]
files = [ files = [
{file = "yarl-1.9.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a8c1df72eb746f4136fe9a2e72b0c9dc1da1cbd23b5372f94b5820ff8ae30e0e"}, {file = "yarl-1.9.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a8c1df72eb746f4136fe9a2e72b0c9dc1da1cbd23b5372f94b5820ff8ae30e0e"},

View File

@ -1,19 +1,20 @@
[project] [project]
name = "nonebot-plugin-dialectlist" name = "nonebot-plugin-dialectlist"
version = "2.1.8" version = "2.1.9"
description = "看看你群群友有多能说" description = "看看你群群友有多能说"
authors = [ authors = [
{name = "Chen_Xu233", email = "woyerpa@outlook.com"}, {name = "Chen_Xu233", email = "woyerpa@outlook.com"},
] ]
dependencies = [ dependencies = [
"nonebot2>=2.3.1",
"nonebot-plugin-chatrecorder>=0.6.0", "nonebot-plugin-chatrecorder>=0.6.0",
"requests>=2.32.3", "requests>=2.32.3",
"nonebot-plugin-apscheduler>=0.4.0", "nonebot-plugin-apscheduler>=0.4.0",
"nonebot-plugin-alconna>=0.49.6", "nonebot-plugin-alconna>=0.50.2",
"nonebot-plugin-cesaa>=0.4.0", "nonebot-plugin-cesaa>=0.4.0",
"nonebot-plugin-userinfo>=0.2.4", "nonebot-plugin-userinfo>=0.2.4",
"nonebot-plugin-htmlrender>=0.3.2", "nonebot-plugin-htmlrender>=0.3.3",
"nonebot2>=2.3.2",
"cn2an>=0.5.22"
] ]
requires-python = ">=3.9,<4.0" requires-python = ">=3.9,<4.0"
readme = "README.md" readme = "README.md"
@ -22,8 +23,8 @@ license = {text = "MIT"}
[project.optional-dependencies] [project.optional-dependencies]
dev = [ dev = [
"ruff>=0.4.9", "ruff>=0.5.5",
"setuptools>=70.0.0", "setuptools>=71.1.0",
"twine>=5.1.0", "twine>=5.1.0",
"nb-cli>=0.7.6" "nb-cli>=0.7.6"
] ]

View File

@ -1,3 +0,0 @@
from setuptools import setup, find_packages
setup()