bullishpy 0.16.0__py3-none-any.whl → 0.17.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.
Potentially problematic release.
This version of bullishpy might be problematic. Click here for more details.
- bullish/database/crud.py +4 -1
- bullish/jobs/tasks.py +2 -0
- {bullishpy-0.16.0.dist-info → bullishpy-0.17.0.dist-info}/METADATA +1 -1
- {bullishpy-0.16.0.dist-info → bullishpy-0.17.0.dist-info}/RECORD +6 -6
- {bullishpy-0.16.0.dist-info → bullishpy-0.17.0.dist-info}/WHEEL +0 -0
- {bullishpy-0.16.0.dist-info → bullishpy-0.17.0.dist-info}/entry_points.txt +0 -0
bullish/database/crud.py
CHANGED
|
@@ -326,4 +326,7 @@ class BullishDb(BearishDb, BullishDbBase): # type: ignore
|
|
|
326
326
|
with Session(self._engine) as session:
|
|
327
327
|
stmt = select(BacktestResultORM)
|
|
328
328
|
results = session.exec(stmt).all()
|
|
329
|
-
|
|
329
|
+
if results:
|
|
330
|
+
return [BacktestResult.model_validate(r) for r in results]
|
|
331
|
+
else:
|
|
332
|
+
return []
|
bullish/jobs/tasks.py
CHANGED
|
@@ -13,6 +13,7 @@ from huey.api import Task # type: ignore
|
|
|
13
13
|
from .models import JobTrackerStatus, JobTracker, JobType
|
|
14
14
|
from ..analysis.analysis import run_analysis, run_signal_series_analysis
|
|
15
15
|
from ..analysis.backtest import run_many_tests, BackTestConfig
|
|
16
|
+
from ..analysis.industry_views import compute_industry_view
|
|
16
17
|
from ..analysis.predefined_filters import predefined_filters
|
|
17
18
|
from ..database.crud import BullishDb
|
|
18
19
|
from bullish.analysis.filter import FilterUpdate
|
|
@@ -85,6 +86,7 @@ def analysis(
|
|
|
85
86
|
) -> None:
|
|
86
87
|
bullish_db = BullishDb(database_path=database_path)
|
|
87
88
|
run_analysis(bullish_db)
|
|
89
|
+
compute_industry_view(bullish_db)
|
|
88
90
|
|
|
89
91
|
|
|
90
92
|
@huey.task(context=True) # type: ignore
|
|
@@ -33,7 +33,7 @@ bullish/database/alembic/versions/d663166c531d_.py,sha256=U92l6QXqPniAYrPeu2Bt77
|
|
|
33
33
|
bullish/database/alembic/versions/ec25c8fa449f_.py,sha256=8Yts74KEjK4jg20zIo90_0atw-sOBuE3hgCKl-rfS5E,2271
|
|
34
34
|
bullish/database/alembic/versions/ee5baabb35f8_.py,sha256=nBMEY-_C8AsSXVPyaDdUkwrFFo2gxShzJhmrjejDwtc,1632
|
|
35
35
|
bullish/database/alembic/versions/fc191121f522_.py,sha256=0sstF6TpAJ09-Mt-Vek9SdSWksvi4C58a5D92rBtuY8,1894
|
|
36
|
-
bullish/database/crud.py,sha256=
|
|
36
|
+
bullish/database/crud.py,sha256=Fv-nI4cmhQnSaa4NxEtf1LvweCJZw9ue_rLA7nxNNB0,12637
|
|
37
37
|
bullish/database/schemas.py,sha256=3uRcNKuobqWC3mCfInzo-4KhrZp3DH6yx_0TEbLoHME,3428
|
|
38
38
|
bullish/database/scripts/create_revision.py,sha256=rggIf-3koPqJNth8FIg89EOfnIM7a9QrvL8X7UJsP0g,628
|
|
39
39
|
bullish/database/scripts/stamp.py,sha256=PWgVUEBumjNUMjTnGw46qmU3p221LeN-KspnW_gFuu4,839
|
|
@@ -47,10 +47,10 @@ bullish/interface/interface.py,sha256=9bhXOKlYtoCbbbDBzmwlVK2HuAzfO-1kE8mk_MMG0M
|
|
|
47
47
|
bullish/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
48
|
bullish/jobs/app.py,sha256=5MJ5KXUo7JSNAvOPgkpIMasD11VTrjQvGzM7vmCY65E,77
|
|
49
49
|
bullish/jobs/models.py,sha256=S2yvBf69lmt4U-5OU5CjXCMSw0s9Ubh9xkrB3k2qOZo,764
|
|
50
|
-
bullish/jobs/tasks.py,sha256=
|
|
50
|
+
bullish/jobs/tasks.py,sha256=vXPbISYFUZlrYkMVUb7y-g-z0BBi91wQLm8RbYqR4I0,3691
|
|
51
51
|
bullish/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
52
|
bullish/utils/checks.py,sha256=Va10_xDVVnxYkOD2hafvyQ-TFV8FQpOkr4huJ7XgpDM,2188
|
|
53
|
-
bullishpy-0.
|
|
54
|
-
bullishpy-0.
|
|
55
|
-
bullishpy-0.
|
|
56
|
-
bullishpy-0.
|
|
53
|
+
bullishpy-0.17.0.dist-info/METADATA,sha256=eKWsEZTrxHOWMj6v4ZaGuHW3mqThCZecKmWeeZ_yD5E,828
|
|
54
|
+
bullishpy-0.17.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
55
|
+
bullishpy-0.17.0.dist-info/entry_points.txt,sha256=eaPpmL6vmSBFo0FBtwibCXGqAW4LFJ83whJzT1VjD-0,43
|
|
56
|
+
bullishpy-0.17.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|