Skip to content

Commit 10ffd9e

Browse files
committed
1)add hidden tags in setting
2)improve zen factor 3)add some em api 4)fix docs
1 parent 3e12e39 commit 10ffd9e

21 files changed

+895
-140
lines changed

docs/source/api/index.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,23 @@ API
66
:template: custom-module-template.rst
77
:recursive:
88

9-
zvt
109
zvt.api
1110
zvt.autocode
1211
zvt.consts
12+
zvt.common
1313
zvt.contract
1414
zvt.domain
1515
zvt.factors
1616
zvt.fill_project
1717
zvt.informer
18-
zvt.main
18+
zvt.misc
1919
zvt.ml
2020
zvt.plugin
2121
zvt.recorders
22+
zvt.rest
2223
zvt.samples
2324
zvt.tag
2425
zvt.trader
26+
zvt.trading
2527
zvt.ui
2628
zvt.utils

requirements/docs.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
sphinx==4.4.0
2-
sphinx_autodoc_typehints==1.15.3
3-
rst2pdf==0.99
1+
sphinx==8.1.3
2+
sphinx_autodoc_typehints==3.0.1
3+
rst2pdf==0.103.1
44
ipython==8.29.0
5-
sphinx_rtd_theme==1.0.0
6-
readthedocs-sphinx-search==0.1.1
5+
sphinx_rtd_theme==3.0.2
6+
readthedocs-sphinx-search==0.3.2

src/zvt/factors/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# -*- coding: utf-8 -*-#
2+
13
# the __all__ is generated
24
__all__ = []
35

@@ -35,11 +37,11 @@
3537

3638
__all__ += _macd_all
3739

38-
# import all from submodule z
39-
from .z import *
40-
from .z import __all__ as _z_all
40+
# import all from submodule zen
41+
from .zen import *
42+
from .zen import __all__ as _zen_all
4143

42-
__all__ += _z_all
44+
__all__ += _zen_all
4345

4446
# import all from submodule technical_factor
4547
from .technical_factor import *

src/zvt/factors/macd/macd_factor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ def compute_result(self):
6464
f = GoldCrossFactor(provider="em", entity_provider="em", entity_ids=["stock_sz_000338"])
6565
f.drawer().draw(show=True)
6666

67+
6768
# the __all__ is generated
6869
__all__ = ["MacdFactor", "BullFactor", "KeepBullFactor", "LiveOrDeadFactor", "GoldCrossFactor"]

src/zvt/factors/z/__init__.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/zvt/factors/z/domain/__init__.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/zvt/factors/z/domain/stock_1d_z_factor.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/zvt/factors/z/domain/stock_1wk_z_factor.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/zvt/factors/zen/__init__.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# -*- coding: utf-8 -*-#
2+
3+
# the __all__ is generated
4+
__all__ = []
5+
6+
# __init__.py structure:
7+
# common code of the package
8+
# export interface in __all__ which contains __all__ of its sub modules
9+
10+
# import all from submodule zen_factor
11+
from .zen_factor import *
12+
from .zen_factor import __all__ as _zen_factor_all
13+
14+
__all__ += _zen_factor_all
15+
16+
# import all from submodule base_factor
17+
from .base_factor import *
18+
from .base_factor import __all__ as _base_factor_all
19+
20+
__all__ += _base_factor_all
21+
22+
# import all from submodule domain
23+
from .domain import *
24+
from .domain import __all__ as _domain_all
25+
26+
__all__ += _domain_all

0 commit comments

Comments
 (0)