bullishpy 0.70.0__py3-none-any.whl → 0.71.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/app/app.py CHANGED
@@ -123,7 +123,7 @@ def dialog_pick_database() -> None:
123
123
  f"The database {db_path} has not the necessary data to run this application. "
124
124
  "A backround job will be started to update the data."
125
125
  )
126
- analysis(db_path)
126
+ analysis(db_path, "Update analysis")
127
127
  st.rerun()
128
128
  if event is None:
129
129
  st.stop()
bullish/database/crud.py CHANGED
@@ -74,7 +74,11 @@ class BullishDb(BearishDb, BullishDbBase): # type: ignore
74
74
  logger.info(
75
75
  "Running tickermood upgrade to create the subject table in the database."
76
76
  )
77
- tickermood_upgrade(database_url=database_url, no_migration=True)
77
+ try:
78
+ tickermood_upgrade(database_url=database_url, no_migration=True)
79
+ except Exception as e:
80
+ logger.error(f"failed to update database: {e}")
81
+ print(f"failed to update database: {e}")
78
82
  return engine
79
83
 
80
84
  def model_post_init(self, __context: Any) -> None:
bullish/jobs/tasks.py CHANGED
@@ -195,22 +195,20 @@ def news(
195
195
  logger.debug(
196
196
  f"extracting news for {symbol} subject: {subject.model_dump()}"
197
197
  )
198
- bullish_db.update_analysis(
199
- symbol,
200
- subject.model_dump(
201
- exclude_none=True,
202
- exclude_unset=True,
203
- exclude_defaults=True,
204
- exclude={"symbol"},
205
- ),
206
- )
207
- base_news(
208
- database_path=database_path,
209
- job_type=job_type,
210
- symbols=symbols,
211
- headless=headless,
212
- task=task,
213
- )
198
+ try:
199
+ bullish_db.update_analysis(
200
+ symbol,
201
+ subject.model_dump(
202
+ exclude_none=True,
203
+ exclude_unset=True,
204
+ exclude_defaults=True,
205
+ exclude={"symbol"},
206
+ ),
207
+ )
208
+ except Exception as e:
209
+ logger.error(f"failed to extract news for {symbol}: {e}")
210
+ print(f"failed to extract news for {symbol}: {e}")
211
+ continue
214
212
 
215
213
 
216
214
  @huey.periodic_task(crontab(minute="0", hour="8"), context=True) # type: ignore
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bullishpy
3
- Version: 0.70.0
3
+ Version: 0.71.0
4
4
  Summary:
5
5
  License-File: LICENSE
6
6
  Author: aan
@@ -10,7 +10,7 @@ bullish/analysis/industry_views.py,sha256=-B4CCAYz2arGQtWTXLLMpox0loO_MGdVQd2ycC
10
10
  bullish/analysis/openai.py,sha256=Fw7A8lFMgSEQFA48Q9GjVpEC3oiBgSHUFi7YO5rzhAc,3444
11
11
  bullish/analysis/predefined_filters.py,sha256=E65qrTSaDFuUxoaeZ8D72K5AobumobpQdpcTIF308D4,14053
12
12
  bullish/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- bullish/app/app.py,sha256=dnTzlyKrG2XTKDeLnJwfdvIf24eXM8fd29bvJWmMr8k,17190
13
+ bullish/app/app.py,sha256=33miXieMVabmJFq8IrQazAzPZtmO3SnT-UFOuFe3QAc,17209
14
14
  bullish/cli.py,sha256=yYqiEQAvOIQ-pTn77RPuE449gwaEGBeQwNHHAJ5yQDM,2739
15
15
  bullish/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  bullish/database/alembic/README,sha256=heMzebYwlGhnE8_4CWJ4LS74WoEZjBy-S-mIJRxAEKI,39
@@ -45,7 +45,7 @@ bullish/database/alembic/versions/ec25c8fa449f_.py,sha256=8Yts74KEjK4jg20zIo90_0
45
45
  bullish/database/alembic/versions/ee5baabb35f8_.py,sha256=nBMEY-_C8AsSXVPyaDdUkwrFFo2gxShzJhmrjejDwtc,1632
46
46
  bullish/database/alembic/versions/fc191121f522_.py,sha256=0sstF6TpAJ09-Mt-Vek9SdSWksvi4C58a5D92rBtuY8,1894
47
47
  bullish/database/alembic/versions/ff0cc4ba40ec_.py,sha256=74lxga54ig_LoNZYK9toJL9iRwGbNRezh1zvO1YI40U,2719
48
- bullish/database/crud.py,sha256=3hx12D0gxnp-helhD6SX5zArCdTX-1FS8g5fYb1KySg,15946
48
+ bullish/database/crud.py,sha256=-pncRg_YA5y2wE2HELJHiGbeTzmaGF7LjMC8be10qwA,16123
49
49
  bullish/database/schemas.py,sha256=HudFJ9lsIkVaEYjQUWammrsDnYSmEe4hOCbim3dN_4A,3946
50
50
  bullish/database/scripts/create_revision.py,sha256=rggIf-3koPqJNth8FIg89EOfnIM7a9QrvL8X7UJsP0g,628
51
51
  bullish/database/scripts/stamp.py,sha256=PWgVUEBumjNUMjTnGw46qmU3p221LeN-KspnW_gFuu4,839
@@ -59,11 +59,11 @@ bullish/interface/interface.py,sha256=6uZAY19WNtDRKdOitqzqMEo6JTep2M3HC8iFUKYntH
59
59
  bullish/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
60
  bullish/jobs/app.py,sha256=5MJ5KXUo7JSNAvOPgkpIMasD11VTrjQvGzM7vmCY65E,77
61
61
  bullish/jobs/models.py,sha256=rBXxtGFBpgZprrxq5_X2Df-bh8BLYEfw-VLMRucrqa8,784
62
- bullish/jobs/tasks.py,sha256=13oK53fBXd5pjMLLMeOoQ4vG-yH-6dfrodhb9KzAYVw,7230
62
+ bullish/jobs/tasks.py,sha256=QFEZbWZQNSzSW_vZzwC5cU5CSs7je1J8jJOoWFB5FRU,7348
63
63
  bullish/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
64
  bullish/utils/checks.py,sha256=g-5QXNWNe1_BwHKrc2PtvPiLraL0tqGgxnzG7u-Wkgo,2189
65
- bullishpy-0.70.0.dist-info/METADATA,sha256=BSKeW7WON1LGGuhloVa1J1GYUech--iexKJp4hfrsCY,3031
66
- bullishpy-0.70.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
67
- bullishpy-0.70.0.dist-info/entry_points.txt,sha256=eaPpmL6vmSBFo0FBtwibCXGqAW4LFJ83whJzT1VjD-0,43
68
- bullishpy-0.70.0.dist-info/licenses/LICENSE,sha256=nYb7AJFegu6ndlQhbbk54MjT-GH-0x9RF6Ls-ggJ_g4,1075
69
- bullishpy-0.70.0.dist-info/RECORD,,
65
+ bullishpy-0.71.0.dist-info/METADATA,sha256=_zUkXcLDEJ-OAMSzn3zImMNC4-6rBmG7mv45ztSyNGM,3031
66
+ bullishpy-0.71.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
67
+ bullishpy-0.71.0.dist-info/entry_points.txt,sha256=eaPpmL6vmSBFo0FBtwibCXGqAW4LFJ83whJzT1VjD-0,43
68
+ bullishpy-0.71.0.dist-info/licenses/LICENSE,sha256=nYb7AJFegu6ndlQhbbk54MjT-GH-0x9RF6Ls-ggJ_g4,1075
69
+ bullishpy-0.71.0.dist-info/RECORD,,