wbfdm 1.50.11__py2.py3-none-any.whl → 1.50.12__py2.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 wbfdm might be problematic. Click here for more details.
- wbfdm/filters/financials.py +5 -1
- wbfdm/models/instruments/llm/create_instrument_news_relationships.py +7 -2
- {wbfdm-1.50.11.dist-info → wbfdm-1.50.12.dist-info}/METADATA +1 -1
- {wbfdm-1.50.11.dist-info → wbfdm-1.50.12.dist-info}/RECORD +5 -5
- {wbfdm-1.50.11.dist-info → wbfdm-1.50.12.dist-info}/WHEEL +0 -0
wbfdm/filters/financials.py
CHANGED
|
@@ -10,7 +10,11 @@ class MarketDataChartFilterSet(filters.FilterSet):
|
|
|
10
10
|
label="Period", method="fake_filter", initial=five_year_data_range, required=True
|
|
11
11
|
)
|
|
12
12
|
chart_type = filters.ChoiceFilter(
|
|
13
|
-
method="fake_filter",
|
|
13
|
+
method="fake_filter",
|
|
14
|
+
label="Chart Type",
|
|
15
|
+
choices=MarketDataChartType.choices,
|
|
16
|
+
required=True,
|
|
17
|
+
initial=MarketDataChartType.CLOSE,
|
|
14
18
|
)
|
|
15
19
|
benchmarks = filters.ModelMultipleChoiceFilter(
|
|
16
20
|
label="Benchmarks",
|
|
@@ -4,8 +4,8 @@ from typing import Any
|
|
|
4
4
|
from celery import shared_task
|
|
5
5
|
from django.contrib.contenttypes.models import ContentType
|
|
6
6
|
from langchain_core.messages import HumanMessage, SystemMessage
|
|
7
|
-
from pydantic import BaseModel, Field
|
|
8
|
-
from wbcore.contrib.ai.exceptions import APIStatusErrors
|
|
7
|
+
from pydantic import BaseModel, Field, ValidationError
|
|
8
|
+
from wbcore.contrib.ai.exceptions import APIStatusErrors, BadRequestErrors
|
|
9
9
|
from wbcore.contrib.ai.llm.utils import run_llm
|
|
10
10
|
|
|
11
11
|
logger = logging.getLogger("llm")
|
|
@@ -82,6 +82,11 @@ def run_company_extraction_llm(title: str, description: str, *args) -> list[dict
|
|
|
82
82
|
"content_object_repr": str(instrument),
|
|
83
83
|
}
|
|
84
84
|
)
|
|
85
|
+
except (
|
|
86
|
+
BadRequestErrors,
|
|
87
|
+
ValidationError,
|
|
88
|
+
): # we silent bad request error because there is nothing we can do about it
|
|
89
|
+
pass
|
|
85
90
|
except tuple(APIStatusErrors) as e: # for APIStatusError, we let celery retry it
|
|
86
91
|
raise e
|
|
87
92
|
except Exception as e: # otherwise we log the error and silently fail
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wbfdm
|
|
3
|
-
Version: 1.50.
|
|
3
|
+
Version: 1.50.12
|
|
4
4
|
Summary: The workbench module ensures rapid access to diverse financial data (market, fundamental, forecasts, ESG), with features for storing instruments, classifying them, and conducting financial analysis.
|
|
5
5
|
Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
|
|
6
6
|
Requires-Dist: roman==4.*
|
|
@@ -137,7 +137,7 @@ wbfdm/figures/financials/financials_charts.py,sha256=tKqBWvkLkDB2GGsPe5g4GR6d3tg
|
|
|
137
137
|
wbfdm/filters/__init__.py,sha256=skWeFdAcemysUeGEvIJ_cIxn-SXuJsUxAroTxq0N8Qo,926
|
|
138
138
|
wbfdm/filters/classifications.py,sha256=8tKTAPwMzOIXkGWa4ez1layLBAlkDtdG53-75Rg0d9k,3625
|
|
139
139
|
wbfdm/filters/exchanges.py,sha256=84N4AQoCwgdnxTxmhMob5Yndfr5gy_DRQ_-m2ilVLVM,835
|
|
140
|
-
wbfdm/filters/financials.py,sha256=
|
|
140
|
+
wbfdm/filters/financials.py,sha256=jdubT5xfFTMcwJSbC_z0WkF8KlO6eAxkaMS7-oQFFp0,2512
|
|
141
141
|
wbfdm/filters/financials_analysis.py,sha256=aDA33RhKCOmA62GwuAr5xDK71T0racdyDUEaxOBp4Oc,4401
|
|
142
142
|
wbfdm/filters/instrument_prices.py,sha256=Nt-fInhTM_LRwwmT3U-b0eWoxe-EYEdv77wLEHkZqUc,3710
|
|
143
143
|
wbfdm/filters/instruments.py,sha256=u-aQIjAa90Ru7wdIoUr207Z39ThnDMBZoMEFqBDA1vc,7893
|
|
@@ -237,7 +237,7 @@ wbfdm/models/instruments/private_equities.py,sha256=uzwZi8IkmCKAHVTxnuFya9tehx7k
|
|
|
237
237
|
wbfdm/models/instruments/querysets.py,sha256=c9fbHVvIRyaFU7jm_CM90lfIVzB8beOD8YII9-FqdT4,7191
|
|
238
238
|
wbfdm/models/instruments/utils.py,sha256=88jnWINSSC0OwH-mCEOPLZXuhBCtEsxBpSaZ38GteaE,1365
|
|
239
239
|
wbfdm/models/instruments/llm/__init__.py,sha256=dSmxRmEWb0A4O_lUoWuRKt2mBtUuLCTPVVJqGyi_n40,52
|
|
240
|
-
wbfdm/models/instruments/llm/create_instrument_news_relationships.py,sha256=
|
|
240
|
+
wbfdm/models/instruments/llm/create_instrument_news_relationships.py,sha256=CVett-KGNio64xXN--dxw-frrUJfoD7vdfuw6hL8zg8,3805
|
|
241
241
|
wbfdm/models/instruments/mixin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
242
242
|
wbfdm/models/instruments/mixin/financials_computed.py,sha256=L5wjXDsR0maiwfOKP6KyWNJNH4nGOoAjSc_hDM7fsj0,35105
|
|
243
243
|
wbfdm/models/instruments/mixin/financials_serializer_fields.py,sha256=-OkpcUt1rZmB3nUcO2vckpJdVm8IxRqkPDEgcPqqoRU,68886
|
|
@@ -352,6 +352,6 @@ wbfdm/viewsets/statements/__init__.py,sha256=odxtFYUDICPmz8WCE3nx93EvKZLSPBEI4d7
|
|
|
352
352
|
wbfdm/viewsets/statements/statements.py,sha256=kmtM0uZ3f7eJJe5gVmd-iVra9dHwTB9x12p7f5qTEx8,4084
|
|
353
353
|
wbfdm/viewsets/technical_analysis/__init__.py,sha256=qtCIBg0uSiZeJq_1tEQFilnorMBkMe6uCMfqar6-cLE,77
|
|
354
354
|
wbfdm/viewsets/technical_analysis/monthly_performances.py,sha256=O1j8CGfOranL74LqVvcf7jERaDIboEJZiBf_AbbVDQ8,3974
|
|
355
|
-
wbfdm-1.50.
|
|
356
|
-
wbfdm-1.50.
|
|
357
|
-
wbfdm-1.50.
|
|
355
|
+
wbfdm-1.50.12.dist-info/METADATA,sha256=l0PNqskq1ouUhzbYuHWsncTZk0LBQpb_zYSwk-YNI7I,738
|
|
356
|
+
wbfdm-1.50.12.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
|
357
|
+
wbfdm-1.50.12.dist-info/RECORD,,
|
|
File without changes
|