nucliadb-utils 6.0.0.post2224__py3-none-any.whl → 6.0.0.post2257__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_utils/const.py CHANGED
@@ -79,3 +79,4 @@ class Features:
79
79
  NATS_SYNC_ACK = "nucliadb_nats_sync_ack"
80
80
  LOG_REQUEST_PAYLOADS = "nucliadb_log_request_payloads"
81
81
  IGNORE_EXTRACTED_IN_SEARCH = "nucliadb_ignore_extracted_in_search"
82
+ NIDX_READS = "nucliadb_nidx_reads"
@@ -65,6 +65,10 @@ DEFAULT_FLAG_DATA: dict[str, Any] = {
65
65
  "rollout": 0,
66
66
  "variants": {"environment": ["local"]},
67
67
  },
68
+ const.Features.NIDX_READS: {
69
+ "rollout": 0,
70
+ "variants": {"environment": ["local"]},
71
+ },
68
72
  }
69
73
 
70
74
 
@@ -110,7 +110,7 @@ class StorageSettings(BaseSettings):
110
110
  description="If using LOCAL `file_backend` storage, directory where files should be stored",
111
111
  )
112
112
  local_indexing_bucket: Optional[str] = Field(
113
- default=None,
113
+ default="indexer",
114
114
  description="If using LOCAL `file_backend` storage, subdirectory where indexing data is stored",
115
115
  )
116
116
  upload_token_expiration: int = Field(
@@ -76,7 +76,7 @@ class GCS(BaseImage):
76
76
  def gcs():
77
77
  container = GCS()
78
78
  host, port = container.run()
79
- public_api_url = f"http://{host}:{port}"
79
+ public_api_url = f"http://172.17.0.1:{port}"
80
80
  yield public_api_url
81
81
  container.stop()
82
82
 
@@ -120,5 +120,6 @@ async def gcs_storage(gcs, gcs_storage_settings: dict[str, Any]):
120
120
  anonymous=True,
121
121
  )
122
122
  await storage.initialize()
123
+ await storage.create_bucket("nidx")
123
124
  yield storage
124
125
  await storage.finalize()
@@ -46,7 +46,10 @@ def local_storage_settings(tmp_path: Path) -> dict[str, Any]:
46
46
  async def local_storage(local_storage_settings: dict[str, Any]):
47
47
  assert storage_settings.local_files is not None
48
48
 
49
- storage = LocalStorage(local_testing_files=storage_settings.local_files)
49
+ storage = LocalStorage(
50
+ local_testing_files=storage_settings.local_files,
51
+ indexing_bucket=storage_settings.local_indexing_bucket,
52
+ )
50
53
  await storage.initialize()
51
54
  yield storage
52
55
  await storage.finalize()
@@ -66,8 +66,8 @@ async def s3_storage_settings(s3) -> dict[str, Any]:
66
66
  settings = {
67
67
  "file_backend": FileBackendConfig.S3,
68
68
  "s3_endpoint": s3,
69
- "s3_client_id": "",
70
- "s3_client_secret": "",
69
+ "s3_client_id": "fake",
70
+ "s3_client_secret": "fake",
71
71
  "s3_ssl": False,
72
72
  "s3_verify_ssl": False,
73
73
  "s3_region_name": None,
@@ -106,5 +106,6 @@ async def s3_storage(s3, s3_storage_settings: dict[str, Any]):
106
106
  bucket_tags=storage_settings.s3_bucket_tags,
107
107
  )
108
108
  await storage.initialize()
109
+ await storage.create_bucket("nidx")
109
110
  yield storage
110
111
  await storage.finalize()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nucliadb_utils
3
- Version: 6.0.0.post2224
3
+ Version: 6.0.0.post2257
4
4
  Home-page: https://nuclia.com
5
5
  License: BSD
6
6
  Classifier: Development Status :: 4 - Beta
@@ -24,16 +24,12 @@ Requires-Dist: PyNaCl
24
24
  Requires-Dist: pyjwt>=2.4.0
