wmshare-qlib 0.5.0__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.
- wmshare_qlib/__init__.py +44 -0
- wmshare_qlib/cli.py +1134 -0
- wmshare_qlib/config.py +284 -0
- wmshare_qlib/cross_section.py +102 -0
- wmshare_qlib/dump.py +243 -0
- wmshare_qlib/estimate.py +113 -0
- wmshare_qlib/fetch.py +1478 -0
- wmshare_qlib/format.py +118 -0
- wmshare_qlib/normalize.py +353 -0
- wmshare_qlib/panel.py +193 -0
- wmshare_qlib/py.typed +0 -0
- wmshare_qlib/qlib_io.py +256 -0
- wmshare_qlib/reconcile.py +104 -0
- wmshare_qlib/resume.py +311 -0
- wmshare_qlib-0.5.0.dist-info/METADATA +306 -0
- wmshare_qlib-0.5.0.dist-info/RECORD +20 -0
- wmshare_qlib-0.5.0.dist-info/WHEEL +5 -0
- wmshare_qlib-0.5.0.dist-info/entry_points.txt +2 -0
- wmshare_qlib-0.5.0.dist-info/licenses/LICENSE +28 -0
- wmshare_qlib-0.5.0.dist-info/top_level.txt +1 -0
wmshare_qlib/__init__.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""wmshare-qlib: Qlib-native data layer powered by wmshare.
|
|
2
|
+
|
|
3
|
+
Three-layer data model (see README):
|
|
4
|
+
1. history panel - fields with real history -> Qlib .bin (backtestable)
|
|
5
|
+
2. cross section - today-only precomputed metrics -> score CSV (online scoring)
|
|
6
|
+
3. accumulation - daily snapshots accumulate into a backtestable panel over time
|
|
7
|
+
|
|
8
|
+
Explicit honesty contract: the 2,752 precomputed metric codes are CURRENT-SNAPSHOT
|
|
9
|
+
only (no history-series endpoint). We never fabricate history by pasting today's
|
|
10
|
+
value across dates.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
__version__ = "0.5.0"
|
|
14
|
+
|
|
15
|
+
# Imported so ``wmshare_qlib.qlib_io`` (etc.) resolves without an explicit
|
|
16
|
+
# submodule import, matching what __all__ promises. Import cost is small and
|
|
17
|
+
# qlib itself is optional inside qlib_io, so this stays side-effect free.
|
|
18
|
+
from . import ( # noqa: E402,F401 (re-export after __version__)
|
|
19
|
+
config,
|
|
20
|
+
cross_section,
|
|
21
|
+
dump,
|
|
22
|
+
estimate,
|
|
23
|
+
fetch,
|
|
24
|
+
format,
|
|
25
|
+
normalize,
|
|
26
|
+
panel,
|
|
27
|
+
qlib_io,
|
|
28
|
+
reconcile,
|
|
29
|
+
resume,
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
__all__ = [
|
|
33
|
+
"config",
|
|
34
|
+
"normalize",
|
|
35
|
+
"fetch",
|
|
36
|
+
"panel",
|
|
37
|
+
"cross_section",
|
|
38
|
+
"dump",
|
|
39
|
+
"format",
|
|
40
|
+
"qlib_io",
|
|
41
|
+
"resume",
|
|
42
|
+
"estimate",
|
|
43
|
+
"reconcile",
|
|
44
|
+
]
|