nucliadb 6.3.4.post3780__py3-none-any.whl → 6.3.4.post3796__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.
@@ -148,6 +148,9 @@ def _parse_path_query(expr: graph_requests.GraphPathQuery) -> nodereader_pb2.Gra
148
148
  elif isinstance(expr, graph_requests.Relation):
149
149
  _set_relation_to_pb(expr, pb.path.relation)
150
150
 
151
+ elif isinstance(expr, graph_requests.Generated):
152
+ _set_generated_to_pb(expr, pb)
153
+
151
154
  else: # pragma: nocover
152
155
  # This is a trick so mypy generates an error if this branch can be reached,
153
156
  # that is, if we are missing some ifs
@@ -174,6 +177,9 @@ def _parse_node_query(expr: graph_requests.GraphNodesQuery) -> nodereader_pb2.Gr
174
177
  _set_node_to_pb(expr, pb.path.source)
175
178
  pb.path.undirected = True
176
179
 
180
+ elif isinstance(expr, graph_requests.Generated):
181
+ _set_generated_to_pb(expr, pb)
182
+
177
183
  else: # pragma: nocover
178
184
  # This is a trick so mypy generates an error if this branch can be reached,
179
185
  # that is, if we are missing some ifs
@@ -201,6 +207,9 @@ def _parse_relation_query(
201
207
  elif isinstance(expr, graph_requests.Relation):
202
208
  _set_relation_to_pb(expr, pb.path.relation)
203
209
 
210
+ elif isinstance(expr, graph_requests.Generated):
211
+ _set_generated_to_pb(expr, pb)
212
+
204
213
  else: # pragma: nocover
205
214
  # This is a trick so mypy generates an error if this branch can be reached,
206
215
  # that is, if we are missing some ifs
@@ -213,10 +222,10 @@ def _set_node_to_pb(node: graph_requests.GraphNode, pb: nodereader_pb2.GraphQuer
213
222
  if node.value is not None:
214
223
  pb.value = node.value
215
224
  if node.match == graph_requests.NodeMatchKind.EXACT:
216
- pb.match_kind = nodereader_pb2.GraphQuery.Node.MatchKind.EXACT
225
+ pb.match_kind = nodereader_pb2.GraphQuery.Node.MatchKind.DEPRECATED_EXACT
217
226
 
218
227
  elif node.match == graph_requests.NodeMatchKind.FUZZY:
219
- pb.match_kind = nodereader_pb2.GraphQuery.Node.MatchKind.FUZZY
228
+ pb.match_kind = nodereader_pb2.GraphQuery.Node.MatchKind.DEPRECATED_FUZZY
220
229
 
221
230
  else: # pragma: nocover
222
231
  # This is a trick so mypy generates an error if this branch can be reached,
@@ -235,3 +244,23 @@ def _set_relation_to_pb(relation: graph_requests.GraphRelation, pb: nodereader_p
235
244
  pb.value = relation.label
236
245
  if relation.type is not None:
237
246
  pb.relation_type = RelationTypeMap[relation.type]
247
+
248
+
249
+ def _set_generated_to_pb(generated: graph_requests.Generated, pb: nodereader_pb2.GraphQuery.PathQuery):
250
+ if generated.by == graph_requests.Generator.USER:
251
+ pb.facet.facet = "/g/u"
252
+
253
+ elif generated.by == graph_requests.Generator.PROCESSOR:
254
+ pb.bool_not.facet.facet = "/g"
255
+
256
+ elif generated.by == graph_requests.Generator.DATA_AUGMENTATION:
257
+ facet = "/g/da"
258
+ if generated.da_task is not None:
259
+ facet += f"/{generated.da_task}"
260
+
261
+ pb.facet.facet = facet
262
+
263
+ else: # pragma: nocover
264
+ # This is a trick so mypy generates an error if this branch can be reached,
265
+ # that is, if we are missing some ifs
266
+ _a: int = "a"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.3.4.post3780
3
+ Version: 6.3.4.post3796
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.4.post3780
24
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.4.post3780
25
- Requires-Dist: nucliadb-protos>=6.3.4.post3780
26
- Requires-Dist: nucliadb-models>=6.3.4.post3780
27
- Requires-Dist: nidx-protos>=6.3.4.post3780
23
+ Requires-Dist: nucliadb-telemetry[all]>=6.3.4.post3796
24
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.4.post3796
25
+ Requires-Dist: nucliadb-protos>=6.3.4.post3796
26
+ Requires-Dist: nucliadb-models>=6.3.4.post3796
27
+ Requires-Dist: nidx-protos>=6.3.4.post3796
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
@@ -258,7 +258,7 @@ nucliadb/search/search/query_parser/old_filters.py,sha256=-zbfN-RsXoj_DRjh3Lfp-w
258
258
  nucliadb/search/search/query_parser/parsers/__init__.py,sha256=ySCNSdbesLXGZyR88919njulA6UE10_3PhqMG_Yj1o4,1034
259
259
  nucliadb/search/search/query_parser/parsers/catalog.py,sha256=XdBiTweGTQkj8m_V_i2xbwp7P5pPO8K1Tud692XKhMw,7149
260
260
  nucliadb/search/search/query_parser/parsers/find.py,sha256=q3wH_i0DGceeKckYEH3c5MqM5EvRiMCL7r-6nCAId9Q,4666
261
- nucliadb/search/search/query_parser/parsers/graph.py,sha256=SfbMV-H-oCqZraQIwD8n5Hqi9dwOlvqzh_I3aZAKatg,8369
261
+ nucliadb/search/search/query_parser/parsers/graph.py,sha256=43S8iSg4j9I_XD8zpW1VggDspQD-NMyS26B5Mw6Dktw,9358
262
262
  nucliadb/standalone/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
263
263
  nucliadb/standalone/api_router.py,sha256=hgq9FXpihzgjHkwcVGfGCSwyXy67fqXTfLFHuINzIi0,5567
264
264
  nucliadb/standalone/app.py,sha256=mAApNK_iVsQgJyd-mtwCeZq5csSimwnXmlQGH9a70pE,5586
@@ -354,8 +354,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
354
354
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
355
355
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
356
356
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
357
- nucliadb-6.3.4.post3780.dist-info/METADATA,sha256=fWU0d62hr5LmRJRO4TGC9prZ4nZ261zU12xkYtDo2ng,4291
358
- nucliadb-6.3.4.post3780.dist-info/WHEEL,sha256=DK49LOLCYiurdXXOXwGJm6U4DkHkg4lcxjhqwRa0CP4,91
359
- nucliadb-6.3.4.post3780.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
360
- nucliadb-6.3.4.post3780.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
361
- nucliadb-6.3.4.post3780.dist-info/RECORD,,
357
+ nucliadb-6.3.4.post3796.dist-info/METADATA,sha256=CAxQ5xeSrVmN4NWzZwAdBUv2q5O5cP1INsDQ14RJYdk,4291
358
+ nucliadb-6.3.4.post3796.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
359
+ nucliadb-6.3.4.post3796.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
360
+ nucliadb-6.3.4.post3796.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
361
+ nucliadb-6.3.4.post3796.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.0.2)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5