bullishpy 0.4.0__py3-none-any.whl → 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.
- bullish/analysis/analysis.py +22 -19
- bullish/analysis/filter.py +537 -77
- bullish/app/app.py +123 -53
- bullish/cli.py +3 -1
- bullish/database/alembic/versions/037dbd721317_.py +1 -0
- bullish/database/alembic/versions/11d35a452b40_.py +368 -0
- bullish/database/alembic/versions/4b0a2f40b7d3_.py +1 -0
- bullish/database/alembic/versions/73564b60fe24_.py +1 -0
- bullish/database/crud.py +9 -2
- bullish/interface/interface.py +13 -27
- {bullishpy-0.4.0.dist-info → bullishpy-0.5.0.dist-info}/METADATA +2 -2
- {bullishpy-0.4.0.dist-info → bullishpy-0.5.0.dist-info}/RECORD +14 -13
- {bullishpy-0.4.0.dist-info → bullishpy-0.5.0.dist-info}/WHEEL +0 -0
- {bullishpy-0.4.0.dist-info → bullishpy-0.5.0.dist-info}/entry_points.txt +0 -0
bullish/interface/interface.py
CHANGED
|
@@ -23,11 +23,6 @@ class BullishDbBase(BearishDbBase): # type: ignore
|
|
|
23
23
|
|
|
24
24
|
def read_filter_query(self, query: FilterQuery) -> pd.DataFrame:
|
|
25
25
|
|
|
26
|
-
if not set(query.query_parameters).issubset(set(Analysis.model_fields)):
|
|
27
|
-
raise ValueError(
|
|
28
|
-
f"Query parameters {query.query_parameters} are not a "
|
|
29
|
-
f"subset of Analysis model fields {Analysis.model_fields}"
|
|
30
|
-
)
|
|
31
26
|
query_ = query.to_query()
|
|
32
27
|
fields = ",".join(list(AnalysisView.model_fields))
|
|
33
28
|
query_str: str = f"""
|
|
@@ -50,47 +45,38 @@ class BullishDbBase(BearishDbBase): # type: ignore
|
|
|
50
45
|
return add_icons(self._read_job_trackers())
|
|
51
46
|
|
|
52
47
|
@abc.abstractmethod
|
|
53
|
-
def _read_job_trackers(self) -> pd.DataFrame:
|
|
54
|
-
...
|
|
48
|
+
def _read_job_trackers(self) -> pd.DataFrame: ...
|
|
55
49
|
|
|
56
50
|
@abc.abstractmethod
|
|
57
|
-
def write_job_tracker(self, job_tracker: JobTracker) -> None:
|
|
58
|
-
...
|
|
51
|
+
def write_job_tracker(self, job_tracker: JobTracker) -> None: ...
|
|
59
52
|
|
|
60
53
|
@abc.abstractmethod
|
|
61
|
-
def delete_job_trackers(self, job_ids: List[str]) -> None:
|
|
62
|
-
...
|
|
54
|
+
def delete_job_trackers(self, job_ids: List[str]) -> None: ...
|
|
63
55
|
|
|
64
56
|
@abc.abstractmethod
|
|
65
|
-
def update_job_tracker_status(
|
|
66
|
-
|
|
57
|
+
def update_job_tracker_status(
|
|
58
|
+
self, job_tracker_status: JobTrackerStatus
|
|
59
|
+
) -> None: ...
|
|
67
60
|
|
|
68
61
|
@abc.abstractmethod
|
|
69
|
-
def _write_analysis(self, analysis: "Analysis") -> None:
|
|
70
|
-
...
|
|
62
|
+
def _write_analysis(self, analysis: "Analysis") -> None: ...
|
|
71
63
|
|
|
72
64
|
@abc.abstractmethod
|
|
73
|
-
def _read_analysis(self, ticker: Ticker) -> Optional["Analysis"]:
|
|
74
|
-
...
|
|
65
|
+
def _read_analysis(self, ticker: Ticker) -> Optional["Analysis"]: ...
|
|
75
66
|
|
|
76
67
|
@abc.abstractmethod
|
|
77
|
-
def _read_filter_query(self, query: str) -> pd.DataFrame:
|
|
78
|
-
...
|
|
68
|
+
def _read_filter_query(self, query: str) -> pd.DataFrame: ...
|
|
79
69
|
|
|
80
70
|
@abc.abstractmethod
|
|
81
71
|
def _read_analysis_data(
|
|
82
72
|
self, columns: List[str], symbols: Optional[List[str]] = None
|
|
83
|
-
) -> pd.DataFrame:
|
|
84
|
-
...
|
|
73
|
+
) -> pd.DataFrame: ...
|
|
85
74
|
|
|
86
75
|
@abc.abstractmethod
|
|
87
|
-
def read_filtered_results(self, name: str) -> Optional[FilteredResults]:
|
|
88
|
-
...
|
|
76
|
+
def read_filtered_results(self, name: str) -> Optional[FilteredResults]: ...
|
|
89
77
|
|
|
90
78
|
@abc.abstractmethod
|
|
91
|
-
def read_list_filtered_results(self) -> List[str]:
|
|
92
|
-
...
|
|
79
|
+
def read_list_filtered_results(self) -> List[str]: ...
|
|
93
80
|
|
|
94
81
|
@abc.abstractmethod
|
|
95
|
-
def write_filtered_results(self, filtered_results: FilteredResults) -> None:
|
|
96
|
-
...
|
|
82
|
+
def write_filtered_results(self, filtered_results: FilteredResults) -> None: ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: bullishpy
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary:
|
|
5
5
|
Author: aan
|
|
6
6
|
Author-email: andoludovic.andriamamonjy@gmail.com
|
|
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.10
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
-
Requires-Dist: bearishpy (>=0.
|
|
12
|
+
Requires-Dist: bearishpy (>=0.20.0,<0.21.0)
|
|
13
13
|
Requires-Dist: huey (>=2.5.3,<3.0.0)
|
|
14
14
|
Requires-Dist: pandas-ta (>=0.3.14b0,<0.4.0)
|
|
15
15
|
Requires-Dist: plotly (>=6.1.2,<7.0.0)
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
bullish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
bullish/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
bullish/analysis/analysis.py,sha256=
|
|
4
|
-
bullish/analysis/filter.py,sha256=
|
|
3
|
+
bullish/analysis/analysis.py,sha256=XWK8TWAeLP5Is-Lz0bxACdE29tDbkY10ieZwj2hfxHY,22267
|
|
4
|
+
bullish/analysis/filter.py,sha256=2UIB-yqdP8edKlzCm54jrgUmDytwYJh5KtGU0aunvPU,15757
|
|
5
5
|
bullish/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
bullish/app/app.py,sha256=
|
|
7
|
-
bullish/cli.py,sha256=
|
|
6
|
+
bullish/app/app.py,sha256=yuEgq9j4GROL02eaER8wsAINATZVGN9al3fHp-470nc,9520
|
|
7
|
+
bullish/cli.py,sha256=C31Pj7XGzdLz2Y3nIPQ7CF1DvyGVU5EyLvzj423QbwQ,1915
|
|
8
8
|
bullish/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
bullish/database/alembic/README,sha256=heMzebYwlGhnE8_4CWJ4LS74WoEZjBy-S-mIJRxAEKI,39
|
|
10
10
|
bullish/database/alembic/alembic.ini,sha256=VuwqBJV5ObTyyRNrqv8Xr-TDIRfqPjP9R1mqewYM_xE,3695
|
|
11
11
|
bullish/database/alembic/env.py,sha256=TBsN4TyVppyc2QpWqViebd4-xxUT7Cs3GDYXQdKiAMs,2260
|
|
12
12
|
bullish/database/alembic/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
|
13
|
-
bullish/database/alembic/versions/037dbd721317_.py,sha256=
|
|
14
|
-
bullish/database/alembic/versions/
|
|
15
|
-
bullish/database/alembic/versions/
|
|
16
|
-
bullish/database/
|
|
13
|
+
bullish/database/alembic/versions/037dbd721317_.py,sha256=U7EA4odH3t9w0-J4FmvBUt8HOuGDMn0rEAu_0vPUYaI,8595
|
|
14
|
+
bullish/database/alembic/versions/11d35a452b40_.py,sha256=j2PaU1RssLQ20OevGmBC7S9E9ocWiXpBue9SOS4AQoY,11521
|
|
15
|
+
bullish/database/alembic/versions/4b0a2f40b7d3_.py,sha256=G0K7w7pOPYjPZkXTB8LWhxoxuWBPcPwOfnubTBtdeEY,1827
|
|
16
|
+
bullish/database/alembic/versions/73564b60fe24_.py,sha256=MTlDRDNHj3E9gK7IMeAzv2UxxxYtWiu3gI_9xTLE-wg,1008
|
|
17
|
+
bullish/database/crud.py,sha256=lrYAXftQRBUXs8RmFnrzSyV-oX5wU_UfyZjBBqPyevQ,5777
|
|
17
18
|
bullish/database/schemas.py,sha256=FjFhCa_VijAu2EEWsQ6rShSRzdH6FS9IM66ibh2kx3g,1104
|
|
18
19
|
bullish/database/scripts/create_revision.py,sha256=rggIf-3koPqJNth8FIg89EOfnIM7a9QrvL8X7UJsP0g,628
|
|
19
20
|
bullish/database/scripts/stamp.py,sha256=PWgVUEBumjNUMjTnGw46qmU3p221LeN-KspnW_gFuu4,839
|
|
@@ -23,12 +24,12 @@ bullish/exceptions.py,sha256=4z_i-dD-CDz1bkGmZH9DOf1L_awlCPCgdUDPF7dhWAI,106
|
|
|
23
24
|
bullish/figures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
25
|
bullish/figures/figures.py,sha256=3Ifrnl4I7gq6DiMEWZs2P0589nEsaGKYNiq-Cxj35_g,2771
|
|
25
26
|
bullish/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
bullish/interface/interface.py,sha256=
|
|
27
|
+
bullish/interface/interface.py,sha256=fi5tEBQGpJDshc-hfvZkPgrwWA9Q7Yn1lZ7jZ-bytm4,2736
|
|
27
28
|
bullish/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
29
|
bullish/jobs/app.py,sha256=5MJ5KXUo7JSNAvOPgkpIMasD11VTrjQvGzM7vmCY65E,77
|
|
29
30
|
bullish/jobs/models.py,sha256=ndrGTMP08S57yGLGEG9TQt8Uw2slc4HvbG-TZtEEuN0,744
|
|
30
31
|
bullish/jobs/tasks.py,sha256=vRjbCBcQciTC9283El_ji7BKxx40IbLcJkMbMVoE5wA,2533
|
|
31
|
-
bullishpy-0.
|
|
32
|
-
bullishpy-0.
|
|
33
|
-
bullishpy-0.
|
|
34
|
-
bullishpy-0.
|
|
32
|
+
bullishpy-0.5.0.dist-info/METADATA,sha256=Jez8tsiRYwfhea9IenqjU23lKrx8LpR2Q4N8j7me6SU,772
|
|
33
|
+
bullishpy-0.5.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
34
|
+
bullishpy-0.5.0.dist-info/entry_points.txt,sha256=eaPpmL6vmSBFo0FBtwibCXGqAW4LFJ83whJzT1VjD-0,43
|
|
35
|
+
bullishpy-0.5.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|