nucliadb-utils 6.9.1.post5182__py3-none-any.whl → 6.9.3.post5309__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 nucliadb-utils might be problematic. Click here for more details.

nucliadb_utils/const.py CHANGED
@@ -41,4 +41,4 @@ class Features:
41
41
  SKIP_EXTERNAL_INDEX = "nucliadb_skip_external_index"
42
42
  LOG_REQUEST_PAYLOADS = "nucliadb_log_request_payloads"
43
43
  IGNORE_EXTRACTED_IN_SEARCH = "nucliadb_ignore_extracted_in_search"
44
- DEBUG_MISSING_VECTORS = "nucliadb_debug_missing_vectors"
44
+ REBALANCE_ENABLED = "nucliadb_rebalance"
@@ -45,10 +45,7 @@ DEFAULT_FLAG_DATA: dict[str, Any] = {
45
45
  "rollout": 0,
46
46
  "variants": {"environment": ["local"]},
47
47
  },
48
- const.Features.DEBUG_MISSING_VECTORS: {
49
- "rollout": 0,
50
- "variants": {"environment": ["local"]},
51
- },
48
+ const.Features.REBALANCE_ENABLED: {"rollout": 0, "variants": {"environment": ["local"]}},
52
49
  }
53
50
 
54
51
 
@@ -23,12 +23,14 @@ from typing import Any, Iterator, Type
23
23
  from unittest.mock import Mock
24
24
 
25
25
  import pytest
26
+ from pytest import FixtureRequest
26
27
  from pytest_lazy_fixtures import lazy_fixture
27
28
 
28
29
  from nucliadb_utils.storages.azure import AzureStorage
29
30
  from nucliadb_utils.storages.gcs import GCSStorage
30
31
  from nucliadb_utils.storages.local import LocalStorage
31
32
  from nucliadb_utils.storages.s3 import S3Storage
33
+ from nucliadb_utils.storages.storage import Storage
32
34
  from nucliadb_utils.utilities import Utility, clean_utility, set_utility
33
35
 
34
36
 
@@ -52,7 +54,7 @@ def hosted_nucliadb():
52
54
  nuclia_settings.onprem = original
53
55
 
54
56
 
55
- def get_testing_storage_backend():
57
+ def get_testing_storage_backend() -> str:
56
58
  """
57
59
  Default to gcs for linux users and s3 for macOS users. This is because some
58
60
  tests fail on macOS with the gcs backend with a weird nidx error (to be looked into).
@@ -72,7 +74,7 @@ def lazy_storage_fixture():
72
74
 
73
75
 
74
76
  @pytest.fixture(scope="function", params=lazy_storage_fixture())
75
- async def storage(request):
77
+ def storage(request: FixtureRequest) -> Iterator[Storage]:
76
78
  """
77
79
  Generic storage fixture that allows us to run the same tests for different storage backends.
78
80
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb_utils
3
- Version: 6.9.1.post5182
3
+ Version: 6.9.3.post5309
4
4
  Summary: NucliaDB util library
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -8,13 +8,12 @@ Project-URL: Homepage, https://nuclia.com
8
8
  Project-URL: Repository, https://github.com/nuclia/nucliadb
9
9
  Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Programming Language :: Python
11
- Classifier: Programming Language :: Python :: 3.9
12
11
  Classifier: Programming Language :: Python :: 3.10
13
12
  Classifier: Programming Language :: Python :: 3.11
14
13
  Classifier: Programming Language :: Python :: 3.12
15
14
  Classifier: Programming Language :: Python :: 3 :: Only
16
15
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
- Requires-Python: <4,>=3.9
16
+ Requires-Python: <4,>=3.10
18
17
  Description-Content-Type: text/markdown
19
18
  Requires-Dist: pydantic>=2.6
20
19
  Requires-Dist: pydantic-settings>=2.2
@@ -27,8 +26,9 @@ Requires-Dist: nats-py[nkeys]>=2.6.0
27
26
  Requires-Dist: PyNaCl
28
27
  Requires-Dist: pyjwt>=2.4.0
29
28
  Requires-Dist: mrflagly>=0.2.9
30
- Requires-Dist: nucliadb-protos>=6.9.1.post5182
31
- Requires-Dist: nucliadb-telemetry>=6.9.1.post5182
29
+ Requires-Dist: nidx-protos>=6.9.3.post5309
30
+ Requires-Dist: nucliadb-protos>=6.9.3.post5309
31
+ Requires-Dist: nucliadb-telemetry>=6.9.3.post5309
32
32
  Provides-Extra: cache
33
33
  Requires-Dist: redis>=4.3.4; extra == "cache"
34
34
  Requires-Dist: orjson>=3.6.7; extra == "cache"
