nucliadb-utils 6.3.1.post3557__py3-none-any.whl → 6.3.1.post3570__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/storage.py +6 -0
- {nucliadb_utils-6.3.1.post3557.dist-info → nucliadb_utils-6.3.1.post3570.dist-info}/METADATA +3 -3
- {nucliadb_utils-6.3.1.post3557.dist-info → nucliadb_utils-6.3.1.post3570.dist-info}/RECORD +5 -5
- {nucliadb_utils-6.3.1.post3557.dist-info → nucliadb_utils-6.3.1.post3570.dist-info}/WHEEL +1 -1
- {nucliadb_utils-6.3.1.post3557.dist-info → nucliadb_utils-6.3.1.post3570.dist-info}/top_level.txt +0 -0
@@ -48,6 +48,7 @@ from nucliadb_utils.storages.utils import ObjectInfo, ObjectMetadata, Range
|
|
48
48
|
from nucliadb_utils.utilities import get_local_storage, get_nuclia_storage
|
49
49
|
|
50
50
|
STORAGE_RESOURCE = "kbs/{kbid}/r/{uuid}"
|
51
|
+
RESOURCE_USER_RELATIONS = "kbs/{kbid}/r/{uuid}/user-relations"
|
51
52
|
KB_RESOURCE_FIELD = "kbs/{kbid}/r/{uuid}/f/f/{field}"
|
52
53
|
KB_CONVERSATION_FIELD = "kbs/{kbid}/r/{uuid}/f/c/{field}/{ident}/{count}"
|
53
54
|
STORAGE_FILE_EXTRACTED = "kbs/{kbid}/r/{uuid}/e/{field_type}/{field}/{key}"
|
@@ -341,6 +342,11 @@ class Storage(abc.ABC, metaclass=abc.ABCMeta):
|
|
341
342
|
)
|
342
343
|
return self.field_klass(storage=self, bucket=bucket, fullkey=key)
|
343
344
|
|
345
|
+
def user_relations(self, kbid: str, uuid: str) -> StorageField:
|
346
|
+
bucket = self.get_bucket_name(kbid)
|
347
|
+
key = RESOURCE_USER_RELATIONS.format(kbid=kbid, uuid=uuid)
|
348
|
+
return self.field_klass(storage=self, bucket=bucket, fullkey=key)
|
349
|
+
|
344
350
|
async def upload_b64file_to_cloudfile(
|
345
351
|
self,
|
346
352
|
sf: StorageField,
|
{nucliadb_utils-6.3.1.post3557.dist-info → nucliadb_utils-6.3.1.post3570.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 6.3.1.
|
3
|
+
Version: 6.3.1.post3570
|
4
4
|
Summary: NucliaDB util library
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
6
6
|
License: AGPL
|
@@ -27,8 +27,8 @@ Requires-Dist: nats-py[nkeys]>=2.6.0
|
|
27
27
|
Requires-Dist: PyNaCl
|
28
28
|
Requires-Dist: pyjwt>=2.4.0
|
29
29
|
Requires-Dist: mrflagly>=0.2.9
|
30
|
-
Requires-Dist: nucliadb-protos>=6.3.1.
|
31
|
-
Requires-Dist: nucliadb-telemetry>=6.3.1.
|
30
|
+
Requires-Dist: nucliadb-protos>=6.3.1.post3570
|
31
|
+
Requires-Dist: nucliadb-telemetry>=6.3.1.post3570
|
32
32
|
Provides-Extra: cache
|
33
33
|
Requires-Dist: redis>=4.3.4; extra == "cache"
|
34
34
|
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=2PueRP5Q3XOuWgKhj6B9Kp2fyBql5np0T400YRUbqn4,4535
|
48
48
|
nucliadb_utils/storages/s3.py,sha256=4-cs_uFC4ZoLHLTZqvGi8v3nQcbrPBFJZuIeWltkFHI,21026
|
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=zs3FE5TNQAT9VbV6RVxMFr9wxaX1FLAC8U_iupb1nf8,21661
|
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=vrX_x9ifCXi18PfNShc23w9x_VUiB_Ph-2nuolh9z3Q,10707
|
@@ -57,7 +57,7 @@ nucliadb_utils/tests/gcs.py,sha256=MBMzn_UHU5SU6iILuCsB5zU4umhNcaCw_MKrxZhwvOc,4
|
|
57
57
|
nucliadb_utils/tests/local.py,sha256=cxIfPrKuqs5Ef0nbrVYQQAH2mwc4E0iD9bC2sWegS-c,1934
|
58
58
|
nucliadb_utils/tests/nats.py,sha256=RWHjwqq5esuO7OFbP24yYX1cXnpPLcWJwDUdmwCpH28,1897
|
59
59
|
nucliadb_utils/tests/s3.py,sha256=DACUh3HvgH3BchKFZ9R7RFUzsrg3v9A-cxTcXx4nmvA,3734
|
60
|
-
nucliadb_utils-6.3.1.
|
61
|
-
nucliadb_utils-6.3.1.
|
62
|
-
nucliadb_utils-6.3.1.
|
63
|
-
nucliadb_utils-6.3.1.
|
60
|
+
nucliadb_utils-6.3.1.post3570.dist-info/METADATA,sha256=P7ebhivmRztE6_vaV4w7siv6Jf0LOXeMxB3dsF6fuu4,2209
|
61
|
+
nucliadb_utils-6.3.1.post3570.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
62
|
+
nucliadb_utils-6.3.1.post3570.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
63
|
+
nucliadb_utils-6.3.1.post3570.dist-info/RECORD,,
|
{nucliadb_utils-6.3.1.post3557.dist-info → nucliadb_utils-6.3.1.post3570.dist-info}/top_level.txt
RENAMED
File without changes
|