nucliadb-utils 6.2.1.post2829__py3-none-any.whl → 6.2.1.post2835__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/storages/gcs.py +6 -0
- nucliadb_utils/storages/s3.py +6 -0
- {nucliadb_utils-6.2.1.post2829.dist-info → nucliadb_utils-6.2.1.post2835.dist-info}/METADATA +3 -3
- {nucliadb_utils-6.2.1.post2829.dist-info → nucliadb_utils-6.2.1.post2835.dist-info}/RECORD +7 -7
- {nucliadb_utils-6.2.1.post2829.dist-info → nucliadb_utils-6.2.1.post2835.dist-info}/WHEEL +0 -0
- {nucliadb_utils-6.2.1.post2829.dist-info → nucliadb_utils-6.2.1.post2835.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-6.2.1.post2829.dist-info → nucliadb_utils-6.2.1.post2835.dist-info}/zip-safe +0 -0
nucliadb_utils/storages/gcs.py
CHANGED
@@ -728,6 +728,12 @@ class GCSStorage(Storage):
|
|
728
728
|
yield ObjectInfo(name=item["name"])
|
729
729
|
page_token = data.get("nextPageToken")
|
730
730
|
|
731
|
+
@backoff.on_exception(
|
732
|
+
backoff.expo,
|
733
|
+
RETRIABLE_EXCEPTIONS,
|
734
|
+
jitter=backoff.random_jitter,
|
735
|
+
max_tries=MAX_TRIES,
|
736
|
+
)
|
731
737
|
@storage_ops_observer.wrap({"type": "insert_object"})
|
732
738
|
async def insert_object(self, bucket_name: str, key: str, data: bytes) -> None:
|
733
739
|
"""
|
nucliadb_utils/storages/s3.py
CHANGED
@@ -485,6 +485,12 @@ class S3Storage(Storage):
|
|
485
485
|
deleted = True
|
486
486
|
return deleted, conflict
|
487
487
|
|
488
|
+
@backoff.on_exception(
|
489
|
+
backoff.expo,
|
490
|
+
RETRIABLE_EXCEPTIONS,
|
491
|
+
jitter=backoff.random_jitter,
|
492
|
+
max_tries=MAX_TRIES,
|
493
|
+
)
|
488
494
|
@s3_ops_observer.wrap({"type": "insert_object"})
|
489
495
|
async def insert_object(self, bucket_name: str, key: str, data: bytes) -> None:
|
490
496
|
await self._s3aioclient.put_object(
|
{nucliadb_utils-6.2.1.post2829.dist-info → nucliadb_utils-6.2.1.post2835.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 6.2.1.
|
3
|
+
Version: 6.2.1.post2835
|
4
4
|
Home-page: https://nuclia.com
|
5
5
|
License: BSD
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
@@ -24,8 +24,8 @@ 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.2.1.
|
28
|
-
Requires-Dist: nucliadb-telemetry>=6.2.1.
|
27
|
+
Requires-Dist: nucliadb-protos>=6.2.1.post2835
|
28
|
+
Requires-Dist: nucliadb-telemetry>=6.2.1.post2835
|
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"
|
@@ -42,11 +42,11 @@ nucliadb_utils/nuclia_usage/utils/kb_usage_report.py,sha256=F6dhQWhrWzl3qfAdvrqV
|
|
42
42
|
nucliadb_utils/storages/__init__.py,sha256=5Qc8AUWiJv9_JbGCBpAn88AIJhwDlm0OPQpg2ZdRL4U,872
|
43
43
|
nucliadb_utils/storages/azure.py,sha256=FK4c_v9AUAwagScm_F1uDmJeQQq7P4jZswiD2trwb4A,16394
|
44
44
|
nucliadb_utils/storages/exceptions.py,sha256=mm_wX4YRtp7u7enkk_4pMSlX5AQQuFbq4xLmupVDt3Y,2502
|
45
|
-
nucliadb_utils/storages/gcs.py,sha256=
|
45
|
+
nucliadb_utils/storages/gcs.py,sha256=iWfPDx_-LWmyOFzzqOsvXFYeW0Iig4x14ATPvvLE6Fw,28962
|
46
46
|
nucliadb_utils/storages/local.py,sha256=JxlWNtu49JJ04dq6o7bBAqbpbeYpVyvvBM5jq1sGJ-4,11003
|
47
47
|
nucliadb_utils/storages/nuclia.py,sha256=vEv94xAT7QM2g80S25QyrOw2pzvP2BAX-ADgZLtuCVc,2097
|
48
48
|
nucliadb_utils/storages/object_store.py,sha256=HtKjIKhErSBvuqx1SuCOnL0SkiHqgfyekNMP8o2piZU,4492
|
49
|
-
nucliadb_utils/storages/s3.py,sha256=
|
49
|
+
nucliadb_utils/storages/s3.py,sha256=pgakBqBLfDAFbdjwwX6u19QTv7gQYZ82Pjw67Yi6ob8,20895
|
50
50
|
nucliadb_utils/storages/settings.py,sha256=ugCPy1zxBOmA2KosT-4tsjpvP002kg5iQyi42yCGCJA,1285
|
51
51
|
nucliadb_utils/storages/storage.py,sha256=0v2o34sE-YOLQtJh7NItEQFFHXSu0FQ4Rs7I8228kF0,21025
|
52
52
|
nucliadb_utils/storages/utils.py,sha256=8g2rIwJeYIumQLOB47Yw1rx3twlhRB_cJxer65QfZmk,1479
|
@@ -59,8 +59,8 @@ nucliadb_utils/tests/indexing.py,sha256=YW2QhkhO9Q_8A4kKWJaWSvXvyQ_AiAwY1VylcfVQ
|
|
59
59
|
nucliadb_utils/tests/local.py,sha256=fXIBasrvdaFJM-sw2wk1_oiFzBcm9O10iCyC-OiXwY8,1914
|
60
60
|
nucliadb_utils/tests/nats.py,sha256=nykEfwxPc3F3aO8n7g_V7IY3RQBXU3_R_ukwBKxYXa8,7893
|
61
61
|
nucliadb_utils/tests/s3.py,sha256=pl-RJFjA4MH6iXkqhsh5g8gDuEhrYu1nPZ-laxlrMlE,3704
|
62
|
-
nucliadb_utils-6.2.1.
|
63
|
-
nucliadb_utils-6.2.1.
|
64
|
-
nucliadb_utils-6.2.1.
|
65
|
-
nucliadb_utils-6.2.1.
|
66
|
-
nucliadb_utils-6.2.1.
|
62
|
+
nucliadb_utils-6.2.1.post2835.dist-info/METADATA,sha256=KwZVJk5wY5SxTDZuETS_635KUdS_t26MDDckIUf_YcY,2204
|
63
|
+
nucliadb_utils-6.2.1.post2835.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
64
|
+
nucliadb_utils-6.2.1.post2835.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
65
|
+
nucliadb_utils-6.2.1.post2835.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
66
|
+
nucliadb_utils-6.2.1.post2835.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-6.2.1.post2829.dist-info → nucliadb_utils-6.2.1.post2835.dist-info}/top_level.txt
RENAMED
File without changes
|
{nucliadb_utils-6.2.1.post2829.dist-info → nucliadb_utils-6.2.1.post2835.dist-info}/zip-safe
RENAMED
File without changes
|