nucliadb 6.3.1.post3496__py3-none-any.whl → 6.3.1.post3504__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.
@@ -98,6 +98,9 @@ async def catalog_get(
98
98
  SearchParamDefaults.range_modification_end
99
99
  ),
100
100
  hidden: Optional[bool] = fastapi_query(SearchParamDefaults.hidden),
101
+ show: list[ResourceProperties] = fastapi_query(
102
+ SearchParamDefaults.show, default=[ResourceProperties.BASIC, ResourceProperties.ERRORS]
103
+ ),
101
104
  ) -> Union[KnowledgeboxSearchResults, HTTPClientError]:
102
105
  try:
103
106
  expr = (
@@ -121,6 +124,7 @@ async def catalog_get(
121
124
  range_modification_start=range_modification_start,
122
125
  range_modification_end=range_modification_end,
123
126
  hidden=hidden,
127
+ show=show,
124
128
  )
125
129
  if sort_field:
126
130
  item.sort = SortOptions(field=sort_field, limit=sort_limit, order=sort_order)
@@ -169,7 +173,7 @@ async def catalog(
169
173
  catalog_results.resources = await fetch_resources(
170
174
  resources=[r.rid for r in catalog_results.fulltext.results],
171
175
  kbid=kbid,
172
- show=[ResourceProperties.BASIC, ResourceProperties.ERRORS],
176
+ show=item.show,
173
177
  field_type_filter=list(FieldTypeName),
174
178
  extracted=[],
175
179
  )
@@ -19,10 +19,11 @@
19
19
 
20
20
  from base64 import b64decode, b64encode
21
21
  from enum import Enum
22
- from typing import Optional, TypedDict
22
+ from typing import Optional
23
23
 
24
24
  from google.protobuf.message import DecodeError, Message
25
25
  from pydantic import BaseModel, ConfigDict, Field, field_validator
26
+ from typing_extensions import TypedDict
26
27
 
27
28
  from nucliadb_protos.resources_pb2 import FieldMetadata, FieldText, QuestionAnswers
28
29
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nucliadb
3
- Version: 6.3.1.post3496
3
+ Version: 6.3.1.post3504
4
4
  Summary: NucliaDB
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License: AGPL
@@ -20,11 +20,11 @@ Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: Programming Language :: Python :: 3 :: Only
21
21
  Requires-Python: <4,>=3.9
22
22
  Description-Content-Type: text/markdown
23
- Requires-Dist: nucliadb-telemetry[all]>=6.3.1.post3496
24
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.1.post3496
25
- Requires-Dist: nucliadb-protos>=6.3.1.post3496
26
- Requires-Dist: nucliadb-models>=6.3.1.post3496
27
- Requires-Dist: nidx-protos>=6.3.1.post3496
23
+ Requires-Dist: nucliadb-telemetry[all]>=6.3.1.post3504
24
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.1.post3504
25
+ Requires-Dist: nucliadb-protos>=6.3.1.post3504
26
+ Requires-Dist: nucliadb-models>=6.3.1.post3504
27
+ Requires-Dist: nidx-protos>=6.3.1.post3504
28
28
  Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
29
29
  Requires-Dist: nuclia-models>=0.24.2
30
30
  Requires-Dist: uvicorn
@@ -184,7 +184,7 @@ nucliadb/search/app.py,sha256=-WEX1AZRA8R_9aeOo9ovOTwjXW_7VfwWN7N2ccSoqXg,3387
184
184
  nucliadb/search/lifecycle.py,sha256=DW8v4WUi4rZqc7xTOi3rE67W7877WG7fH9oTZbolHdE,2099
185
185
  nucliadb/search/openapi.py,sha256=t3Wo_4baTrfPftg2BHsyLWNZ1MYn7ZRdW7ht-wFOgRs,1016
186
186
  nucliadb/search/predict.py,sha256=z2-RkhMkH-5T6PtFkfESxNof07XiS5FxicLHPRyCUXc,22284
187
- nucliadb/search/predict_models.py,sha256=m3abP2J-xZIhKa230OvnnBRXxL4oSlozl5PpA7VeVvE,5908
187
+ nucliadb/search/predict_models.py,sha256=ZAe0dneUsPmV9uBar57cCFADCGOrYDsJHuqKlA5zWag,5937
188
188
  nucliadb/search/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
189
189
  nucliadb/search/run.py,sha256=aFb-CXRi_C8YMpP_ivNj8KW1BYhADj88y8K9Lr_nUPI,1402
190
190
  nucliadb/search/settings.py,sha256=vem3EcyYlTPSim0kEK-xe-erF4BZg0CT_LAb8ZRQAE8,1684
@@ -192,7 +192,7 @@ nucliadb/search/utilities.py,sha256=9SsRDw0rJVXVoLBfF7rBb6q080h-thZc7u8uRcTiBeY,
192
192
  nucliadb/search/api/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
193
193
  nucliadb/search/api/v1/__init__.py,sha256=8w6VhZ5rbzX1xLSXr336d2IE-O0dQiv-ba6UYdRKnHA,1325
194
194
  nucliadb/search/api/v1/ask.py,sha256=F2dR3-swb3Xz8MfZPYL3G65KY2R_mgef4YVBbu8kLi4,4352
195
- nucliadb/search/api/v1/catalog.py,sha256=LIoLknBAXIRwrJA3TCPoVIoYZZx41R1eMP7yR7x_f_Y,7579
195
+ nucliadb/search/api/v1/catalog.py,sha256=IyBkq99CND1kFelsedJiQaSD8GOPGBJpcKuw1Z6jB9E,7709
196
196
  nucliadb/search/api/v1/feedback.py,sha256=kNLc4dHz2SXHzV0PwC1WiRAwY88fDptPcP-kO0q-FrQ,2620
197
197
  nucliadb/search/api/v1/find.py,sha256=l2dRg0eYngq52vyn9_z9iK7bdO7ufHQDnJWBZgMVrqY,9628
198
198
  nucliadb/search/api/v1/knowledgebox.py,sha256=rWhx3PYWryingu19qwwFDbVvVYynq5Ky23FSlzmTutQ,8721
@@ -339,8 +339,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
339
339
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
340
340
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
341
341
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
342
- nucliadb-6.3.1.post3496.dist-info/METADATA,sha256=5MWHuNYen2cYlCYbpGOrnkEXINxqHOxutzk5cR0iimk,4291
343
- nucliadb-6.3.1.post3496.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
344
- nucliadb-6.3.1.post3496.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
345
- nucliadb-6.3.1.post3496.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
346
- nucliadb-6.3.1.post3496.dist-info/RECORD,,
342
+ nucliadb-6.3.1.post3504.dist-info/METADATA,sha256=G6Q3Zo1wyyvaQRJMxf6elj7bqNXR61E5GN5yomcwV7k,4291
343
+ nucliadb-6.3.1.post3504.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
344
+ nucliadb-6.3.1.post3504.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
345
+ nucliadb-6.3.1.post3504.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
346
+ nucliadb-6.3.1.post3504.dist-info/RECORD,,