nucliadb-utils 4.0.0.post532__py3-none-any.whl → 4.0.0.post534__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/storages/storage.py +0 -8
- nucliadb_utils/tests/unit/storages/test_storage.py +0 -7
- {nucliadb_utils-4.0.0.post532.dist-info → nucliadb_utils-4.0.0.post534.dist-info}/METADATA +3 -3
- {nucliadb_utils-4.0.0.post532.dist-info → nucliadb_utils-4.0.0.post534.dist-info}/RECORD +7 -7
- {nucliadb_utils-4.0.0.post532.dist-info → nucliadb_utils-4.0.0.post534.dist-info}/WHEEL +0 -0
- {nucliadb_utils-4.0.0.post532.dist-info → nucliadb_utils-4.0.0.post534.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-4.0.0.post532.dist-info → nucliadb_utils-4.0.0.post534.dist-info}/zip-safe +0 -0
@@ -101,14 +101,6 @@ class StorageField:
|
|
101
101
|
async def exists(self) -> Optional[Dict[str, str]]:
|
102
102
|
raise NotImplementedError
|
103
103
|
|
104
|
-
def build_cf(self) -> CloudFile:
|
105
|
-
cf = CloudFile()
|
106
|
-
cf.bucket_name = self.bucket
|
107
|
-
cf.uri = self.key
|
108
|
-
cf.filename = "payload.pb"
|
109
|
-
cf.source = self.storage.source # type: ignore
|
110
|
-
return cf
|
111
|
-
|
112
104
|
async def copy(
|
113
105
|
self,
|
114
106
|
origin_uri: str,
|
@@ -52,13 +52,6 @@ class TestStorageField:
|
|
52
52
|
await storage_field.delete()
|
53
53
|
storage.delete_upload.assert_called_once_with("uri", "bucket")
|
54
54
|
|
55
|
-
def test_build_cf(self, storage_field: StorageField):
|
56
|
-
cf = CloudFile()
|
57
|
-
cf.bucket_name = "bucket"
|
58
|
-
cf.uri = "fullkey"
|
59
|
-
cf.filename = "payload.pb"
|
60
|
-
assert storage_field.build_cf() == cf
|
61
|
-
|
62
55
|
|
63
56
|
class StorageTest(Storage):
|
64
57
|
def __init__(self):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nucliadb-utils
|
3
|
-
Version: 4.0.0.
|
3
|
+
Version: 4.0.0.post534
|
4
4
|
Home-page: https://nuclia.com
|
5
5
|
License: BSD
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
@@ -22,8 +22,8 @@ Requires-Dist: PyNaCl
|
|
22
22
|
Requires-Dist: pyjwt >=2.4.0
|
23
23
|
Requires-Dist: memorylru >=1.1.2
|
24
24
|
Requires-Dist: mrflagly
|
25
|
-
Requires-Dist: nucliadb-protos >=4.0.0.
|
26
|
-
Requires-Dist: nucliadb-telemetry >=4.0.0.
|
25
|
+
Requires-Dist: nucliadb-protos >=4.0.0.post534
|
26
|
+
Requires-Dist: nucliadb-telemetry >=4.0.0.post534
|
27
27
|
Provides-Extra: cache
|
28
28
|
Requires-Dist: redis >=4.3.4 ; extra == 'cache'
|
29
29
|
Requires-Dist: orjson >=3.6.7 ; extra == 'cache'
|
@@ -38,7 +38,7 @@ nucliadb_utils/storages/nuclia.py,sha256=UfvRu92eqG1v-PE-UWH2x8KEJFqDqATMmUGFmEu
|
|
38
38
|
nucliadb_utils/storages/pg.py,sha256=vxx8FQIToA_C6CO1uu9W080yZl0SgUVtTEWd6lQhPJc,18610
|
39
39
|
nucliadb_utils/storages/s3.py,sha256=EYfn2CjoVL0tPFUqMaHgJYHjrSQaIUzLeNYoRa1qp-A,18809
|
40
40
|
nucliadb_utils/storages/settings.py,sha256=ugCPy1zxBOmA2KosT-4tsjpvP002kg5iQyi42yCGCJA,1285
|
41
|
-
nucliadb_utils/storages/storage.py,sha256=
|
41
|
+
nucliadb_utils/storages/storage.py,sha256=igV4CNjv5L09PTY4kqUsGhHzFvDUa_FbfLHxrfMSJDA,20324
|
42
42
|
nucliadb_utils/tests/__init__.py,sha256=Oo9CAE7B0eW5VHn8sHd6o30SQzOWUhktLPRXdlDOleA,1456
|
43
43
|
nucliadb_utils/tests/asyncbenchmark.py,sha256=rN_NNDk4ras0qgFp0QlRyAi9ZU9xITdzxl2s5CigzBo,10698
|
44
44
|
nucliadb_utils/tests/conftest.py,sha256=gPYVuVhj_e6Aeanb91wvUerwuxZgaS7d3luIBRQFIU0,1876
|
@@ -62,9 +62,9 @@ nucliadb_utils/tests/unit/storages/__init__.py,sha256=itSI7dtTwFP55YMX4iK7JzdMHS
|
|
62
62
|
nucliadb_utils/tests/unit/storages/test_aws.py,sha256=GCsB_jwCUNV3Ogt8TZZEmNKAHvOlR0HGU7blrFbtJqs,1924
|
63
63
|
nucliadb_utils/tests/unit/storages/test_gcs.py,sha256=2XzJwgNpfjVGjtE-QdZhu3ayuT1EMEXINdM-_SatPCY,3554
|
64
64
|
nucliadb_utils/tests/unit/storages/test_pg.py,sha256=sJfUttMSzq8W1XYolAUcMxl_R5HcEzb5fpCklPeMJiY,17000
|
65
|
-
nucliadb_utils/tests/unit/storages/test_storage.py,sha256=
|
66
|
-
nucliadb_utils-4.0.0.
|
67
|
-
nucliadb_utils-4.0.0.
|
68
|
-
nucliadb_utils-4.0.0.
|
69
|
-
nucliadb_utils-4.0.0.
|
70
|
-
nucliadb_utils-4.0.0.
|
65
|
+
nucliadb_utils/tests/unit/storages/test_storage.py,sha256=CwX4wO21og1pdw9IqnK4sFxBfKY3sPhQTd56AS7-Me8,6666
|
66
|
+
nucliadb_utils-4.0.0.post534.dist-info/METADATA,sha256=JRd5qA1iQgYk8KXloQdeOnasIbJakjU9fImT0uS-5OI,1979
|
67
|
+
nucliadb_utils-4.0.0.post534.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
68
|
+
nucliadb_utils-4.0.0.post534.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
69
|
+
nucliadb_utils-4.0.0.post534.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
70
|
+
nucliadb_utils-4.0.0.post534.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-4.0.0.post532.dist-info → nucliadb_utils-4.0.0.post534.dist-info}/top_level.txt
RENAMED
File without changes
|
File without changes
|