nucliadb-utils 6.7.0.post4800__py3-none-any.whl → 6.7.0.post4805__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.

@@ -51,7 +51,7 @@ from nucliadb_utils.utilities import get_local_storage, get_nuclia_storage
51
51
  STORAGE_RESOURCE = "kbs/{kbid}/r/{uuid}"
52
52
  RESOURCE_USER_RELATIONS = "kbs/{kbid}/r/{uuid}/user-relations"
53
53
  KB_RESOURCE_FIELD = "kbs/{kbid}/r/{uuid}/f/f/{field}"
54
- KB_CONVERSATION_FIELD = "kbs/{kbid}/r/{uuid}/f/c/{field}/{ident}/{count}"
54
+ KB_CONVERSATION_FIELD_ATTACHMENT = "kbs/{kbid}/r/{uuid}/f/c/{field}/{ident}/{attachment_index}"
55
55
  STORAGE_FILE_EXTRACTED = "kbs/{kbid}/r/{uuid}/e/{field_type}/{field}/{key}"
56
56
 
57
57
  DEADLETTER = "deadletter/{partition}/{seqid}/{seq}"
@@ -314,11 +314,13 @@ class Storage(abc.ABC, metaclass=abc.ABCMeta):
314
314
  raise InvalidCloudFile()
315
315
  return new_cf
316
316
 
317
- def conversation_field(
318
- self, kbid: str, uuid: str, field: str, ident: str, count: int
317
+ def conversation_field_attachment(
318
+ self, kbid: str, uuid: str, field: str, ident: str, attachment_index: int
319
319
  ) -> StorageField:
320
320
  bucket = self.get_bucket_name(kbid)
321
- key = KB_CONVERSATION_FIELD.format(kbid=kbid, uuid=uuid, field=field, ident=ident, count=count)
321
+ key = KB_CONVERSATION_FIELD_ATTACHMENT.format(
322
+ kbid=kbid, uuid=uuid, field=field, ident=ident, attachment_index=attachment_index
323
+ )
322
324
  return self.field_klass(storage=self, bucket=bucket, fullkey=key)
323
325
 
324
326
  def file_field(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb_utils
3
- Version: 6.7.0.post4800
3
+ Version: 6.7.0.post4805
4
4
  Summary: NucliaDB util library
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -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.7.0.post4800
31
- Requires-Dist: nucliadb-telemetry>=6.7.0.post4800
30
+ Requires-Dist: nucliadb-protos>=6.7.0.post4805
31
+ Requires-Dist: nucliadb-telemetry>=6.7.0.post4805
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=1mMXfC0hCJLlVnw-B_WWPWZrNyeYzW3bqQm3u-EE9T8,21707
49
49
  nucliadb_utils/storages/settings.py,sha256=ugCPy1zxBOmA2KosT-4tsjpvP002kg5iQyi42yCGCJA,1285
50
- nucliadb_utils/storages/storage.py,sha256=4pHkxjwhBpupklp-vFtRCUazlTsGF13LHuF-c2ooYNA,21852
50
+ nucliadb_utils/storages/storage.py,sha256=2EIgnaCN5XzKpienounOjQ2AX3ANtQA2Xgl6hnMpHr4,21951
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=kz9ULxrAYLVslZ59I8dtweZ9DJz5R8Ioy2XYrveZzHw,3829
60
- nucliadb_utils-6.7.0.post4800.dist-info/METADATA,sha256=FVW-Xz9g51WME73jozLH0yaRDpC9rLbjfB1FCXEvv4s,2180
61
- nucliadb_utils-6.7.0.post4800.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
62
- nucliadb_utils-6.7.0.post4800.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
63
- nucliadb_utils-6.7.0.post4800.dist-info/RECORD,,
60
+ nucliadb_utils-6.7.0.post4805.dist-info/METADATA,sha256=xVUwVAVC-msRCWFyQEKHSf14kdOIRA0VoXIno0uzQD8,2180
61
+ nucliadb_utils-6.7.0.post4805.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
62
+ nucliadb_utils-6.7.0.post4805.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
63
+ nucliadb_utils-6.7.0.post4805.dist-info/RECORD,,