25
25
  Requires-Dist: memorylru>=1.1.2
26
26
  Requires-Dist: mrflagly>=0.2.9
27
- Requires-Dist: nucliadb-protos>=6.0.0.post2224
28
- Requires-Dist: nucliadb-telemetry>=6.0.0.post2224
27
+ Requires-Dist: nucliadb-protos>=6.0.0.post2257
28
+ Requires-Dist: nucliadb-telemetry>=6.0.0.post2257
29
29
  Provides-Extra: cache
30
30
  Requires-Dist: redis>=4.3.4; extra == "cache"
31
31
  Requires-Dist: orjson>=3.6.7; extra == "cache"
32
32
  Requires-Dist: lru-dict>=1.1.7; extra == "cache"
33
- Provides-Extra: fastapi
34
- Requires-Dist: fastapi>=0.95.2; extra == "fastapi"
35
- Requires-Dist: starlette>=0.21.0; extra == "fastapi"
36
- Requires-Dist: uvicorn; extra == "fastapi"
37
33
  Provides-Extra: storages
38
34
  Requires-Dist: oauth2client>=4.1.3; extra == "storages"
39
35
  Requires-Dist: aiobotocore>=2.9.0; extra == "storages"
@@ -44,6 +40,10 @@ Requires-Dist: backoff>=1.11.1; extra == "storages"
44
40
  Requires-Dist: google-auth>=2.4.1; extra == "storages"
45
41
  Requires-Dist: azure-storage-blob==12.20.0; extra == "storages"
46
42
  Requires-Dist: azure-identity>=1.16.1; extra == "storages"
43
+ Provides-Extra: fastapi
44
+ Requires-Dist: fastapi>=0.95.2; extra == "fastapi"
45
+ Requires-Dist: starlette>=0.21.0; extra == "fastapi"
46
+ Requires-Dist: uvicorn; extra == "fastapi"
47
47
 
48
48
  # nucliadb util python library
49
49
 
@@ -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=N__d2Ez3JHJv5asYK5TgUcIkKqcAC8ZTLlnfLhfSneM,5837
4
- nucliadb_utils/const.py,sha256=tnNPU09LdR13nCYiIoTfzUkQ46_hjbqWJPtv61iiGn8,2438
4
+ nucliadb_utils/const.py,sha256=_UhW7A3VC0EG-OQDse4maZdP8hfsI_NQrLfBkonEFtA,2477
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=7oOWh5NEyrbaV-6OgGOOhJIQ0zITkSA2_V_BFtSRR4E,2843
7
+ nucliadb_utils/featureflagging.py,sha256=dKp8u4g52KTcupKFJkdGYk3Z2pGQdi_q7IaoY_GQ0nE,2953
8
8
  nucliadb_utils/grpc.py,sha256=apu0uePnkGHCAT7GRQ9YZfRYyFj26kJ440i8jitbM3U,3314
9
9
  nucliadb_utils/helpers.py,sha256=nPw8yod3hP-pxq80VF8QC36s7ygSg0dBUdfI-LatvCs,1600
10
10
  nucliadb_utils/indexing.py,sha256=Luaqcar3CySpdYOFp6Q9Fyr8ZYwhYhaKRHQ_VGL78f8,2318
@@ -12,7 +12,7 @@ nucliadb_utils/nats.py,sha256=prs98dIrGh2-WchQcRBloc5wYhpjEnB0VtCERPnoReg,8430
12
12
  nucliadb_utils/partition.py,sha256=jBgy4Hu5Iwn4gjbPPcthSykwf-qNx-GcLAIwbzPd1d0,1157
13
13
  nucliadb_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  nucliadb_utils/run.py,sha256=HpAIM8xbR7UpVC2_7xOjB4fYbUVykyPP6yHrv2RD3DI,1707
