ErisPulse 1.2.2__py3-none-any.whl → 1.2.4__py3-none-any.whl

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.
ErisPulse/__init__.py CHANGED
@@ -58,6 +58,7 @@ sdk = types.SimpleNamespace()
58
58
  BaseModules = {
59
59
  "util" : util,
60
60
  "logger" : logger,
61
+ "raiserr" : raiserr,
61
62
  "env" : env,
62
63
  "mods" : mods,
63
64
  "adapter" : adapter,
ErisPulse/__main__.py CHANGED
@@ -11,6 +11,7 @@
11
11
 
12
12
  ## 主要命令
13
13
  ### 模块管理:
14
+ init: 初始化SDK
14
15
  install: 安装模块
15
16
  uninstall: 卸载模块
16
17
  enable: 启用模块
@@ -599,6 +600,20 @@ def install_local_module(module_path, force=False):
599
600
  shellprint.panel(f"复制模块文件失败: {e}", "错误", "error")
600
601
  return False
601
602
 
603
+ # 安装依赖
604
+ dependencies = module.moduleInfo.get('dependencies', {})
605
+ for dep in dependencies.get('requires', []):
606
+ print(f"\n{Shell_Printer.BOLD}处理依赖: {dep}{Shell_Printer.RESET}")
607
+ install_module(dep)
608
+
609
+ # 安装pip依赖
610
+ pip_dependencies = dependencies.get('pip', [])
611
+ if pip_dependencies:
612
+ print(f"{Shell_Printer.YELLOW}模块 {module_name} 需要以下pip依赖: {', '.join(pip_dependencies)}{Shell_Printer.RESET}")
613
+ if not install_pip_dependencies(pip_dependencies):
614
+ print(f"{Shell_Printer.RED}无法安装模块 {module_name} 的pip依赖,安装终止{Shell_Printer.RESET}")
615
+ return False
616
+
602
617
  # 注册模块信息
603
618
  mods.set_module(module_name, {
604
619
  'status': True,
@@ -1,12 +1,15 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ErisPulse
3
- Version: 1.2.2
3
+ Version: 1.2.4
4
4
  Summary: ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。
5
5
  Author-email: "艾莉丝·格雷拉特(WSu2059)" <wsu2059@qq.com>, runoneall <runoobsteve@gmail.com>
6
6
  License: MIT License
7
7
 
8
8
  Copyright (c) 2025 ErisPulse
9
9
 
10
+ Portions of this software are based on https://github.com/FramerOrg/Framer
11
+ (Copyright (c) 2025 runoneall).
12
+
10
13
  Permission is hereby granted, free of charge, to any person obtaining a copy
11
14
  of this software and associated documentation files (the "Software"), to deal
12
15
  in the Software without restriction, including without limitation the rights
@@ -24,6 +27,10 @@ License: MIT License
24
27
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
28
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
29
  SOFTWARE.
30
+
31
+ The documentation portion of this project references content from https://codeberg.org/ybr/yhwiki,
32
+ licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0
33
+ International License (CC BY-NC-ND 4.0).
27
34
  License-File: LICENSE
28
35
  Classifier: Development Status :: 5 - Production/Stable
29
36
  Classifier: Intended Audience :: Developers
@@ -38,6 +45,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
38
45
  Requires-Python: >=3.10
39
46
  Requires-Dist: aiohttp
40
47
  Requires-Dist: importlib>=1.0.4
48
+ Requires-Dist: pip
41
49
  Requires-Dist: watchdog
42
50
  Description-Content-Type: text/markdown
43
51
 
@@ -0,0 +1,13 @@
1
+ ErisPulse/__init__.py,sha256=FSsMOuiXqMKDRuwX-V8doXorPpfZybHFV0KoSTwOQm8,11007
2
+ ErisPulse/__main__.py,sha256=lFhd9Dn93G6z4ZjZJMEZDIBndy9J3msjdbzijDFrQfY,54056
3
+ ErisPulse/adapter.py,sha256=rrBdPSHvOzzN0VJCD8lThygM9I-_iQIeZ5iMgqCJ34w,13977
4
+ ErisPulse/db.py,sha256=LSIw6MpNtZ-P3deARLj8Umo06EBrwyuzhF4Nj1Lkbyc,23043
5
+ ErisPulse/logger.py,sha256=UfQBF9fLx4WKe_se_lB5jNvaeTDtpv5PKT9x49QMmyw,8152
6
+ ErisPulse/mods.py,sha256=1vEFiuL61Ouu7cocyysev5k2lGqcJ_hJGZqXNNbhJqg,9936
7
+ ErisPulse/raiserr.py,sha256=QeKffL8Gm4Vl1DDMFQiKluiKCx0mxgN2Jj98WP4tUHo,3958
8
+ ErisPulse/util.py,sha256=tmmZA4Ef5ElB01KZg2fTZLrkZOJbORjnkAd8sXj7xqw,4335
9
+ erispulse-1.2.4.dist-info/METADATA,sha256=S3C1tvm2P5Uws5RbF4rvzPJoIBR_KlzSgLoWKkgaIV8,6776
10
+ erispulse-1.2.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ erispulse-1.2.4.dist-info/entry_points.txt,sha256=y8ppdsQhk-azC7_ikQgRr4rITSZ4VC4crVKtzHh4TBY,146
12
+ erispulse-1.2.4.dist-info/licenses/LICENSE,sha256=qAe8UGD2uYa8mUPqffBkdIS_4Q5d66FlhYuo3eC_Dq8,1396
13
+ erispulse-1.2.4.dist-info/RECORD,,
@@ -2,6 +2,9 @@ MIT License
2
2
 
3
3
  Copyright (c) 2025 ErisPulse
4
4
 
5
+ Portions of this software are based on https://github.com/FramerOrg/Framer
6
+ (Copyright (c) 2025 runoneall).
7
+
5
8
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
9
  of this software and associated documentation files (the "Software"), to deal
7
10
  in the Software without restriction, including without limitation the rights
@@ -19,3 +22,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
22
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
23
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
24
  SOFTWARE.
25
+
26
+ The documentation portion of this project references content from https://codeberg.org/ybr/yhwiki,
27
+ licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0
28
+ International License (CC BY-NC-ND 4.0).
@@ -1,13 +0,0 @@
1
- ErisPulse/__init__.py,sha256=fFHqjboYUJGRiqjQlowqaBMj5E6qdfpbVWUzA06IMCY,10976
2
- ErisPulse/__main__.py,sha256=FDWhTASyJwGvYDnM5aJ8wgNDViT7aQZFqyruHeJCnjk,53333
3
- ErisPulse/adapter.py,sha256=rrBdPSHvOzzN0VJCD8lThygM9I-_iQIeZ5iMgqCJ34w,13977
4
- ErisPulse/db.py,sha256=LSIw6MpNtZ-P3deARLj8Umo06EBrwyuzhF4Nj1Lkbyc,23043
5
- ErisPulse/logger.py,sha256=UfQBF9fLx4WKe_se_lB5jNvaeTDtpv5PKT9x49QMmyw,8152
6
- ErisPulse/mods.py,sha256=1vEFiuL61Ouu7cocyysev5k2lGqcJ_hJGZqXNNbhJqg,9936
7
- ErisPulse/raiserr.py,sha256=QeKffL8Gm4Vl1DDMFQiKluiKCx0mxgN2Jj98WP4tUHo,3958
8
- ErisPulse/util.py,sha256=tmmZA4Ef5ElB01KZg2fTZLrkZOJbORjnkAd8sXj7xqw,4335
9
- erispulse-1.2.2.dist-info/METADATA,sha256=V8DI1Tg5OL-Dv6GpZB_Wp31ZPtjWRW8azDX0NvaCQAI,6370
10
- erispulse-1.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
- erispulse-1.2.2.dist-info/entry_points.txt,sha256=y8ppdsQhk-azC7_ikQgRr4rITSZ4VC4crVKtzHh4TBY,146
12
- erispulse-1.2.2.dist-info/licenses/LICENSE,sha256=plj4EYVfKAzc0ZWoC5T2vsQ86u0yLpu17NdAPeIcgVo,1066
13
- erispulse-1.2.2.dist-info/RECORD,,