nonebot-plugin-bili-dynamic 0.2.0__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/PKG-INFO +131 -127
  2. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/README.md +5 -2
  3. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/commands.py +760 -760
  4. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/config.py +1 -0
  5. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/database.py +13 -0
  6. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/monitor.py +22 -2
  7. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/qrcode_login.py +261 -261
  8. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/PKG-INFO +131 -127
  9. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/SOURCES.txt +2 -1
  10. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/requires.txt +1 -0
  11. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/pyproject.toml +2 -1
  12. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/setup.cfg +4 -4
  13. nonebot_plugin_bili_dynamic-0.2.2/tests/test_dynamic_expire.py +47 -0
  14. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/LICENSE +0 -0
  15. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/__init__.py +0 -0
  16. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/api.py +0 -0
  17. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/cookie_store.py +0 -0
  18. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/link_parser.py +0 -0
  19. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/models.py +0 -0
  20. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/renderer.py +0 -0
  21. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/translator.py +0 -0
  22. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/dependency_links.txt +0 -0
  23. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/entry_points.txt +0 -0
  24. {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/top_level.txt +0 -0
@@ -1,127 +1,131 @@
1
- Metadata-Version: 2.4
2
- Name: nonebot-plugin-bili-dynamic
3
- Version: 0.2.0
4
- Summary: B站动态/直播推送 NoneBot2 插件(基于 Colter23/mirai 插件移植)
5
- Author: Tony
6
- License: MIT
7
- Project-URL: Homepage, https://github.com/TonyLiangP2010405/nonebot-plugin-bili-dynamic
8
- Project-URL: Repository, https://github.com/TonyLiangP2010405/nonebot-plugin-bili-dynamic
9
- Keywords: nonebot,nonebot2,bilibili,bili,dynamic,live,plugin
10
- Classifier: Development Status :: 4 - Beta
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Operating System :: OS Independent
13
- Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.9
15
- Classifier: Programming Language :: Python :: 3.10
16
- Classifier: Programming Language :: Python :: 3.11
17
- Classifier: Programming Language :: Python :: 3.12
18
- Classifier: Topic :: Communications :: Chat
19
- Requires-Python: >=3.9
20
- Description-Content-Type: text/markdown
21
- License-File: LICENSE
22
- Requires-Dist: nonebot2>=2.2.0
23
- Requires-Dist: nonebot-plugin-apscheduler>=0.5.0
24
- Requires-Dist: nonebot-plugin-localstore>=0.7.0
25
- Requires-Dist: httpx>=0.27.0
26
- Requires-Dist: pillow>=10.0.0
27
- Requires-Dist: skia-python>=87.5
28
- Requires-Dist: qrcode[pil]>=7.4.2
29
- Requires-Dist: tortoise-orm[accel]>=0.21.0
30
- Requires-Dist: aerich>=0.7.0
31
- Requires-Dist: pydantic>=2.0.0
32
- Requires-Dist: typing-extensions>=4.0.0
33
- Provides-Extra: render
34
- Requires-Dist: playwright>=1.40.0; extra == "render"
35
- Dynamic: license-file
36
-
37
- <div align="center">
38
- <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
39
- <br>
40
- <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
41
- </div>
42
-
43
- <div align="center">
44
-
45
- # nonebot-plugin-bili-dynamic
46
-
47
- _✨ B站动态/直播推送插件,支持图片渲染 ✨_
48
-
49
- <a href="./LICENSE">
50
- <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="license">
51
- </a>
52
- <a href="https://pypi.python.org/pypi/nonebot-plugin-bili-dynamic">
53
- <img src="https://img.shields.io/pypi/v/nonebot-plugin-bili-dynamic.svg" alt="pypi">
54
- </a>
55
- <img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
56
-
57
- </div>
58
-
59
- ## 📖 介绍
60
-
61
- B站动态/直播推送插件,基于 Colter23 bilibili-dynamic-mirai-plugin v3 风格渲染图片。
62
-
63
- - 支持动态检测推送(文字/图文/视频/专栏/直播)
64
- - 支持直播开播提醒
65
- - 使用 Skia 引擎渲染卡片图片
66
- - 支持 HSB 渐变背景、半透明卡片、阴影效果
67
-
68
- ## 💿 安装
69
-
70
- <details open>
71
- <summary>使用 nb-cli 安装</summary>
72
- 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
73
-
74
- nb plugin install nonebot-plugin-bili-dynamic
75
-
76
- </details>
77
-
78
- <details>
79
- <summary>使用包管理器安装</summary>
80
- 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
81
-
82
- <details>
83
- <summary>pip</summary>
84
-
85
- pip install nonebot-plugin-bili-dynamic
86
- </details>
87
- <details>
88
- <summary>pdm</summary>
89
-
90
- pdm add nonebot-plugin-bili-dynamic
91
- </details>
92
- <details>
93
- <summary>poetry</summary>
94
-
95
- poetry add nonebot-plugin-bili-dynamic
96
- </details>
97
-
98
- 打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入
99
-
100
- plugins = ["nonebot_plugin_bili_dynamic"]
101
-
102
- </details>
103
-
104
- ## ⚙️ 配置
105
-
106
- 在 nonebot2 项目的`.env`文件中添加下表中的必填配置
107
-
108
- | 配置项 | 必填 | 默认值 | 说明 |
109
- |:-----:|:----:|:----:|:----:|
110
- | bili_account_sessdata | 否 | 空 | B站 SESSDATA Cookie |
111
- | bili_account_bili_jct | 否 | 空 | B站 bili_jct Cookie |
112
-
113
- ## 🎉 使用
114
- ### 指令表
115
- | 指令 | 权限 | 需要@ | 范围 | 说明 |
116
- |:-----:|:----:|:----:|:----:|:----:|
117
- | /bi add <UID> | 群员 | 否 | 群/私聊 | 订阅UP主 |
118
- | /bi del <UID> | 群员 | 否 | 群/私聊 | 取消订阅 |
119
- | /bi list | 群员 | 否 | 群/私聊 | 查看订阅列表 |
120
- | /bi live <UID> | 群员 | 否 | 群/私聊 | 查询直播状态 |
121
- | /bi new <UID> [n] | 群员 | 否 | 群/私聊 | 查看最新n条动态 |
122
- | /bi login | 群员 | 否 | 群/私聊 | B站扫码登录 |
123
- | /bi color <HEX> | 群员 | 否 | 群/私聊 | 设置主题色 |
124
-
125
- ## 📸 效果图
126
-
127
- (TODO: 添加渲染效果图)
1
+ Metadata-Version: 2.4
2
+ Name: nonebot-plugin-bili-dynamic
3
+ Version: 0.2.2
4
+ Summary: B站动态/直播推送 NoneBot2 插件(基于 Colter23/mirai 插件移植)
5
+ Author: Tony
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/TonyLiangP2010405/nonebot-plugin-bili-dynamic
8
+ Project-URL: Repository, https://github.com/TonyLiangP2010405/nonebot-plugin-bili-dynamic
9
+ Keywords: nonebot,nonebot2,bilibili,bili,dynamic,live,plugin
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Communications :: Chat
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: nonebot2>=2.2.0
23
+ Requires-Dist: nonebot-adapter-onebot>=2.4.0
24
+ Requires-Dist: nonebot-plugin-apscheduler>=0.5.0
25
+ Requires-Dist: nonebot-plugin-localstore>=0.7.0
26
+ Requires-Dist: httpx>=0.27.0
27
+ Requires-Dist: pillow>=10.0.0
28
+ Requires-Dist: skia-python>=87.5
29
+ Requires-Dist: qrcode[pil]>=7.4.2
30
+ Requires-Dist: tortoise-orm[accel]>=0.21.0
31
+ Requires-Dist: aerich>=0.7.0
32
+ Requires-Dist: pydantic>=2.0.0
33
+ Requires-Dist: typing-extensions>=4.0.0
34
+ Provides-Extra: render
35
+ Requires-Dist: playwright>=1.40.0; extra == "render"
36
+ Dynamic: license-file
37
+
38
+ <div align="center">
39
+ <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
40
+ <br>
41
+ <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
42
+ </div>
43
+
44
+ <div align="center">
45
+
46
+ # nonebot-plugin-bili-dynamic
47
+
48
+ _✨ B站动态/直播推送插件,支持图片渲染 ✨_
49
+
50
+ <a href="./LICENSE">
51
+ <img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="license">
52
+ </a>
53
+ <a href="https://pypi.python.org/pypi/nonebot-plugin-bili-dynamic">
54
+ <img src="https://img.shields.io/pypi/v/nonebot-plugin-bili-dynamic.svg" alt="pypi">
55
+ </a>
56
+ <img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
57
+
58
+ </div>
59
+
60
+ ## 📖 介绍
61
+
62
+ B站动态/直播推送插件,基于 Colter23 bilibili-dynamic-mirai-plugin v3 风格渲染图片。
63
+
64
+ - 支持动态检测推送(文字/图文/视频/专栏/直播)
65
+ - 支持直播开播提醒
66
+ - 使用 Skia 引擎渲染卡片图片
67
+ - 支持 HSB 渐变背景、半透明卡片、阴影效果
68
+
69
+ ## 💿 安装
70
+
71
+ <details open>
72
+ <summary>使用 nb-cli 安装</summary>
73
+ 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
74
+
75
+ nb plugin install nonebot-plugin-bili-dynamic
76
+
77
+ </details>
78
+
79
+ <details>
80
+ <summary>使用包管理器安装</summary>
81
+ 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
82
+
83
+ <details>
84
+ <summary>pip</summary>
85
+
86
+ pip install nonebot-plugin-bili-dynamic
87
+ </details>
88
+ <details>
89
+ <summary>pdm</summary>
90
+
91
+ pdm add nonebot-plugin-bili-dynamic
92
+ </details>
93
+ <details>
94
+ <summary>poetry</summary>
95
+
96
+ poetry add nonebot-plugin-bili-dynamic
97
+ </details>
98
+
99
+ 打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入
100
+
101
+ plugins = ["nonebot_plugin_bili_dynamic"]
102
+
103
+ </details>
104
+
105
+ ## ⚙️ 配置
106
+
107
+ 在 nonebot2 项目的`.env`文件中添加下表中的必填配置
108
+
109
+ | 配置项 | 必填 | 默认值 | 说明 |
110
+ |:-----:|:----:|:----:|:----:|
111
+ | bili_account__sessdata | 否 | 空 | B站 SESSDATA Cookie |
112
+ | bili_account__bili_jct | 否 | 空 | B站 bili_jct Cookie |
113
+ | push__max_age_hours | 否 | 24 | 动态推送最大时效(小时),超过的仅记录不推送,0为不限制 |
114
+
115
+ > 注意:嵌套配置项需使用双下划线 `__` 连接,如 `push__max_age_hours=48`。
116
+
117
+ ## 🎉 使用
118
+ ### 指令表
119
+ | 指令 | 权限 | 需要@ | 范围 | 说明 |
120
+ |:-----:|:----:|:----:|:----:|:----:|
121
+ | /bi add <UID> | 群员 | 否 | 群/私聊 | 订阅UP主 |
122
+ | /bi del <UID> | 群员 | 否 | 群/私聊 | 取消订阅 |
123
+ | /bi list | 群员 | 否 | 群/私聊 | 查看订阅列表 |
124
+ | /bi live <UID> | 群员 | 否 | 群/私聊 | 查询直播状态 |
125
+ | /bi new <UID> [n] | 群员 | 否 | 群/私聊 | 查看最新n条动态 |
126
+ | /bi login | 群员 | 否 | 群/私聊 | B站扫码登录 |
127
+ | /bi color <HEX> | 群员 | 否 | 群/私聊 | 设置主题色 |
128
+
129
+ ## 📸 效果图
130
+
131
+ (TODO: 添加渲染效果图)
@@ -71,8 +71,11 @@ B站动态/直播推送插件,基于 Colter23 bilibili-dynamic-mirai-plugin v3
71
71
 
72
72
  | 配置项 | 必填 | 默认值 | 说明 |
73
73
  |:-----:|:----:|:----:|:----:|
74
- | bili_account_sessdata | 否 | 空 | B站 SESSDATA Cookie |
75
- | bili_account_bili_jct | 否 | 空 | B站 bili_jct Cookie |
74
+ | bili_account__sessdata | 否 | 空 | B站 SESSDATA Cookie |
75
+ | bili_account__bili_jct | 否 | 空 | B站 bili_jct Cookie |
76
+ | push__max_age_hours | 否 | 24 | 动态推送最大时效(小时),超过的仅记录不推送,0为不限制 |
77
+
78
+ > 注意:嵌套配置项需使用双下划线 `__` 连接,如 `push__max_age_hours=48`。
76
79
 
77
80
  ## 🎉 使用
78
81
  ### 指令表