ErisPulse 1.0.7__tar.gz → 1.0.8__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.
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse/__main__.py +7 -3
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse.egg-info/PKG-INFO +4 -1
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse.egg-info/SOURCES.txt +1 -0
- erispulse-1.0.8/ErisPulse.egg-info/entry_points.txt +3 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/PKG-INFO +4 -1
- {erispulse-1.0.7 → erispulse-1.0.8}/README.md +4 -1
- {erispulse-1.0.7 → erispulse-1.0.8}/setup.py +9 -3
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse/__init__.py +0 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse/envManager.py +0 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse/errors.py +0 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse/logger.py +0 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse/origin.py +0 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse/sdk.py +0 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse/util.py +0 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse.egg-info/dependency_links.txt +0 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse.egg-info/requires.txt +0 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/ErisPulse.egg-info/top_level.txt +0 -0
- {erispulse-1.0.7 → erispulse-1.0.8}/setup.cfg +0 -0
|
@@ -11,6 +11,9 @@ from rich.console import Console
|
|
|
11
11
|
from rich.table import Table
|
|
12
12
|
from rich.panel import Panel
|
|
13
13
|
from rich.prompt import Prompt, Confirm
|
|
14
|
+
from prompt_toolkit import PromptSession
|
|
15
|
+
from prompt_toolkit.completion import WordCompleter
|
|
16
|
+
from prompt_toolkit.formatted_text import HTML
|
|
14
17
|
from .envManager import env
|
|
15
18
|
from .origin import origin_manager
|
|
16
19
|
|
|
@@ -383,10 +386,11 @@ def list_modules(module_name=None):
|
|
|
383
386
|
def main():
|
|
384
387
|
parser = argparse.ArgumentParser(
|
|
385
388
|
description="ErisPulse 命令行工具",
|
|
386
|
-
prog="
|
|
389
|
+
prog="ep"
|
|
387
390
|
)
|
|
388
391
|
subparsers = parser.add_subparsers(dest='command', help='可用命令')
|
|
389
392
|
|
|
393
|
+
# 添加子命令解析器(与原代码一致)
|
|
390
394
|
enable_parser = subparsers.add_parser('enable', help='启用指定模块')
|
|
391
395
|
enable_parser.add_argument('module_name', type=str, help='要启用的模块名称')
|
|
392
396
|
enable_parser.add_argument('--init', action='store_true', help='在启用模块前初始化模块数据库')
|
|
@@ -424,12 +428,12 @@ def main():
|
|
|
424
428
|
|
|
425
429
|
args = parser.parse_args()
|
|
426
430
|
|
|
431
|
+
# 初始化模块数据库
|
|
427
432
|
if hasattr(args, 'init') and args.init:
|
|
428
433
|
console.print("[yellow]正在初始化模块列表...[/yellow]")
|
|
429
434
|
from . import init as init_module
|
|
430
435
|
init_module()
|
|
431
436
|
|
|
432
|
-
# 全部指令:enable, disable, list, uninstall, install, update, origin(add, list, del)
|
|
433
437
|
if args.command == 'enable':
|
|
434
438
|
enable_module(args.module_name)
|
|
435
439
|
elif args.command == 'disable':
|
|
@@ -461,4 +465,4 @@ def main():
|
|
|
461
465
|
parser.print_help()
|
|
462
466
|
|
|
463
467
|
if __name__ == "__main__":
|
|
464
|
-
main()
|
|
468
|
+
main()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ErisPulse
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.8
|
|
4
4
|
Summary: ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。
|
|
5
5
|
Home-page: https://github.com/wsu2059q/ErisPulse
|
|
6
6
|
Author: 艾莉丝·格雷拉特(WSu2059)
|
|
@@ -56,3 +56,6 @@ ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用
|
|
|
56
56
|
|
|
57
57
|
## 1.0.7
|
|
58
58
|
修复诸多小问题
|
|
59
|
+
|
|
60
|
+
## 1.0.8
|
|
61
|
+
现在包会被添加至系统环境,用户可以直接通过命令行'ep'或'epsdk'命令调用cli
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ErisPulse
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.8
|
|
4
4
|
Summary: ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。
|
|
5
5
|
Home-page: https://github.com/wsu2059q/ErisPulse
|
|
6
6
|
Author: 艾莉丝·格雷拉特(WSu2059)
|
|
@@ -56,3 +56,6 @@ ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用
|
|
|
56
56
|
|
|
57
57
|
## 1.0.7
|
|
58
58
|
修复诸多小问题
|
|
59
|
+
|
|
60
|
+
## 1.0.8
|
|
61
|
+
现在包会被添加至系统环境,用户可以直接通过命令行'ep'或'epsdk'命令调用cli
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='ErisPulse',
|
|
5
|
-
version='1.0.
|
|
5
|
+
version='1.0.8',
|
|
6
6
|
author='艾莉丝·格雷拉特(WSu2059)',
|
|
7
7
|
author_email='wsu2059@qq.com',
|
|
8
8
|
maintainer='runoneall',
|
|
@@ -25,9 +25,15 @@ setup(
|
|
|
25
25
|
'Programming Language :: Python :: 3.10',
|
|
26
26
|
'Programming Language :: Python :: 3.11',
|
|
27
27
|
'Programming Language :: Python :: 3.12',
|
|
28
|
-
'Programming Language :: Python :: 3 :: Only',
|
|
28
|
+
'Programming Language :: Python :: 3 :: Only',
|
|
29
29
|
'Operating System :: OS Independent',
|
|
30
30
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
31
31
|
],
|
|
32
|
+
entry_points={
|
|
33
|
+
"console_scripts": [
|
|
34
|
+
"epsdk=ErisPulse.__main__:main",
|
|
35
|
+
"ep=ErisPulse.__main__:main"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
32
38
|
python_requires='>=3.7',
|
|
33
|
-
)
|
|
39
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|