wbfdm 1.50.12__py2.py3-none-any.whl → 1.50.13__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/contrib/metric/filters.py +10 -0
- wbfdm/filters/instruments.py +1 -0
- wbfdm/models/instruments/llm/create_instrument_news_relationships.py +1 -1
- wbfdm/viewsets/instruments/instruments.py +1 -1
- {wbfdm-1.50.12.dist-info → wbfdm-1.50.13.dist-info}/METADATA +1 -1
- {wbfdm-1.50.12.dist-info → wbfdm-1.50.13.dist-info}/RECORD +7 -8
- wbfdm/menu.py +0 -11
- {wbfdm-1.50.12.dist-info → wbfdm-1.50.13.dist-info}/WHEEL +0 -0
wbfdm/contrib/metric/filters.py
CHANGED
|
@@ -8,6 +8,16 @@ from .registry import backend_registry
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class InstrumentMetricFilterSet(filters.FilterSet):
|
|
11
|
+
parent_metric = filters.ModelChoiceFilter(
|
|
12
|
+
label="Parent",
|
|
13
|
+
queryset=InstrumentMetric.objects.all(),
|
|
14
|
+
endpoint=InstrumentMetric.get_representation_endpoint(),
|
|
15
|
+
value_key=InstrumentMetric.get_representation_value_key(),
|
|
16
|
+
label_key=InstrumentMetric.get_representation_label_key(),
|
|
17
|
+
hidden=True,
|
|
18
|
+
)
|
|
19
|
+
parent_metric__isnull = filters.BooleanFilter(field_name="parent_metric", lookup_expr="isnull", hidden=True)
|
|
20
|
+
|
|
11
21
|
key = filters.ChoiceFilter(choices=backend_registry.get_choices(), label="Key")
|
|
12
22
|
basket_content_type = filters.ModelChoiceFilter(
|
|
13
23
|
queryset=ContentType.objects.all(),
|
wbfdm/filters/instruments.py
CHANGED
|
@@ -52,6 +52,7 @@ class InstrumentFilterSet(TagFilterMixin, InstrumentFavoriteGroupFilterSet):
|
|
|
52
52
|
label_key=Instrument.get_representation_label_key(),
|
|
53
53
|
hidden=True,
|
|
54
54
|
)
|
|
55
|
+
parent__isnull = wb_filters.BooleanFilter(field_name="parent", lookup_expr="isnull", hidden=True)
|
|
55
56
|
|
|
56
57
|
classifications = wb_filters.ModelChoiceFilter(
|
|
57
58
|
label="Classification",
|
|
@@ -83,8 +83,8 @@ def run_company_extraction_llm(title: str, description: str, *args) -> list[dict
|
|
|
83
83
|
}
|
|
84
84
|
)
|
|
85
85
|
except (
|
|
86
|
-
BadRequestErrors,
|
|
87
86
|
ValidationError,
|
|
87
|
+
*BadRequestErrors,
|
|
88
88
|
): # we silent bad request error because there is nothing we can do about it
|
|
89
89
|
pass
|
|
90
90
|
except tuple(APIStatusErrors) as e: # for APIStatusError, we let celery retry it
|
|
@@ -52,7 +52,7 @@ class InstrumentModelViewSet(InstrumentMetricMixin, viewsets.ModelViewSet):
|
|
|
52
52
|
METRIC_SHOW_AGGREGATES = False
|
|
53
53
|
filter_backends = (ObjectPermissionsFilter, DjangoFilterBackend, OrderingFilter, InstrumentSearchFilter)
|
|
54
54
|
|
|
55
|
-
queryset = Instrument.objects.annotate_all()
|
|
55
|
+
queryset = Instrument.objects.annotate_all().exclude(name="")
|
|
56
56
|
serializer_class = InstrumentModelListSerializer
|
|
57
57
|
ordering_fields = (
|
|
58
58
|
"instrument_type",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wbfdm
|
|
3
|
-
Version: 1.50.
|
|
3
|
+
Version: 1.50.13
|
|
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.*
|
|
@@ -3,7 +3,6 @@ wbfdm/apps.py,sha256=83jiPNQfxUbO7KYKBS5qo5SZNuz25Kmmy_txoVmIKG0,333
|
|
|
3
3
|
wbfdm/dynamic_preferences_registry.py,sha256=tE9ZxlQDD7rqKM3GXjxyORQqDjf39GTENkOCZFt8Ixo,1299
|
|
4
4
|
wbfdm/enums.py,sha256=5AuUouk5uuSNmRc6e-SiBu4FPmHVTN60ol9ftiuVrAc,33041
|
|
5
5
|
wbfdm/jinja2.py,sha256=pkIC1U-0rf6vn0DDEUzZ8dPYiTGEPY8LBTRMi9wYiuc,199
|
|
6
|
-
wbfdm/menu.py,sha256=c_uP0wIxboHvY0BfHbYPI9GI4F41UxSgREqbzcaxzHM,399
|
|
7
6
|
wbfdm/preferences.py,sha256=8ghDcaapOMso1kjtNfKbSFykPUTxzqI5R77gM3BgiMs,927
|
|
8
7
|
wbfdm/signals.py,sha256=PhAsFpQZF1YVe5UpedaRelUD_TVjemqRYm1HzV-bhmY,597
|
|
9
8
|
wbfdm/tasks.py,sha256=rjbbDewuiDmfO54tBUwPiNV9AoDKnIx382riyExWwnI,4362
|
|
@@ -49,7 +48,7 @@ wbfdm/contrib/metric/dispatch.py,sha256=io6p4EJf36OdnxZDTw-sRRKfr_q8TLYvIDGWCkb3
|
|
|
49
48
|
wbfdm/contrib/metric/dto.py,sha256=vS93tUvfusWdE7gUJsp320GwfwWpb8bGJDdrb1GB6M8,3413
|
|
50
49
|
wbfdm/contrib/metric/exceptions.py,sha256=6IuEVde7aOyQaXHE817bCNdUw8LTI3sOSU9LiV3NZbM,200
|
|
51
50
|
wbfdm/contrib/metric/factories.py,sha256=b6-3fSERbZGjGw6QC0k3hhSpyQKVy2MJoZzX4y3GPEo,1123
|
|
52
|
-
wbfdm/contrib/metric/filters.py,sha256=
|
|
51
|
+
wbfdm/contrib/metric/filters.py,sha256=a6TAN-_EaRUhJ34JCFwFmEgj8uKZMNXFLOoMS2qvwZI,1427
|
|
53
52
|
wbfdm/contrib/metric/models.py,sha256=lI_ZmK7058GT_5ngC45UdXRc7ju-ULbcOtO5w_CMBwU,7002
|
|
54
53
|
wbfdm/contrib/metric/orchestrators.py,sha256=YyVVKKm3Sl1zVr2mw9A7LSJs6YnmElbg1yESREF3lFk,3736
|
|
55
54
|
wbfdm/contrib/metric/registry.py,sha256=SdZff6FIrtdbyAO0X0BpXndJAIhU6VVojNui_MEw7jI,3167
|
|
@@ -140,7 +139,7 @@ wbfdm/filters/exchanges.py,sha256=84N4AQoCwgdnxTxmhMob5Yndfr5gy_DRQ_-m2ilVLVM,83
|
|
|
140
139
|
wbfdm/filters/financials.py,sha256=jdubT5xfFTMcwJSbC_z0WkF8KlO6eAxkaMS7-oQFFp0,2512
|
|
141
140
|
wbfdm/filters/financials_analysis.py,sha256=aDA33RhKCOmA62GwuAr5xDK71T0racdyDUEaxOBp4Oc,4401
|
|
142
141
|
wbfdm/filters/instrument_prices.py,sha256=Nt-fInhTM_LRwwmT3U-b0eWoxe-EYEdv77wLEHkZqUc,3710
|
|
143
|
-
wbfdm/filters/instruments.py,sha256=
|
|
142
|
+
wbfdm/filters/instruments.py,sha256=6UksQCDvMMdvQvixUHnM_oLeMqiFlBWtsKNQ_tAOXTA,7995
|
|
144
143
|
wbfdm/filters/utils.py,sha256=6IpNoZ_yjRUCdpVXrj3kriTceAX-VGrS5NpZA2NgSmY,1870
|
|
145
144
|
wbfdm/import_export/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
146
145
|
wbfdm/import_export/backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -237,7 +236,7 @@ wbfdm/models/instruments/private_equities.py,sha256=uzwZi8IkmCKAHVTxnuFya9tehx7k
|
|
|
237
236
|
wbfdm/models/instruments/querysets.py,sha256=c9fbHVvIRyaFU7jm_CM90lfIVzB8beOD8YII9-FqdT4,7191
|
|
238
237
|
wbfdm/models/instruments/utils.py,sha256=88jnWINSSC0OwH-mCEOPLZXuhBCtEsxBpSaZ38GteaE,1365
|
|
239
238
|
wbfdm/models/instruments/llm/__init__.py,sha256=dSmxRmEWb0A4O_lUoWuRKt2mBtUuLCTPVVJqGyi_n40,52
|
|
240
|
-
wbfdm/models/instruments/llm/create_instrument_news_relationships.py,sha256=
|
|
239
|
+
wbfdm/models/instruments/llm/create_instrument_news_relationships.py,sha256=sUCkxHBAlTa_Fl2WpSVMiWBrDbva5rh04dlm9wjSz8Q,3806
|
|
241
240
|
wbfdm/models/instruments/mixin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
242
241
|
wbfdm/models/instruments/mixin/financials_computed.py,sha256=L5wjXDsR0maiwfOKP6KyWNJNH4nGOoAjSc_hDM7fsj0,35105
|
|
243
242
|
wbfdm/models/instruments/mixin/financials_serializer_fields.py,sha256=-OkpcUt1rZmB3nUcO2vckpJdVm8IxRqkPDEgcPqqoRU,68886
|
|
@@ -345,13 +344,13 @@ wbfdm/viewsets/instruments/financials_analysis.py,sha256=xcVKR2H0P07NIyxFwPPPmVi
|
|
|
345
344
|
wbfdm/viewsets/instruments/instrument_lists.py,sha256=hwwHDNpHjjffxw08N_1LtkL5Fdi8c1Om-PLz6pTu4Ok,2878
|
|
346
345
|
wbfdm/viewsets/instruments/instrument_prices.py,sha256=WGUe5WUl9PqulWSPCZgWcBWCmgxtu4lhm-UeAa4ngyg,24008
|
|
347
346
|
wbfdm/viewsets/instruments/instrument_requests.py,sha256=mmaARNl6ymDdlcLzcu16vVfFsunhtJkMw2r2NBfUp9U,1839
|
|
348
|
-
wbfdm/viewsets/instruments/instruments.py,sha256
|
|
347
|
+
wbfdm/viewsets/instruments/instruments.py,sha256=-UG8fceQumx06xmZ6tRnjFvFu_Jrjz5m83atMAMubVo,4021
|
|
349
348
|
wbfdm/viewsets/instruments/instruments_relationships.py,sha256=D2Ym84zXBFegQC9nMThKSWqSAcWa0WvcS_GXxM2po68,11076
|
|
350
349
|
wbfdm/viewsets/instruments/utils.py,sha256=kr5HwkSaWp-6GHVEQIb3CnIspDGSxfqghyOqg0oHO-A,1166
|
|
351
350
|
wbfdm/viewsets/statements/__init__.py,sha256=odxtFYUDICPmz8WCE3nx93EvKZLSPBEI4d7pozcQz2A,47
|
|
352
351
|
wbfdm/viewsets/statements/statements.py,sha256=kmtM0uZ3f7eJJe5gVmd-iVra9dHwTB9x12p7f5qTEx8,4084
|
|
353
352
|
wbfdm/viewsets/technical_analysis/__init__.py,sha256=qtCIBg0uSiZeJq_1tEQFilnorMBkMe6uCMfqar6-cLE,77
|
|
354
353
|
wbfdm/viewsets/technical_analysis/monthly_performances.py,sha256=O1j8CGfOranL74LqVvcf7jERaDIboEJZiBf_AbbVDQ8,3974
|
|
355
|
-
wbfdm-1.50.
|
|
356
|
-
wbfdm-1.50.
|
|
357
|
-
wbfdm-1.50.
|
|
354
|
+
wbfdm-1.50.13.dist-info/METADATA,sha256=kuGj2qXFbTImsJ6kkvgbIvm6y4TASTPKsvflNEbrz20,738
|
|
355
|
+
wbfdm-1.50.13.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
|
356
|
+
wbfdm-1.50.13.dist-info/RECORD,,
|
wbfdm/menu.py
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
from django.utils.translation import gettext as _
|
|
2
|
-
from wbcore.menus import ItemPermission, MenuItem
|
|
3
|
-
from wbcore.permissions.shortcuts import is_internal_user
|
|
4
|
-
|
|
5
|
-
INSTRUMENT_MENU_ITEM = MenuItem(
|
|
6
|
-
label=_("Instruments"),
|
|
7
|
-
endpoint="wbfdm:instrument-list",
|
|
8
|
-
permission=ItemPermission(
|
|
9
|
-
method=lambda request: is_internal_user(request.user), permissions=["wbfdm.view_instrument"]
|
|
10
|
-
),
|
|
11
|
-
)
|
|
File without changes
|