xtquant-share 1.2.4__tar.gz → 1.2.6__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.
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/PKG-INFO +1 -1
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/pyproject.toml +2 -4
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xqshare/server.py +18 -1
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xtquant_share.egg-info/PKG-INFO +1 -1
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xtquant_share.egg-info/entry_points.txt +1 -3
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/LICENSE +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/README.md +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/setup.cfg +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/tests/test_auth.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/tests/test_client.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/tests/test_client_permission.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/tests/test_integration.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/tests/test_server.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/tests/test_server_permission.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/tests/test_tools_common.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xqshare/__init__.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xqshare/auth.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xqshare/client.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xqshare/tools/__init__.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xqshare/tools/common.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xqshare/tools/xtdata.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xqshare/tools/xttrader.py +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xtquant_share.egg-info/SOURCES.txt +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xtquant_share.egg-info/dependency_links.txt +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xtquant_share.egg-info/requires.txt +0 -0
- {xtquant_share-1.2.4 → xtquant_share-1.2.6}/xtquant_share.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "xtquant-share"
|
|
7
|
-
version = "1.2.
|
|
7
|
+
version = "1.2.6"
|
|
8
8
|
description = "Xtreme Quant Share - eXtreme transparent sharing proxy for XtQuant on macOS/Linux"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "GPL-3.0-only"
|
|
@@ -52,12 +52,10 @@ dev = [
|
|
|
52
52
|
]
|
|
53
53
|
|
|
54
54
|
[project.scripts]
|
|
55
|
+
xqshare-server = "xqshare.server:main"
|
|
55
56
|
xtdata = "xqshare.tools.xtdata:main"
|
|
56
57
|
xttrader = "xqshare.tools.xttrader:main"
|
|
57
58
|
|
|
58
|
-
[project.gui-scripts]
|
|
59
|
-
xqshare-server = "xqshare.server:main"
|
|
60
|
-
|
|
61
59
|
[project.urls]
|
|
62
60
|
Homepage = "https://gitee.com/jdragonhu/xqshare"
|
|
63
61
|
Documentation = "https://gitee.com/jdragonhu/xqshare#readme"
|
|
@@ -908,7 +908,13 @@ def _cmd_background(args):
|
|
|
908
908
|
log_file = _get_log_file()
|
|
909
909
|
|
|
910
910
|
# 构建启动命令(透传所有参数)
|
|
911
|
-
|
|
911
|
+
# Windows 上后台子进程用 pythonw.exe,避免弹出控制台窗口
|
|
912
|
+
if sys.platform == "win32":
|
|
913
|
+
pythonw = os.path.join(os.path.dirname(sys.executable), "pythonw.exe")
|
|
914
|
+
bg_executable = pythonw if os.path.exists(pythonw) else sys.executable
|
|
915
|
+
else:
|
|
916
|
+
bg_executable = sys.executable
|
|
917
|
+
cmd = [bg_executable, "-m", "xqshare.server", "fg"]
|
|
912
918
|
if args.host != "0.0.0.0":
|
|
913
919
|
cmd += ["--host", args.host]
|
|
914
920
|
if args.port:
|
|
@@ -1074,8 +1080,19 @@ def _default_env_file():
|
|
|
1074
1080
|
|
|
1075
1081
|
def main():
|
|
1076
1082
|
"""命令行入口函数"""
|
|
1083
|
+
import sys
|
|
1077
1084
|
import argparse
|
|
1078
1085
|
|
|
1086
|
+
# Windows 终端默认 GBK,统一切换 stdout/stderr 为 UTF-8,避免中文乱码
|
|
1087
|
+
if sys.platform == "win32":
|
|
1088
|
+
try:
|
|
1089
|
+
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
|
|
1090
|
+
sys.stderr.reconfigure(encoding="utf-8", errors="replace")
|
|
1091
|
+
except AttributeError:
|
|
1092
|
+
import io
|
|
1093
|
+
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
|
|
1094
|
+
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding="utf-8", errors="replace")
|
|
1095
|
+
|
|
1079
1096
|
parser = argparse.ArgumentParser(
|
|
1080
1097
|
description="XtQuant Share (xqshare) 服务",
|
|
1081
1098
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
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
|