15
- nucliadb_utils/settings.py,sha256=u1JXTUSL6MlZvZkRqrLHiSHtxFVgtpQtFBKb6PBQ1Ls,8139
15
+ nucliadb_utils/settings.py,sha256=BOuYTh08cJe7UgBgU9ALHCJm6eDezbdPsdAXM4HGEgo,8144
16
16
  nucliadb_utils/signals.py,sha256=JRNv2y9zLtBjOANBf7krGfDGfOc9qcoXZ6N1nKWS2FE,2674
17
17
  nucliadb_utils/store.py,sha256=kQ35HemE0v4_Qg6xVqNIJi8vSFAYQtwI3rDtMsNy62Y,890
18
18
  nucliadb_utils/transaction.py,sha256=6N2JyUKqH5MCaWnWSR7_fFV4ky_OAbIEtY5hdOw6Z7Q,7740
@@ -54,13 +54,13 @@ nucliadb_utils/tests/__init__.py,sha256=Oo9CAE7B0eW5VHn8sHd6o30SQzOWUhktLPRXdlDO
54
54
  nucliadb_utils/tests/asyncbenchmark.py,sha256=x4be2IwCawle9zWgMOJkmwoUwk5p1tv7cLQGmybkEOg,10587
55
55
  nucliadb_utils/tests/azure.py,sha256=Dg-Eb4KVScG-O6P9y-bVQZTAKTNUMQ0i-CKEd9IdrWw,4474
56
56
  nucliadb_utils/tests/fixtures.py,sha256=i0sqPqe5a5JlKGFdaIvOlHYkZ3pHZ2hTIgTsaIB3vSM,3472
57
- nucliadb_utils/tests/gcs.py,sha256=AORrCo-LTly-g8xAzajCH4EGAzF6PcXt48tLGjq5DLg,4458
57
+ nucliadb_utils/tests/gcs.py,sha256=weTGkuPyAbOzUwlXC4VHGQMJG1iKlsny842yJ8wslhk,4502
58
58
  nucliadb_utils/tests/indexing.py,sha256=YW2QhkhO9Q_8A4kKWJaWSvXvyQ_AiAwY1VylcfVQFxk,1513
59
- nucliadb_utils/tests/local.py,sha256=7nuP8EFUAiA8ZH50R1iPV9EUXBySQxOanVm3Zht_e0g,1835
59
+ nucliadb_utils/tests/local.py,sha256=fXIBasrvdaFJM-sw2wk1_oiFzBcm9O10iCyC-OiXwY8,1914
60
60
  nucliadb_utils/tests/nats.py,sha256=xqpww4jZjTKY9oPGlJdDJG67L3FIBQsa9qDHxILR8r8,7687
61
- nucliadb_utils/tests/s3.py,sha256=IdMxK_cNdSHLvO1u8BwsKFzD87Hk1MVPDZ57zx6h-rA,3656
62
- nucliadb_utils-6.0.0.post2224.dist-info/METADATA,sha256=K7G0qHL1lAcMHZGITXXrdCLZsTP8OtPT8bXj8v7FEeg,2055
63
- nucliadb_utils-6.0.0.post2224.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
64
- nucliadb_utils-6.0.0.post2224.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
65
- nucliadb_utils-6.0.0.post2224.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
66
- nucliadb_utils-6.0.0.post2224.dist-info/RECORD,,
61
+ nucliadb_utils/tests/s3.py,sha256=pl-RJFjA4MH6iXkqhsh5g8gDuEhrYu1nPZ-laxlrMlE,3704
62
+ nucliadb_utils-6.0.0.post2257.dist-info/METADATA,sha256=LB8pz8ow0aDj0mey_2BiWXrBw5AcYxqA2pekdK6Cjb0,2055
63
+ nucliadb_utils-6.0.0.post2257.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
64
+ nucliadb_utils-6.0.0.post2257.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
65
+ nucliadb_utils-6.0.0.post2257.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
66
+ nucliadb_utils-6.0.0.post2257.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.5.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5