nucliadb 6.7.0.post4742__py3-none-any.whl → 6.7.0.post4752__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/writer/tus/__init__.py +1 -0
- nucliadb/writer/tus/s3.py +5 -1
- {nucliadb-6.7.0.post4742.dist-info → nucliadb-6.7.0.post4752.dist-info}/METADATA +6 -6
- {nucliadb-6.7.0.post4742.dist-info → nucliadb-6.7.0.post4752.dist-info}/RECORD +7 -7
- {nucliadb-6.7.0.post4742.dist-info → nucliadb-6.7.0.post4752.dist-info}/WHEEL +0 -0
- {nucliadb-6.7.0.post4742.dist-info → nucliadb-6.7.0.post4752.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.7.0.post4742.dist-info → nucliadb-6.7.0.post4752.dist-info}/top_level.txt +0 -0
nucliadb/writer/tus/__init__.py
CHANGED
@@ -76,6 +76,7 @@ async def initialize():
|
|
76
76
|
region_name=storage_settings.s3_region_name,
|
77
77
|
bucket=storage_settings.s3_bucket,
|
78
78
|
bucket_tags=storage_settings.s3_bucket_tags,
|
79
|
+
kms_key_id=storage_settings.s3_kms_key_id,
|
79
80
|
)
|
80
81
|
|
81
82
|
storage_manager = S3FileStorageManager(storage_backend)
|
nucliadb/writer/tus/s3.py
CHANGED
@@ -177,7 +177,9 @@ class S3BlobStore(BlobStore):
|
|
177
177
|
async def create_bucket(self, bucket):
|
178
178
|
exists = await self.check_exists(bucket)
|
179
179
|
if not exists:
|
180
|
-
await create_bucket(
|
180
|
+
await create_bucket(
|
181
|
+
self._s3aioclient, bucket, self.bucket_tags, self.region_name, self.kms_key_id
|
182
|
+
)
|
181
183
|
return exists
|
182
184
|
|
183
185
|
async def finalize(self):
|
@@ -194,11 +196,13 @@ class S3BlobStore(BlobStore):
|
|
194
196
|
region_name,
|
195
197
|
bucket,
|
196
198
|
bucket_tags: Optional[dict[str, str]] = None,
|
199
|
+
kms_key_id: Optional[str] = None,
|
197
200
|
):
|
198
201
|
self.bucket = bucket
|
199
202
|
self.bucket_tags = bucket_tags
|
200
203
|
self.source = CloudFile.Source.S3
|
201
204
|
self.region_name = region_name
|
205
|
+
self.kms_key_id = kms_key_id
|
202
206
|
|
203
207
|
self._exit_stack = AsyncExitStack()
|
204
208
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.7.0.
|
3
|
+
Version: 6.7.0.post4752
|
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.7.0.
|
23
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.7.0.
|
24
|
-
Requires-Dist: nucliadb-protos>=6.7.0.
|
25
|
-
Requires-Dist: nucliadb-models>=6.7.0.
|
26
|
-
Requires-Dist: nidx-protos>=6.7.0.
|
22
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.7.0.post4752
|
23
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.7.0.post4752
|
24
|
+
Requires-Dist: nucliadb-protos>=6.7.0.post4752
|
25
|
+
Requires-Dist: nucliadb-models>=6.7.0.post4752
|
26
|
+
Requires-Dist: nidx-protos>=6.7.0.post4752
|
27
27
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
28
28
|
Requires-Dist: nuclia-models>=0.46.0
|
29
29
|
Requires-Dist: uvicorn[standard]
|
@@ -367,17 +367,17 @@ nucliadb/writer/resource/audit.py,sha256=FvxMZPzrNHtd31HgpZEvxzwAkbxJTZRhPLqRYYJ
|
|
367
367
|
nucliadb/writer/resource/basic.py,sha256=44GK8M9EEVoAUfGiabdLrrpENqeFwNn7qwxF2AHhQGg,10504
|
368
368
|
nucliadb/writer/resource/field.py,sha256=MhDbcOEw6KbOGBAnBFAKA_yxL2WrC7Ky2JrjB3iWf9c,20384
|
369
369
|
nucliadb/writer/resource/origin.py,sha256=pvhUDdU0mlWPUcpoQi4LDUJaRtfjzVVrA8XcGVI_N8k,2021
|
370
|
-
nucliadb/writer/tus/__init__.py,sha256=
|
370
|
+
nucliadb/writer/tus/__init__.py,sha256=Kera0BtxoDX0ngPftXiMjNgjrhtQ3l2XFc5nJqSBOJY,5498
|
371
371
|
nucliadb/writer/tus/azure.py,sha256=XhWAlWTM0vmXcXtuEPYjjeEhuZjiZXZu8q9WsJ7omFE,4107
|
372
372
|
nucliadb/writer/tus/dm.py,sha256=bVoXqt_dpNvTjpffPYhj1JfqK6gfLoPr0hdkknUCZ9E,5488
|
373
373
|
nucliadb/writer/tus/exceptions.py,sha256=WfZSSjsHfoy63wUFlH3QoHx7FMoCNA1oKJmWpZZDnCo,2156
|
374
374
|
nucliadb/writer/tus/gcs.py,sha256=iTo2Xd8w8oazBjxHpRICJh317AQcyhnC1n2i97Lsooo,14003
|
375
375
|
nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,5193
|
376
|
-
nucliadb/writer/tus/s3.py,sha256=
|
376
|
+
nucliadb/writer/tus/s3.py,sha256=vu1BGg4VqJ_x2P1u2BxqPKlSfw5orT_a3R-Ln5oPUpU,8483
|
377
377
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
378
378
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
379
|
-
nucliadb-6.7.0.
|
380
|
-
nucliadb-6.7.0.
|
381
|
-
nucliadb-6.7.0.
|
382
|
-
nucliadb-6.7.0.
|
383
|
-
nucliadb-6.7.0.
|
379
|
+
nucliadb-6.7.0.post4752.dist-info/METADATA,sha256=mRuPFs4UQ7_dCSXu6gI7IVp4eyYWgZCfOMzzLyYGN-U,4158
|
380
|
+
nucliadb-6.7.0.post4752.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
381
|
+
nucliadb-6.7.0.post4752.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
382
|
+
nucliadb-6.7.0.post4752.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
383
|
+
nucliadb-6.7.0.post4752.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|