cnhkmcp 1.3.7__py3-none-any.whl → 1.3.8__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.
cnhkmcp/__init__.py CHANGED
@@ -50,7 +50,7 @@ from .untracked.forum_functions import (
50
50
  read_full_forum_post
51
51
  )
52
52
 
53
- __version__ = "1.3.7"
53
+ __version__ = "1.3.8"
54
54
  __author__ = "CNHK"
55
55
  __email__ = "cnhk@example.com"
56
56
 
@@ -1,4 +1,36 @@
1
- # autosimulator.py
1
+ import sys
2
+ import subprocess
3
+ # --- Dependency Check & Auto-Install ---
4
+ required_imports = [
5
+ ("getpass", None),
6
+ ("json", None),
7
+ ("logging", None),
8
+ ("os", None),
9
+ ("threading", None),
10
+ ("time", None),
11
+ ("functools", None),
12
+ ("multiprocessing", None),
13
+ ("pathlib", None),
14
+ ("typing", None),
15
+ ("urllib.parse", None),
16
+ ("pandas", "pandas"),
17
+ ("requests", "requests"),
18
+ ("tqdm", "tqdm"),
19
+ ("pandas.io.formats.style", "pandas"),
20
+ ]
21
+ for mod, pipname in required_imports:
22
+ try:
23
+ if "." in mod:
24
+ __import__(mod.split(".")[0])
25
+ else:
26
+ __import__(mod)
27
+ except ImportError:
28
+ if pipname:
29
+ print(f"Installing missing package: {pipname}")
30
+ subprocess.check_call([sys.executable, "-m", "pip", "install", pipname])
31
+ else:
32
+ print(f"Module {mod} is a built-in or not installable via pip.")
33
+ # --- Script Description ---
2
34
  """
3
35
  Autosimulator for WorldQuant BRAIN platform
4
36
  - Timestamped logger
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cnhkmcp
3
- Version: 1.3.7
3
+ Version: 1.3.8
4
4
  Summary: A comprehensive Model Context Protocol (MCP) server for quantitative trading platform integration
5
5
  Home-page: https://github.com/cnhk/cnhkmcp
6
6
  Author: CNHK
@@ -1,4 +1,4 @@
1
- cnhkmcp/__init__.py,sha256=hNtkFpOxBxqO9FP93hK75c0l9ca8C23qAyLoTVzqrVo,2758
1
+ cnhkmcp/__init__.py,sha256=j3VqdQWZxVCHpyBwQO2GvTSX0mAhDTEb_ZB0XperVXI,2758
2
2
  cnhkmcp/untracked/arXiv_API_Tool_Manual.md,sha256=I3hvI5mpmIjBuWptufoVSWFnuhyUc67oCGHEuR0p_xs,13552
3
3
  cnhkmcp/untracked/arxiv_api.py,sha256=-E-Ub9K-DXAYaCjrbobyfQ9H97gaZBc7pL6xPEyVHec,9020
4
4
  cnhkmcp/untracked/forum_functions.py,sha256=QW-CplAsqDkw-Wcwq-1tuZBq48dEO-vXZ8xw7X65EuE,42303
@@ -39,7 +39,7 @@ cnhkmcp/untracked/APP/blueprints/__pycache__/unified_tools.cpython-313.pyc,sha25
39
39
  cnhkmcp/untracked/APP/blueprints/__pycache__/wqb_simulator.cpython-313.pyc,sha256=xB8mXGdgRXD57ueeN329BxK7-2EV8C__w1Du6zPptm8,23988
40
40
  cnhkmcp/untracked/APP/custom_templates/templates.json,sha256=0SN7Lms7BF1S4OtVoazE3JZ0tztqyZ0XXAkYBvRboBY,181606
41
41
  cnhkmcp/untracked/APP/hkSimulator/ace_lib.py,sha256=v5i16oVc7o2ndacm7GPnq_RBc4D1NHgc8fQA2F_Y1oA,52669
42
- cnhkmcp/untracked/APP/hkSimulator/autosimulator.py,sha256=xs5nUdhQomMpmXh8rX6KWeRmnQABqzu8XRUg7W-pFqg,15067
42
+ cnhkmcp/untracked/APP/hkSimulator/autosimulator.py,sha256=KMzTOuLboRGMGQaLNvA9JJ1SZ0vk2W_G-uyIF5x10Fc,16016
43
43
  cnhkmcp/untracked/APP/hkSimulator/helpful_functions.py,sha256=VS-rh4T2CMWLFK4clI7-DYsnqwO5dx5L-rgL8U8BmT8,6622
44
44
  cnhkmcp/untracked/APP/simulator/alpha_submitter.py,sha256=mp7AuMXYiqXN2ucJEQf1gJpHkPWDV7lHMQAitVagpbA,14220
45
45
  cnhkmcp/untracked/APP/simulator/simulator_wqb.py,sha256=57Srj9XQC3gyihRX7IYOUS3yu-On0CdjLMixN5DfI9M,23186
@@ -59,9 +59,9 @@ cnhkmcp/untracked/APP/templates/index.html,sha256=Etdw0uMy479quri-CtwhwfKgixK0Ga
59
59
  cnhkmcp/untracked/APP/templates/inspiration_house.html,sha256=CZMHj_ild-mUDRvNc5sELLNN6WDTQO82hKdOA8kf3Tg,26389
60
60
  cnhkmcp/untracked/APP/templates/paper_analysis.html,sha256=7HgltBpZtmZCYCF7JU4wU9F5NMxUKyCXg7bCYCRfQDs,4139
61
61
  cnhkmcp/untracked/APP/templates/simulator.html,sha256=Y3-w-mZyvRiOdBiFe705CqBPAUI07KNY2WJ5meNzHM8,12508
62
- cnhkmcp-1.3.7.dist-info/licenses/LICENSE,sha256=QLxO2eNMnJQEdI_R1UV2AOD-IvuA8zVrkHWA4D9gtoc,1081
63
- cnhkmcp-1.3.7.dist-info/METADATA,sha256=tWPGcHlqd383PvYBzeflP9Mln419wWFhGYYsalPHSxU,5171
64
- cnhkmcp-1.3.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
- cnhkmcp-1.3.7.dist-info/entry_points.txt,sha256=lTQieVyIvjhSMK4fT-XwnccY-JBC1H4vVQ3V9dDM-Pc,70
66
- cnhkmcp-1.3.7.dist-info/top_level.txt,sha256=x--ibUcSgOS9Z_RWK2Qc-vfs7DaXQN-WMaaxEETJ1Bw,8
67
- cnhkmcp-1.3.7.dist-info/RECORD,,
62
+ cnhkmcp-1.3.8.dist-info/licenses/LICENSE,sha256=QLxO2eNMnJQEdI_R1UV2AOD-IvuA8zVrkHWA4D9gtoc,1081
63
+ cnhkmcp-1.3.8.dist-info/METADATA,sha256=qvifTGOBWu8ZwVeRRmhfokzcSlyDHD9ylAL05UV-Xgg,5171
64
+ cnhkmcp-1.3.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
+ cnhkmcp-1.3.8.dist-info/entry_points.txt,sha256=lTQieVyIvjhSMK4fT-XwnccY-JBC1H4vVQ3V9dDM-Pc,70
66
+ cnhkmcp-1.3.8.dist-info/top_level.txt,sha256=x--ibUcSgOS9Z_RWK2Qc-vfs7DaXQN-WMaaxEETJ1Bw,8
67
+ cnhkmcp-1.3.8.dist-info/RECORD,,