pycoze 0.1.8__tar.gz → 0.1.10__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.
- {pycoze-0.1.8 → pycoze-0.1.10}/PKG-INFO +3 -3
- {pycoze-0.1.8 → pycoze-0.1.10}/README.md +14 -14
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/ui/ui_def.py +3 -1
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/utils/arg.py +25 -15
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze.egg-info/PKG-INFO +3 -3
- {pycoze-0.1.8 → pycoze-0.1.10}/setup.py +19 -19
- {pycoze-0.1.8 → pycoze-0.1.10}/LICENSE +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/__init__.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/__init__.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/agent/__init__.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/agent/agent.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/agent/agent_types/__init__.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/agent/agent_types/react_agent.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/agent/agent_types/react_prompt.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/agent/assistant.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/agent/chat.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/base.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/bot/bot.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/module.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/ui/__init__.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/ui/base.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/ui/color.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/ui/typ.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze/utils/__init__.py +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze.egg-info/SOURCES.txt +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze.egg-info/dependency_links.txt +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/pycoze.egg-info/top_level.txt +0 -0
- {pycoze-0.1.8 → pycoze-0.1.10}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pycoze
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.10
|
4
4
|
Summary: Package for pycoze only!
|
5
5
|
Author: Yuan Jie Xiong
|
6
6
|
Author-email: aiqqqqqqq@qq.com
|
@@ -20,8 +20,8 @@ Package for pycoze only!
|
|
20
20
|
<!-- For author only -->
|
21
21
|
<!-- pip install twine -->
|
22
22
|
|
23
|
-
<!--
|
24
|
-
<!-- 修改src\renderer\layout\init\const.ts中的库版本要求 -->
|
23
|
+
<!-- 递增setup.py的版本 -->
|
25
24
|
<!-- 删除build和dist和pycoze.egg-info文件夹 -->
|
26
25
|
<!-- python setup.py sdist bdist_wheel -->
|
27
26
|
<!-- twine upload dist/* -->
|
27
|
+
<!-- 修改src\renderer\layout\init\const.ts中的库版本要求 -->
|
@@ -1,14 +1,14 @@
|
|
1
|
-
# PYCOZE
|
2
|
-
|
3
|
-
Package for pycoze only!
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<!-- For author only -->
|
8
|
-
<!-- pip install twine -->
|
9
|
-
|
10
|
-
<!--
|
11
|
-
<!--
|
12
|
-
<!--
|
13
|
-
<!--
|
14
|
-
<!--
|
1
|
+
# PYCOZE
|
2
|
+
|
3
|
+
Package for pycoze only!
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
<!-- For author only -->
|
8
|
+
<!-- pip install twine -->
|
9
|
+
|
10
|
+
<!-- 递增setup.py的版本 -->
|
11
|
+
<!-- 删除build和dist和pycoze.egg-info文件夹 -->
|
12
|
+
<!-- python setup.py sdist bdist_wheel -->
|
13
|
+
<!-- twine upload dist/* -->
|
14
|
+
<!-- 修改src\renderer\layout\init\const.ts中的库版本要求 -->
|
@@ -87,7 +87,9 @@ def folder(name, default: Union[str, List[str]], is_multiple: bool, tip="", hide
|
|
87
87
|
|
88
88
|
|
89
89
|
def folder_tree(name, root="", default: List[str] = None, tip="", hide_if="", style="", cls="") -> dict:
|
90
|
-
|
90
|
+
if default is None:
|
91
|
+
default = []
|
92
|
+
return useDefault(name, default)
|
91
93
|
|
92
94
|
|
93
95
|
def image(name, default: Union[str, List[str]], is_multiple: bool=False, tip="", hide_if="", style="", cls="") -> str:
|
@@ -1,15 +1,25 @@
|
|
1
|
-
import argparse
|
2
|
-
import sys
|
3
|
-
|
4
|
-
|
5
|
-
def read_arg(param, is_path=False):
|
6
|
-
args = sys.argv[1:]
|
7
|
-
parser = argparse.ArgumentParser()
|
8
|
-
parser.add_argument(param, nargs='?', help=f'Parameter {param}')
|
9
|
-
args = parser.parse_known_args(args)[0]
|
10
|
-
value = getattr(args, param.lstrip('-'))
|
11
|
-
# 如果是路径并且有引号,去掉引号
|
12
|
-
if is_path and value and value.startswith('"') and value.endswith('"'):
|
13
|
-
value = value[1:-1]
|
14
|
-
|
15
|
-
return value
|
1
|
+
import argparse
|
2
|
+
import sys
|
3
|
+
import json
|
4
|
+
|
5
|
+
def read_arg(param, is_path=False):
|
6
|
+
args = sys.argv[1:]
|
7
|
+
parser = argparse.ArgumentParser()
|
8
|
+
parser.add_argument(param, nargs='?', help=f'Parameter {param}')
|
9
|
+
args = parser.parse_known_args(args)[0]
|
10
|
+
value = getattr(args, param.lstrip('-'))
|
11
|
+
# 如果是路径并且有引号,去掉引号
|
12
|
+
if is_path and value and value.startswith('"') and value.endswith('"'):
|
13
|
+
value = value[1:-1]
|
14
|
+
|
15
|
+
return value
|
16
|
+
|
17
|
+
def read_params():
|
18
|
+
params_file = read_arg('params_file', True)
|
19
|
+
params = None
|
20
|
+
try:
|
21
|
+
with open(params_file, 'r', encoding='utf-8') as f:
|
22
|
+
params = json.load(f)
|
23
|
+
except Exception as e:
|
24
|
+
print(e)
|
25
|
+
return params
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pycoze
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.10
|
4
4
|
Summary: Package for pycoze only!
|
5
5
|
Author: Yuan Jie Xiong
|
6
6
|
Author-email: aiqqqqqqq@qq.com
|
@@ -20,8 +20,8 @@ Package for pycoze only!
|
|
20
20
|
<!-- For author only -->
|
21
21
|
<!-- pip install twine -->
|
22
22
|
|
23
|
-
<!--
|
24
|
-
<!-- 修改src\renderer\layout\init\const.ts中的库版本要求 -->
|
23
|
+
<!-- 递增setup.py的版本 -->
|
25
24
|
<!-- 删除build和dist和pycoze.egg-info文件夹 -->
|
26
25
|
<!-- python setup.py sdist bdist_wheel -->
|
27
26
|
<!-- twine upload dist/* -->
|
27
|
+
<!-- 修改src\renderer\layout\init\const.ts中的库版本要求 -->
|
@@ -1,19 +1,19 @@
|
|
1
|
-
from setuptools import setup, find_packages
|
2
|
-
|
3
|
-
setup(
|
4
|
-
name="pycoze",
|
5
|
-
version="0.1.
|
6
|
-
packages=find_packages(),
|
7
|
-
install_requires=[],
|
8
|
-
author="Yuan Jie Xiong",
|
9
|
-
author_email="aiqqqqqqq@qq.com",
|
10
|
-
description="Package for pycoze only!",
|
11
|
-
long_description=open('README.md', encoding="utf-8").read(),
|
12
|
-
long_description_content_type='text/markdown',
|
13
|
-
classifiers=[
|
14
|
-
"Programming Language :: Python :: 3",
|
15
|
-
"License :: OSI Approved :: MIT License",
|
16
|
-
"Operating System :: OS Independent",
|
17
|
-
],
|
18
|
-
python_requires='>=3.6',
|
19
|
-
)
|
1
|
+
from setuptools import setup, find_packages
|
2
|
+
|
3
|
+
setup(
|
4
|
+
name="pycoze",
|
5
|
+
version="0.1.10",
|
6
|
+
packages=find_packages(),
|
7
|
+
install_requires=[],
|
8
|
+
author="Yuan Jie Xiong",
|
9
|
+
author_email="aiqqqqqqq@qq.com",
|
10
|
+
description="Package for pycoze only!",
|
11
|
+
long_description=open('README.md', encoding="utf-8").read(),
|
12
|
+
long_description_content_type='text/markdown',
|
13
|
+
classifiers=[
|
14
|
+
"Programming Language :: Python :: 3",
|
15
|
+
"License :: OSI Approved :: MIT License",
|
16
|
+
"Operating System :: OS Independent",
|
17
|
+
],
|
18
|
+
python_requires='>=3.6',
|
19
|
+
)
|
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
|
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
|
File without changes
|