wqbkit 0.3.2__tar.gz → 0.3.3__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.
- {wqbkit-0.3.2 → wqbkit-0.3.3}/PKG-INFO +1 -1
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/database/alpha_db_manager.py +2 -2
- {wqbkit-0.3.2 → wqbkit-0.3.3}/pyproject.toml +1 -1
- {wqbkit-0.3.2 → wqbkit-0.3.3}/.github/workflows/publish.yml +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/.gitignore +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/LICENSE +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/README.md +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/config.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/core/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/core/alpha_base_core.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/core/alpha_db_core.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/core/decorators.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/core/logger.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/core/wqb_urls.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/database/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/database/db_models.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/database/schemas.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/app/utils/alpha_utils.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/competitions/Osmosis/osmosis_allocator_v3.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/competitions/Osmosis/osmosis_clear_v3.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/competitions/Osmosis/osmosis_runner_v3.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/competitions/Osmosis/osmosis_selector_v3.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/competitions/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/correlation/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/correlation/alpha_calc_corr.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/message/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/message/alpha_message_sender.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_machine/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_machine/alpha_generator.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_machine/alpha_machine.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_machine/config/constants.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_machine/config/events.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_machine/config/groups.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_machine/config/operators.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_simulator/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_simulator/alpha_simulator.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_simulator/neutralization.json +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/regular_alpha/alpha_simulator/setting.json +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/super_alpha/__init__.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/super_alpha/alpha_dyeing.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/super_alpha/super_alpha_creator.py +0 -0
- {wqbkit-0.3.2 → wqbkit-0.3.3}/modules/super_alpha/super_alpha_simulator.py +0 -0
|
@@ -15,7 +15,7 @@ from wqbkit.app.config import config
|
|
|
15
15
|
|
|
16
16
|
from .db_models import (
|
|
17
17
|
AlphaCorr, AlphaFactor, AlphaPnl, AlphaSimulated,
|
|
18
|
-
AlphaTask,
|
|
18
|
+
AlphaTask, get_engine, SuperAlpha, FieldCategory
|
|
19
19
|
)
|
|
20
20
|
|
|
21
21
|
# 配置日志
|
|
@@ -47,7 +47,7 @@ class AlphaDBManager:
|
|
|
47
47
|
raise RuntimeError(
|
|
48
48
|
"Database is disabled. Set DB_ENABLE=true in .env to enable DB features."
|
|
49
49
|
)
|
|
50
|
-
self._session_factory = scoped_session(sessionmaker(bind=
|
|
50
|
+
self._session_factory = scoped_session(sessionmaker(bind=get_engine()))
|
|
51
51
|
|
|
52
52
|
@contextmanager
|
|
53
53
|
def session_scope(self) -> Generator[SQLAlchemySession, None, None]:
|
|
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
|
|
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
|