nucliadb 6.4.2.post4360__py3-none-any.whl → 6.4.2.post4366__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.
@@ -0,0 +1,28 @@
1
+ # Copyright (C) 2021 Bosutech XXI S.L.
2
+ #
3
+ # nucliadb is offered under the AGPL v3.0 and as commercial software.
4
+ # For commercial licensing, contact us at info@nuclia.com.
5
+ #
6
+ # AGPL:
7
+ # This program is free software: you can redistribute it and/or modify
8
+ # it under the terms of the GNU Affero General Public License as
9
+ # published by the Free Software Foundation, either version 3 of the
10
+ # License, or (at your option) any later version.
11
+ #
12
+ # This program is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU Affero General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU Affero General Public License
18
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ #
20
+
21
+ from nucliadb.common.maindb.pg import PGTransaction
22
+
23
+
24
+ async def migrate(txn: PGTransaction) -> None:
25
+ async with txn.connection.cursor() as cur:
26
+ await cur.execute(
27
+ "CREATE INDEX resources_purge_tasks_idx ON resources (key) WHERE key ~ '^/kbs/[^/]*/tasks/[^/]*/[^/]*$';"
28
+ )
@@ -55,7 +55,6 @@ from nucliadb_utils.authentication import requires
55
55
  summary="Search Knowledge Box graph",
56
56
  description="Search on the Knowledge Box graph and retrieve triplets of vertex-edge-vertex",
57
57
  response_model_exclude_unset=True,
58
- include_in_schema=False,
59
58
  tags=["Search"],
60
59
  )
61
60
  @requires(NucliaDBRoles.READER)
@@ -82,7 +81,6 @@ async def graph_search_knowledgebox(
82
81
  summary="Search Knowledge Box graph nodes",
83
82
  description="Search on the Knowledge Box graph and retrieve nodes (vertices)",
84
83
  response_model_exclude_unset=True,
85
- include_in_schema=False,
86
84
  tags=["Search"],
87
85
  )
88
86
  @requires(NucliaDBRoles.READER)
@@ -109,7 +107,6 @@ async def graph_nodes_search_knowledgebox(
109
107
  summary="Search Knowledge Box graph relations",
110
108
  description="Search on the Knowledge Box graph and retrieve relations (edges)",
111
109
  response_model_exclude_unset=True,
112
- include_in_schema=False,
113
110
  tags=["Search"],
114
111
  )
115
112
  @requires(NucliaDBRoles.READER)
