nucliadb 6.3.7.post4078__py3-none-any.whl → 6.3.7.post4079__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.
- nucliadb/common/models_utils/from_proto.py +25 -25
- nucliadb/reader/api/v1/services.py +2 -2
- nucliadb/writer/resource/field.py +3 -3
- {nucliadb-6.3.7.post4078.dist-info → nucliadb-6.3.7.post4079.dist-info}/METADATA +16 -16
- {nucliadb-6.3.7.post4078.dist-info → nucliadb-6.3.7.post4079.dist-info}/RECORD +8 -8
- {nucliadb-6.3.7.post4078.dist-info → nucliadb-6.3.7.post4079.dist-info}/WHEEL +0 -0
- {nucliadb-6.3.7.post4078.dist-info → nucliadb-6.3.7.post4079.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.3.7.post4078.dist-info → nucliadb-6.3.7.post4079.dist-info}/top_level.txt +0 -0
@@ -82,7 +82,7 @@ def user_field_metadata(message: resources_pb2.UserFieldMetadata) -> UserFieldMe
|
|
82
82
|
value = MessageToDict(
|
83
83
|
message,
|
84
84
|
preserving_proto_field_name=True,
|
85
|
-
|
85
|
+
always_print_fields_with_no_presence=True,
|
86
86
|
use_integers_for_enums=True,
|
87
87
|
)
|
88
88
|
value["field"]["field_type"] = field_type_name(value["field"]["field_type"]).value
|
@@ -110,7 +110,7 @@ def user_metadata(message: resources_pb2.UserMetadata) -> UserMetadata:
|
|
110
110
|
value = MessageToDict(
|
111
111
|
message,
|
112
112
|
preserving_proto_field_name=True,
|
113
|
-
|
113
|
+
always_print_fields_with_no_presence=True,
|
114
114
|
)
|
115
115
|
return UserMetadata(**value)
|
116
116
|
|
@@ -174,7 +174,7 @@ def relation_metadata(message: utils_pb2.RelationMetadata) -> RelationMetadata:
|
|
174
174
|
**MessageToDict(
|
175
175
|
message,
|
176
176
|
preserving_proto_field_name=True,
|
177
|
-
|
177
|
+
always_print_fields_with_no_presence=True,
|
178
178
|
)
|
179
179
|
)
|
180
180
|
|
@@ -188,7 +188,7 @@ def origin(message: resources_pb2.Origin) -> Origin:
|
|
188
188
|
data = MessageToDict(
|
189
189
|
message,
|
190
190
|
preserving_proto_field_name=True,
|
191
|
-
|
191
|
+
always_print_fields_with_no_presence=True,
|
192
192
|
)
|
193
193
|
# old field was "colaborators" and we want to keep pb field name
|
194
194
|
# to avoid migration
|
@@ -201,7 +201,7 @@ def extra(message: resources_pb2.Extra) -> Extra:
|
|
201
201
|
**MessageToDict(
|
202
202
|
message,
|
203
203
|
preserving_proto_field_name=True,
|
204
|
-
|
204
|
+
always_print_fields_with_no_presence=False,
|
205
205
|
)
|
206
206
|
)
|
207
207
|
|
@@ -211,7 +211,7 @@ def metadata(message: resources_pb2.Metadata) -> Metadata:
|
|
211
211
|
**MessageToDict(
|
212
212
|
message,
|
213
213
|
preserving_proto_field_name=True,
|
214
|
-
|
214
|
+
always_print_fields_with_no_presence=True,
|
215
215
|
)
|
216
216
|
)
|
217
217
|
|
@@ -222,7 +222,7 @@ def field_question_answers(
|
|
222
222
|
value = MessageToDict(
|
223
223
|
message,
|
224
224
|
preserving_proto_field_name=True,
|
225
|
-
|
225
|
+
always_print_fields_with_no_presence=True,
|
226
226
|
)
|
227
227
|
return FieldQuestionAnswers(**value)
|
228
228
|
|
@@ -231,7 +231,7 @@ def question_answers(message: resources_pb2.QuestionAnswers) -> QuestionAnswers:
|
|
231
231
|
value = MessageToDict(
|
232
232
|
message,
|
233
233
|
preserving_proto_field_name=True,
|
234
|
-
|
234
|
+
always_print_fields_with_no_presence=True,
|
235
235
|
)
|
236
236
|
return QuestionAnswers(**value)
|
237
237
|
|
@@ -241,7 +241,7 @@ def extracted_text(message: resources_pb2.ExtractedText) -> ExtractedText:
|
|
241
241
|
**MessageToDict(
|
242
242
|
message,
|
243
243
|
preserving_proto_field_name=True,
|
244
|
-
|
244
|
+
always_print_fields_with_no_presence=True,
|
245
245
|
)
|
246
246
|
)
|
247
247
|
|
@@ -251,7 +251,7 @@ def vector_object(message: resources_pb2.VectorObject) -> VectorObject:
|
|
251
251
|
**MessageToDict(
|
252
252
|
message,
|
253
253
|
preserving_proto_field_name=True,
|
254
|
-
|
254
|
+
always_print_fields_with_no_presence=True,
|
255
255
|
)
|
256
256
|
)
|
257
257
|
|
@@ -263,7 +263,7 @@ def large_computed_metadata(
|
|
263
263
|
**MessageToDict(
|
264
264
|
message,
|
265
265
|
preserving_proto_field_name=True,
|
266
|
-
|
266
|
+
always_print_fields_with_no_presence=True,
|
267
267
|
)
|
268
268
|
)
|
269
269
|
|
@@ -273,7 +273,7 @@ def link_extracted_data(message: resources_pb2.LinkExtractedData) -> LinkExtract
|
|
273
273
|
**MessageToDict(
|
274
274
|
message,
|
275
275
|
preserving_proto_field_name=True,
|
276
|
-
|
276
|
+
always_print_fields_with_no_presence=True,
|
277
277
|
)
|
278
278
|
)
|
279
279
|
|
@@ -283,7 +283,7 @@ def file_extracted_data(message: resources_pb2.FileExtractedData) -> FileExtract
|
|
283
283
|
**MessageToDict(
|
284
284
|
message,
|
285
285
|
preserving_proto_field_name=True,
|
286
|
-
|
286
|
+
always_print_fields_with_no_presence=True,
|
287
287
|
)
|
288
288
|
)
|
289
289
|
|
@@ -311,7 +311,7 @@ def field_computed_metadata(
|
|
311
311
|
value = MessageToDict(
|
312
312
|
message,
|
313
313
|
preserving_proto_field_name=True,
|
314
|
-
|
314
|
+
always_print_fields_with_no_presence=True,
|
315
315
|
)
|
316
316
|
value["metadata"] = metadata
|
317
317
|
value["split_metadata"] = split_metadata
|
@@ -341,7 +341,7 @@ def field_metadata(
|
|
341
341
|
value = MessageToDict(
|
342
342
|
message,
|
343
343
|
preserving_proto_field_name=True,
|
344
|
-
|
344
|
+
always_print_fields_with_no_presence=True,
|
345
345
|
)
|
346
346
|
value["relations"] = [
|
347
347
|
convert_pb_relation_to_api(rel) for relations in message.relations for rel in relations.relations
|
@@ -353,7 +353,7 @@ def conversation(message: resources_pb2.Conversation) -> Conversation:
|
|
353
353
|
as_dict = MessageToDict(
|
354
354
|
message,
|
355
355
|
preserving_proto_field_name=True,
|
356
|
-
|
356
|
+
always_print_fields_with_no_presence=True,
|
357
357
|
)
|
358
358
|
for conv_message in as_dict.get("messages", []):
|
359
359
|
for attachment_field in conv_message.get("content", {}).get("attachments_fields", []):
|
@@ -366,7 +366,7 @@ def field_conversation(message: resources_pb2.FieldConversation) -> FieldConvers
|
|
366
366
|
**MessageToDict(
|
367
367
|
message,
|
368
368
|
preserving_proto_field_name=True,
|
369
|
-
|
369
|
+
always_print_fields_with_no_presence=True,
|
370
370
|
)
|
371
371
|
)
|
372
372
|
|
@@ -376,7 +376,7 @@ def entity(message: knowledgebox_pb2.Entity) -> Entity:
|
|
376
376
|
**MessageToDict(
|
377
377
|
message,
|
378
378
|
preserving_proto_field_name=True,
|
379
|
-
|
379
|
+
always_print_fields_with_no_presence=True,
|
380
380
|
)
|
381
381
|
)
|
382
382
|
|
@@ -387,7 +387,7 @@ def entities_group(
|
|
387
387
|
entities_group = MessageToDict(
|
388
388
|
message,
|
389
389
|
preserving_proto_field_name=True,
|
390
|
-
|
390
|
+
always_print_fields_with_no_presence=True,
|
391
391
|
)
|
392
392
|
entities_group["entities"] = {}
|
393
393
|
|
@@ -405,7 +405,7 @@ def entities_group_summary(
|
|
405
405
|
**MessageToDict(
|
406
406
|
message,
|
407
407
|
preserving_proto_field_name=True,
|
408
|
-
|
408
|
+
always_print_fields_with_no_presence=True,
|
409
409
|
)
|
410
410
|
)
|
411
411
|
|
@@ -415,7 +415,7 @@ def field_file(message: resources_pb2.FieldFile) -> FieldFile:
|
|
415
415
|
**MessageToDict(
|
416
416
|
message,
|
417
417
|
preserving_proto_field_name=True,
|
418
|
-
|
418
|
+
always_print_fields_with_no_presence=True,
|
419
419
|
)
|
420
420
|
)
|
421
421
|
instance.external = ( # type: ignore
|
@@ -429,7 +429,7 @@ def field_link(message: resources_pb2.FieldLink) -> FieldLink:
|
|
429
429
|
**MessageToDict(
|
430
430
|
message,
|
431
431
|
preserving_proto_field_name=True,
|
432
|
-
|
432
|
+
always_print_fields_with_no_presence=True,
|
433
433
|
)
|
434
434
|
)
|
435
435
|
|
@@ -439,7 +439,7 @@ def field_text(message: resources_pb2.FieldText) -> FieldText:
|
|
439
439
|
**MessageToDict(
|
440
440
|
message,
|
441
441
|
preserving_proto_field_name=True,
|
442
|
-
|
442
|
+
always_print_fields_with_no_presence=True,
|
443
443
|
)
|
444
444
|
)
|
445
445
|
|
@@ -448,7 +448,7 @@ def knowledgebox_config(message: knowledgebox_pb2.KnowledgeBoxConfig) -> Knowled
|
|
448
448
|
as_dict = MessageToDict(
|
449
449
|
message,
|
450
450
|
preserving_proto_field_name=True,
|
451
|
-
|
451
|
+
always_print_fields_with_no_presence=True,
|
452
452
|
)
|
453
453
|
# Calculate external index provider metadata
|
454
454
|
# that is shown on read requests
|
@@ -473,6 +473,6 @@ def kb_shards(message: writer_pb2.Shards) -> KnowledgeboxShards:
|
|
473
473
|
**MessageToDict(
|
474
474
|
message,
|
475
475
|
preserving_proto_field_name=True,
|
476
|
-
|
476
|
+
always_print_fields_with_no_presence=True,
|
477
477
|
)
|
478
478
|
)
|
@@ -152,7 +152,7 @@ async def get_labelsets(kbid: str) -> KnowledgeBoxLabels:
|
|
152
152
|
**MessageToDict(
|
153
153
|
labelset_data,
|
154
154
|
preserving_proto_field_name=True,
|
155
|
-
|
155
|
+
always_print_fields_with_no_presence=True,
|
156
156
|
)
|
157
157
|
)
|
158
158
|
response.labelsets[labelset] = labelset_response
|
@@ -195,7 +195,7 @@ async def get_labelset(kbid: str, labelset_id: str) -> LabelSet:
|
|
195
195
|
**MessageToDict(
|
196
196
|
labelset,
|
197
197
|
preserving_proto_field_name=True,
|
198
|
-
|
198
|
+
always_print_fields_with_no_presence=True,
|
199
199
|
)
|
200
200
|
)
|
201
201
|
return response
|
@@ -130,7 +130,7 @@ async def extract_fields(resource: ORMResource, toprocess: PushPayload):
|
|
130
130
|
parsed_link = MessageToDict(
|
131
131
|
field_pb,
|
132
132
|
preserving_proto_field_name=True,
|
133
|
-
|
133
|
+
always_print_fields_with_no_presence=True,
|
134
134
|
)
|
135
135
|
parsed_link["link"] = parsed_link.pop("uri", None)
|
136
136
|
toprocess.linkfield[field_id] = processing_models.LinkUpload(**parsed_link)
|
@@ -140,7 +140,7 @@ async def extract_fields(resource: ORMResource, toprocess: PushPayload):
|
|
140
140
|
parsed_text = MessageToDict(
|
141
141
|
field_pb,
|
142
142
|
preserving_proto_field_name=True,
|
143
|
-
|
143
|
+
always_print_fields_with_no_presence=True,
|
144
144
|
)
|
145
145
|
parsed_text["format"] = processing_models.PushTextFormat[parsed_text["format"]]
|
146
146
|
toprocess.textfield[field_id] = processing_models.Text(**parsed_text)
|
@@ -161,7 +161,7 @@ async def extract_fields(resource: ORMResource, toprocess: PushPayload):
|
|
161
161
|
parsed_message = MessageToDict(
|
162
162
|
message,
|
163
163
|
preserving_proto_field_name=True,
|
164
|
-
|
164
|
+
always_print_fields_with_no_presence=True,
|
165
165
|
)
|
166
166
|
parsed_message["content"]["attachments"] = [
|
167
167
|
await processing.convert_internal_cf_to_str(cf, storage)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.3.7.
|
3
|
+
Version: 6.3.7.post4079
|
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.7.
|
24
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.7.
|
25
|
-
Requires-Dist: nucliadb-protos>=6.3.7.
|
26
|
-
Requires-Dist: nucliadb-models>=6.3.7.
|
27
|
-
Requires-Dist: nidx-protos>=6.3.7.
|
23
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.3.7.post4079
|
24
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.7.post4079
|
25
|
+
Requires-Dist: nucliadb-protos>=6.3.7.post4079
|
26
|
+
Requires-Dist: nucliadb-models>=6.3.7.post4079
|
27
|
+
Requires-Dist: nidx-protos>=6.3.7.post4079
|
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[standard]
|
@@ -36,15 +36,15 @@ Requires-Dist: aiofiles>=0.8.0
|
|
36
36
|
Requires-Dist: psutil>=5.9.7
|
37
37
|
Requires-Dist: types-psutil>=5.9.5.17
|
38
38
|
Requires-Dist: types-aiofiles>=0.8.3
|
39
|
-
Requires-Dist: protobuf>=
|
40
|
-
Requires-Dist: types-protobuf
|
41
|
-
Requires-Dist: grpcio
|
42
|
-
Requires-Dist: grpcio-health-checking
|
43
|
-
Requires-Dist: grpcio-channelz
|
44
|
-
Requires-Dist: grpcio-status
|
45
|
-
Requires-Dist: grpcio-tools
|
46
|
-
Requires-Dist: grpcio-testing
|
47
|
-
Requires-Dist: grpcio-reflection
|
39
|
+
Requires-Dist: protobuf>=5
|
40
|
+
Requires-Dist: types-protobuf>=5
|
41
|
+
Requires-Dist: grpcio>=1.71.0
|
42
|
+
Requires-Dist: grpcio-health-checking>=1.71.0
|
43
|
+
Requires-Dist: grpcio-channelz>=1.71.0
|
44
|
+
Requires-Dist: grpcio-status>=1.71.0
|
45
|
+
Requires-Dist: grpcio-tools>=1.71.0
|
46
|
+
Requires-Dist: grpcio-testing>=1.71.0
|
47
|
+
Requires-Dist: grpcio-reflection>=1.71.0
|
48
48
|
Requires-Dist: orjson>=3.6.7
|
49
49
|
Requires-Dist: types-setuptools
|
50
50
|
Requires-Dist: pydantic>=2.6
|
@@ -62,7 +62,7 @@ Requires-Dist: sentry-sdk>=2.8.0
|
|
62
62
|
Requires-Dist: pyjwt>=2.4.0
|
63
63
|
Requires-Dist: mmh3>=3.0.0
|
64
64
|
Requires-Dist: httpx>=0.23.0
|
65
|
-
Requires-Dist: grpc-stubs
|
65
|
+
Requires-Dist: grpc-stubs
|
66
66
|
Requires-Dist: aiodns>=3.0.0
|
67
67
|
Requires-Dist: types-orjson
|
68
68
|
Requires-Dist: psycopg[binary,pool]
|
@@ -106,7 +106,7 @@ nucliadb/common/maindb/local.py,sha256=uE9DIQX1yCNHNN8Tx4fPgSiuTtWpQhlfWkMJ8QZPa
|
|
106
106
|
nucliadb/common/maindb/pg.py,sha256=FNq2clckJYj4Te-1svjQblqGoAF5OwJ5nwz2JtxD0d4,13645
|
107
107
|
nucliadb/common/maindb/utils.py,sha256=zWLs82rWEVhpc1dYvdqTZiAcjZroB6Oo5MQaxMeFuKk,3301
|
108
108
|
nucliadb/common/models_utils/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
109
|
-
nucliadb/common/models_utils/from_proto.py,sha256=
|
109
|
+
nucliadb/common/models_utils/from_proto.py,sha256=1Ut6_f5ofao1numCkr5xgeVWhuVitx1ebggzU8hu0jU,15764
|
110
110
|
nucliadb/common/models_utils/to_proto.py,sha256=97JvOR_3odu50YvzLa2CERfEN3w_QPmAVcCJwJB5m5A,2438
|
111
111
|
nucliadb/export_import/__init__.py,sha256=y-Is0Bxa8TMV6UiOW0deC_D3U465P65CQ5RjBjIWnow,932
|
112
112
|
nucliadb/export_import/datamanager.py,sha256=xL8b0xvk45q6wx1l7J32JgPmpyjnF6fKiJi2F2B_UQY,6968
|
@@ -192,7 +192,7 @@ nucliadb/reader/api/v1/knowledgebox.py,sha256=Uu-yPB8KKZt1VaFrFNMMaXOvLsclBJDK9d
|
|
192
192
|
nucliadb/reader/api/v1/learning_config.py,sha256=CZ7pFXzBZkJE2dXbC1wArszJw_ZLpuEb6gnsz2MKEz0,5525
|
193
193
|
nucliadb/reader/api/v1/resource.py,sha256=SFIv_vpgkdJQv7L_UgYZS5FvubipJ0ligpExGDjKHV0,14064
|
194
194
|
nucliadb/reader/api/v1/router.py,sha256=eyNmEGSP9zHkCIG5XlAXl6sukq950B7gFT3X2peMtIE,1011
|
195
|
-
nucliadb/reader/api/v1/services.py,sha256=
|
195
|
+
nucliadb/reader/api/v1/services.py,sha256=Q2n-QMfAVzSylu6qTUuPa6L3AfZ9jS3azVlfQdSqlA4,13443
|
196
196
|
nucliadb/reader/api/v1/vectorsets.py,sha256=insTwaykshz442cMKa2VP74wJwvZrIYi0U7M9EM3aCM,1822
|
197
197
|
nucliadb/reader/reader/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
198
198
|
nucliadb/reader/reader/notifications.py,sha256=HVZNUlfbSuoZ9BsSs8wmzPeYurl0U0O2ooVlR9KSM3U,7792
|
@@ -354,7 +354,7 @@ nucliadb/writer/api/v1/vectorsets.py,sha256=F3iMViL5G95_Tns4aO2SOA0DwAzxK2_P8MXx
|
|
354
354
|
nucliadb/writer/resource/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
355
355
|
nucliadb/writer/resource/audit.py,sha256=FvxMZPzrNHtd31HgpZEvxzwAkbxJTZRhPLqRYYJi3tA,1426
|
356
356
|
nucliadb/writer/resource/basic.py,sha256=fjxZEsC_ftuRrpPDOQqSDfZR6JlVNSFPMckVGmjQ4lY,10426
|
357
|
-
nucliadb/writer/resource/field.py,sha256=
|
357
|
+
nucliadb/writer/resource/field.py,sha256=MhDbcOEw6KbOGBAnBFAKA_yxL2WrC7Ky2JrjB3iWf9c,20384
|
358
358
|
nucliadb/writer/resource/origin.py,sha256=pvhUDdU0mlWPUcpoQi4LDUJaRtfjzVVrA8XcGVI_N8k,2021
|
359
359
|
nucliadb/writer/tus/__init__.py,sha256=huWpKnDnjsrKlBBJk30ta5vamlA-4x0TbPs_2Up8hyM,5443
|
360
360
|
nucliadb/writer/tus/azure.py,sha256=XhWAlWTM0vmXcXtuEPYjjeEhuZjiZXZu8q9WsJ7omFE,4107
|
@@ -365,8 +365,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
365
365
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
366
366
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
367
367
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
368
|
-
nucliadb-6.3.7.
|
369
|
-
nucliadb-6.3.7.
|
370
|
-
nucliadb-6.3.7.
|
371
|
-
nucliadb-6.3.7.
|
372
|
-
nucliadb-6.3.7.
|
368
|
+
nucliadb-6.3.7.post4079.dist-info/METADATA,sha256=WP6AMoJHWMGwWeqYxHCKJbhd7mTgzJDQD6f4fCrdp6w,4226
|
369
|
+
nucliadb-6.3.7.post4079.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
370
|
+
nucliadb-6.3.7.post4079.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
371
|
+
nucliadb-6.3.7.post4079.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
372
|
+
nucliadb-6.3.7.post4079.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|