nucliadb-utils 6.0.0.post2233__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 +1 -0
- nucliadb_utils/featureflagging.py +4 -0
- nucliadb_utils/settings.py +1 -1
- nucliadb_utils/tests/gcs.py +2 -1
- nucliadb_utils/tests/local.py +4 -1
- nucliadb_utils/tests/s3.py +3 -2
- {nucliadb_utils-6.0.0.post2233.dist-info → nucliadb_utils-6.0.0.post2257.dist-info}/METADATA +7 -7
- {nucliadb_utils-6.0.0.post2233.dist-info → nucliadb_utils-6.0.0.post2257.dist-info}/RECORD +11 -11
- {nucliadb_utils-6.0.0.post2233.dist-info → nucliadb_utils-6.0.0.post2257.dist-info}/WHEEL +1 -1
- {nucliadb_utils-6.0.0.post2233.dist-info → nucliadb_utils-6.0.0.post2257.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-6.0.0.post2233.dist-info → nucliadb_utils-6.0.0.post2257.dist-info}/zip-safe +0 -0
nucliadb_utils/const.py
CHANGED
nucliadb_utils/settings.py
CHANGED
@@ -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=
|
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(
|
nucliadb_utils/tests/gcs.py
CHANGED
@@ -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://
|
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()
|
nucliadb_utils/tests/local.py
CHANGED
@@ -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(
|
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()
|
nucliadb_utils/tests/s3.py
CHANGED
@@ -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()
|
{nucliadb_utils-6.0.0.post2233.dist-info → nucliadb_utils-6.0.0.post2257.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 6.0.0.
|
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.
|
28
|
-
Requires-Dist: nucliadb-telemetry>=6.0.0.
|
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=
|
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=
|
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=
|
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=
|
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=
|
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=
|
62
|
-
nucliadb_utils-6.0.0.
|
63
|
-
nucliadb_utils-6.0.0.
|
64
|
-
nucliadb_utils-6.0.0.
|
65
|
-
nucliadb_utils-6.0.0.
|
66
|
-
nucliadb_utils-6.0.0.
|
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,,
|
{nucliadb_utils-6.0.0.post2233.dist-info → nucliadb_utils-6.0.0.post2257.dist-info}/top_level.txt
RENAMED
File without changes
|
{nucliadb_utils-6.0.0.post2233.dist-info → nucliadb_utils-6.0.0.post2257.dist-info}/zip-safe
RENAMED
File without changes
|