nucliadb/tasks/retries.py CHANGED
@@ -194,7 +194,7 @@ async def purge_batch(
194
194
  await cur.execute(
195
195
  """
196
196
  SELECT key from resources
197
- WHERE key ~ '^/kbs/[^/]*/tasks/[^/]*/[^/]*$'
197
+ WHERE key ~ '^/kbs/[^/]*/tasks/[^/]*/[^/]*$'
198
198
  AND key > %s
199
199
  ORDER BY key
200
200
  LIMIT %s
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.4.2.post4360
3
+ Version: 6.4.2.post4366
4
4
  Summary: NucliaDB
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -19,11 +19,11 @@ Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
20
  Requires-Python: <4,>=3.9
21
21
  Description-Content-Type: text/markdown
22
- Requires-Dist: nucliadb-telemetry[all]>=6.4.2.post4360
23
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.4.2.post4360
24
- Requires-Dist: nucliadb-protos>=6.4.2.post4360
25
- Requires-Dist: nucliadb-models>=6.4.2.post4360
26
- Requires-Dist: nidx-protos>=6.4.2.post4360
22
+ Requires-Dist: nucliadb-telemetry[all]>=6.4.2.post4366
23
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.4.2.post4366
24
+ Requires-Dist: nucliadb-protos>=6.4.2.post4366
25
+ Requires-Dist: nucliadb-models>=6.4.2.post4366
26
+ Requires-Dist: nidx-protos>=6.4.2.post4366
27
27
  Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
28
28
  Requires-Dist: nuclia-models>=0.24.2
29
29
  Requires-Dist: uvicorn[standard]
@@ -36,6 +36,7 @@ migrations/pg/0001_bootstrap.py,sha256=Fsqkeof50m7fKiJN05kmNEMwiKDlOrAgcAS5sLLku
36
36
  migrations/pg/0002_catalog.py,sha256=Rsleecu351Ty19kYZgOpqX5G3MEAY8nMxCJrAeuS2Mw,1690
37
37
  migrations/pg/0003_catalog_kbid_index.py,sha256=uKq_vtnuf73GVf0mtl2rhzdk_czAoEU1UdiVKVZpA0M,1044
38
38
  migrations/pg/0004_catalog_facets.py,sha256=FJFASHjfEHG3sNve9BP2HnnLO4xr7dnR6Qpctnmt4LE,2180
39
+ migrations/pg/0005_purge_tasks_index.py,sha256=3mtyFgpcK0QQ_NONYay7V9xICijCLNkyTPuoc0PBjRg,1139
39
40
  migrations/pg/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
40
41
  nucliadb/__init__.py,sha256=_abCmDJ_0ku483Os4UAjPX7Nywm39cQgAV_DiyjsKeQ,891
41
42
  nucliadb/health.py,sha256=UIxxA4oms4HIsCRZM_SZsdkIZIlgzmOxw-qSHLlWuak,3465
@@ -215,7 +216,7 @@ nucliadb/search/api/v1/ask.py,sha256=b4tz33HNsfT5DXv_2DMc_jirnFsHuobreWkbAKkzj5o
215
216
  nucliadb/search/api/v1/catalog.py,sha256=W0cPWuC27Y4bO7Ifl1VQp8OPYfF5gv5yeWZBsuJMxUU,7721
216
217
  nucliadb/search/api/v1/feedback.py,sha256=kNLc4dHz2SXHzV0PwC1WiRAwY88fDptPcP-kO0q-FrQ,2620
217
218
  nucliadb/search/api/v1/find.py,sha256=C4sTGFRS9tQFF8v1zhnHQvnExJoGDYi78bZTRfwhGrc,10831
218
- nucliadb/search/api/v1/graph.py,sha256=Km_ysePnhaEahdYp0gaF-234FHliB8LdUpfGOnqZ0rc,4265
219
+ nucliadb/search/api/v1/graph.py,sha256=gthqxCOn9biE6D6s93jRGLglk0ono8U7OyS390kWiI8,4178
219
220
  nucliadb/search/api/v1/knowledgebox.py,sha256=e9xeLPUqnQTx33i4A8xuV93ENvtJGrpjPlLRbGJtAI8,8415
220
221
  nucliadb/search/api/v1/predict_proxy.py,sha256=Q03ZTvWp7Sq0x71t5Br4LHxTiYsRd6-GCb4YuKqhynM,3131
221
222
  nucliadb/search/api/v1/router.py,sha256=mtT07rBZcVfpa49doaw9b1tj3sdi3qLH0gn9Io6NYM0,988
@@ -293,7 +294,7 @@ nucliadb/tasks/consumer.py,sha256=E7_9bY5o7BVlioWX9yO9yimDJaKeuj-P-tiNCJcaRz8,69
293
294
  nucliadb/tasks/logger.py,sha256=C7keOEO_mjLVp5VbqAZ2QXfqVB2Hot7NgBlUP_SDSMw,924
294
295
  nucliadb/tasks/models.py,sha256=qrZKi5DNDQ07waMsp5L4_Fi7WRs57YiO-kmXlrBzEAA,1168
295
296
  nucliadb/tasks/producer.py,sha256=UnpJAzhj_GElsCoO5G6T4m6MshsgOaqR2tVzJmEta64,2625
296
- nucliadb/tasks/retries.py,sha256=L8jbnkyNe6LVoXAmpdtl4QLoMNI8NUXOna7u0sSM0_Y,8157
297
+ nucliadb/tasks/retries.py,sha256=z4RlXDnjswHBRrCT6_aKbyQZzg5pxX3TMpkNllLC-8o,8156
297
298
  nucliadb/tasks/utils.py,sha256=tV1AbWdFc3qfIULX44Veqj41FCD1B6XYjG6brULBeiw,1459
298
299
  nucliadb/tests/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
299
300
  nucliadb/tests/config.py,sha256=JN_Jhgj-fwM9_8IeO9pwxr6C1PiwRDrXxm67Y38rU30,2080
@@ -367,8 +368,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
367
368
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
368
369
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
369
370
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
370
- nucliadb-6.4.2.post4360.dist-info/METADATA,sha256=IdCzxP9kQ7Khr6yw7TX6W8OcvJS07AuvSqB2qwIy0ZE,4152
371
- nucliadb-6.4.2.post4360.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
372
- nucliadb-6.4.2.post4360.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
373
- nucliadb-6.4.2.post4360.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
374
- nucliadb-6.4.2.post4360.dist-info/RECORD,,
371
+ nucliadb-6.4.2.post4366.dist-info/METADATA,sha256=OQQFjM3yVZog9if_NnRTVcgQfVA8Z3YLTHEktpjBZGw,4152
372
+ nucliadb-6.4.2.post4366.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
373
+ nucliadb-6.4.2.post4366.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
374
+ nucliadb-6.4.2.post4366.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
375
+ nucliadb-6.4.2.post4366.dist-info/RECORD,,