nucliadb-utils 4.0.4.post606__py3-none-any.whl → 5.0.0.post607__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 -6
- {nucliadb_utils-4.0.4.post606.dist-info → nucliadb_utils-5.0.0.post607.dist-info}/METADATA +3 -3
- {nucliadb_utils-4.0.4.post606.dist-info → nucliadb_utils-5.0.0.post607.dist-info}/RECORD +6 -6
- {nucliadb_utils-4.0.4.post606.dist-info → nucliadb_utils-5.0.0.post607.dist-info}/WHEEL +0 -0
- {nucliadb_utils-4.0.4.post606.dist-info → nucliadb_utils-5.0.0.post607.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-4.0.4.post606.dist-info → nucliadb_utils-5.0.0.post607.dist-info}/zip-safe +0 -0
@@ -48,7 +48,6 @@ from nucliadb_utils.utilities import get_local_storage, get_nuclia_storage
|
|
48
48
|
|
49
49
|
STORAGE_RESOURCE = "kbs/{kbid}/r/{uuid}"
|
50
50
|
KB_RESOURCE_FIELD = "kbs/{kbid}/r/{uuid}/f/f/{field}"
|
51
|
-
KB_LAYOUT_FIELD = "kbs/{kbid}/r/{uuid}/f/l/{field}/{ident}"
|
52
51
|
KB_CONVERSATION_FIELD = "kbs/{kbid}/r/{uuid}/f/c/{field}/{ident}/{count}"
|
53
52
|
STORAGE_FILE_EXTRACTED = "kbs/{kbid}/r/{uuid}/e/{field_type}/{field}/{key}"
|
54
53
|
|
@@ -308,11 +307,6 @@ class Storage(abc.ABC, metaclass=abc.ABCMeta):
|
|
308
307
|
key = KB_CONVERSATION_FIELD.format(kbid=kbid, uuid=uuid, field=field, ident=ident, count=count)
|
309
308
|
return self.field_klass(storage=self, bucket=bucket, fullkey=key)
|
310
309
|
|
311
|
-
def layout_field(self, kbid: str, uuid: str, field: str, ident: str) -> StorageField:
|
312
|
-
bucket = self.get_bucket_name(kbid)
|
313
|
-
key = KB_LAYOUT_FIELD.format(kbid=kbid, uuid=uuid, field=field, ident=ident)
|
314
|
-
return self.field_klass(storage=self, bucket=bucket, fullkey=key)
|
315
|
-
|
316
310
|
def file_field(
|
317
311
|
self,
|
318
312
|
kbid: str,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version:
|
3
|
+
Version: 5.0.0.post607
|
4
4
|
Home-page: https://nuclia.com
|
5
5
|
License: BSD
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
@@ -23,8 +23,8 @@ Requires-Dist: PyNaCl
|
|
23
23
|
Requires-Dist: pyjwt >=2.4.0
|
24
24
|
Requires-Dist: memorylru >=1.1.2
|
25
25
|
Requires-Dist: mrflagly
|
26
|
-
Requires-Dist: nucliadb-protos >=
|
27
|
-
Requires-Dist: nucliadb-telemetry >=
|
26
|
+
Requires-Dist: nucliadb-protos >=5.0.0.post607
|
27
|
+
Requires-Dist: nucliadb-telemetry >=5.0.0.post607
|
28
28
|
Provides-Extra: cache
|
29
29
|
Requires-Dist: redis >=4.3.4 ; extra == 'cache'
|
30
30
|
Requires-Dist: orjson >=3.6.7 ; extra == 'cache'
|
@@ -47,7 +47,7 @@ nucliadb_utils/storages/nuclia.py,sha256=vEv94xAT7QM2g80S25QyrOw2pzvP2BAX-ADgZLt
|
|
47
47
|
nucliadb_utils/storages/object_store.py,sha256=Tw10GmpYfM5TMqJ3Tk9pLQ9wLMBk1-snL_m6uasiZDQ,4257
|
48
48
|
nucliadb_utils/storages/s3.py,sha256=8KV-V7EiqRYhXYlGN0UjzM-v1Pj2Zh7NtXDikG96knU,19272
|
49
49
|
nucliadb_utils/storages/settings.py,sha256=ugCPy1zxBOmA2KosT-4tsjpvP002kg5iQyi42yCGCJA,1285
|
50
|
-
nucliadb_utils/storages/storage.py,sha256=
|
50
|
+
nucliadb_utils/storages/storage.py,sha256=gknIjRiHZ_f0EhTVYKVRgT4VqMlgDy9Ia6Av_1zz1tk,19706
|
51
51
|
nucliadb_utils/storages/utils.py,sha256=8g2rIwJeYIumQLOB47Yw1rx3twlhRB_cJxer65QfZmk,1479
|
52
52
|
nucliadb_utils/tests/__init__.py,sha256=Oo9CAE7B0eW5VHn8sHd6o30SQzOWUhktLPRXdlDOleA,1456
|
53
53
|
nucliadb_utils/tests/asyncbenchmark.py,sha256=x4be2IwCawle9zWgMOJkmwoUwk5p1tv7cLQGmybkEOg,10587
|
@@ -58,8 +58,8 @@ nucliadb_utils/tests/indexing.py,sha256=YW2QhkhO9Q_8A4kKWJaWSvXvyQ_AiAwY1VylcfVQ
|
|
58
58
|
nucliadb_utils/tests/local.py,sha256=c3gZJJWmvOftruJkIQIwB3q_hh3uxEhqGIAVWim1Bbk,1343
|
59
59
|
nucliadb_utils/tests/nats.py,sha256=Tosonm9A9cusImyji80G4pgdXEHNVPaCLT5TbFK_ra0,7543
|
60
60
|
nucliadb_utils/tests/s3.py,sha256=YB8QqDaBXxyhHonEHmeBbRRDmvB7sTOaKBSi8KBGokg,2330
|
61
|
-
nucliadb_utils-
|
62
|
-
nucliadb_utils-
|
63
|
-
nucliadb_utils-
|
64
|
-
nucliadb_utils-
|
65
|
-
nucliadb_utils-
|
61
|
+
nucliadb_utils-5.0.0.post607.dist-info/METADATA,sha256=YcNEJ8OeHZUR4m9qTDjRwBZEUujKUV75NP_5yFyjgjU,2157
|
62
|
+
nucliadb_utils-5.0.0.post607.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
63
|
+
nucliadb_utils-5.0.0.post607.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
64
|
+
nucliadb_utils-5.0.0.post607.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
65
|
+
nucliadb_utils-5.0.0.post607.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-4.0.4.post606.dist-info → nucliadb_utils-5.0.0.post607.dist-info}/top_level.txt
RENAMED
File without changes
|
File without changes
|