@@ -1,10 +1,10 @@
1
1
  nucliadb_utils/__init__.py,sha256=EvBCH1iTODe-AgXm48aj4kVUt_Std3PeL8QnwimR5wI,895
2
2
  nucliadb_utils/asyncio_utils.py,sha256=h8Y-xpcFFRgNzaiIW0eidz7griAQa7ggbNk34-tAt2c,2888
3
3
  nucliadb_utils/authentication.py,sha256=5_b323v2ylJaJvM_0coeSQEtnD-p9IGD-6CPA6IXhik,6471
4
- nucliadb_utils/const.py,sha256=kgTPXlvVxJB_HPz9GkEigE94UNEkrnMECgrqhPW2Qi4,1537
4
+ nucliadb_utils/const.py,sha256=YtWadXGm044MbwLcfEImNC6skh3e4LKZDu6hjlO0qMU,1521
5
5
  nucliadb_utils/debug.py,sha256=Q56Nx9Dp7V2ae3CU2H0ztaZcHTJXdlflPLKLeOPZ170,2436
6
6
  nucliadb_utils/exceptions.py,sha256=y_3wk77WLVUtdo-5FtbBsdSkCtK_DsJkdWb5BoPn3qo,1094
7
- nucliadb_utils/featureflagging.py,sha256=kLIJT-AJe8AqTuL0sY9nn9r5Soax8EvqPangM6UygfM,2380
7
+ nucliadb_utils/featureflagging.py,sha256=ctd9Nqm_nhoedMIV2GC819-cSP5GlkLYXCRE0DbwxYU,2353
8
8
  nucliadb_utils/grpc.py,sha256=apu0uePnkGHCAT7GRQ9YZfRYyFj26kJ440i8jitbM3U,3314
9
9
  nucliadb_utils/helpers.py,sha256=eed7_E1MKh9eW3CpqOXka3OvLw5C9eJGC_R-1MPYdfY,3336
10
10
  nucliadb_utils/nats.py,sha256=U21Cfg36_IHd3ZLXEC4eZ7nZ1Soh_ZNFFwjryNyd2-8,15248
@@ -48,12 +48,12 @@ nucliadb_utils/storages/utils.py,sha256=F4Iboa_0_bhDQr-JOKD9sGPld_-hKwJW5ptyZdn9
48
48
  nucliadb_utils/tests/__init__.py,sha256=Oo9CAE7B0eW5VHn8sHd6o30SQzOWUhktLPRXdlDOleA,1456
49
49
  nucliadb_utils/tests/asyncbenchmark.py,sha256=vrX_x9ifCXi18PfNShc23w9x_VUiB_Ph-2nuolh9z3Q,10707
50
50
  nucliadb_utils/tests/azure.py,sha256=rt1KRSYZW1EYhKy4Q0i7IEL9vdoOU6BYw2__S51YfGg,5039
51
- nucliadb_utils/tests/fixtures.py,sha256=4lzz-khYvbGzdbT18IG6KKg40f7CVex2q3ho88I-jL8,3799
51
+ nucliadb_utils/tests/fixtures.py,sha256=-OeR4NhtXveBqN6sZa7KVaNwyUdsvJUxS_yFmIgF148,3923
52
52
  nucliadb_utils/tests/gcs.py,sha256=JNqp5ymeNNU9Ci8rNYTh7-VqP4fjybElhyB3ap7EV1c,4721
53
53
  nucliadb_utils/tests/local.py,sha256=z9E11_ol1mu7N8Y6PkjKl-WMPPMl7JqQbDj3uhVa1A0,1933
54
54
  nucliadb_utils/tests/nats.py,sha256=rbTaC6kv-u6SdZ7N-XBEGS40XCRiUmFUsKHIYWJfxTs,2325
55
55
  nucliadb_utils/tests/s3.py,sha256=kz9ULxrAYLVslZ59I8dtweZ9DJz5R8Ioy2XYrveZzHw,3829
56
- nucliadb_utils-6.9.1.post5182.dist-info/METADATA,sha256=dGTBvi_UgX0GMJnjJdJzb6DssdbGkAqz-nijk2NzvnQ,2180
57
- nucliadb_utils-6.9.1.post5182.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
58
- nucliadb_utils-6.9.1.post5182.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
59
- nucliadb_utils-6.9.1.post5182.dist-info/RECORD,,
56
+ nucliadb_utils-6.9.3.post5309.dist-info/METADATA,sha256=lua1Sfpli1IU0manJj5ckCynRTg69qmLHKzzaHJZ4WA,2174
57
+ nucliadb_utils-6.9.3.post5309.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
58
+ nucliadb_utils-6.9.3.post5309.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
59
+ nucliadb_utils-6.9.3.post5309.dist-info/RECORD,,