mmar-mapi 1.0.5__py3-none-any.whl → 1.0.6__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 mmar-mapi might be problematic. Click here for more details.

mmar_mapi/file_storage.py CHANGED
@@ -61,6 +61,9 @@ class FileStorage:
61
61
 
62
62
  return str(fpath)
63
63
 
64
+ async def upload_async(self, content: bytes | str, fname: str) -> ResourceId:
65
+ return self.upload(content, fname)
66
+
64
67
  def upload_dir(self, resource_ids: list[ResourceId]) -> ResourceId:
65
68
  content = "\n".join(resource_ids)
66
69
  res = self.upload(content, "dir")
@@ -69,6 +72,9 @@ class FileStorage:
69
72
  def download(self, resource_id: ResourceId) -> bytes:
70
73
  return Path(resource_id).read_bytes()
71
74
 
75
+ async def download_async(self, resource_id: ResourceId) -> bytes:
76
+ return self.download(resource_id)
77
+
72
78
  def download_text(self, resource_id: ResourceId) -> str:
73
79
  return Path(resource_id).read_text(encoding="utf-8")
74
80
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mmar-mapi
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: Common pure/IO utilities for multi-modal architectures team
5
5
  Keywords:
6
6
  Author: Eugene Tagin
@@ -1,6 +1,6 @@
1
1
  mmar_mapi/__init__.py,sha256=cj3McZDG8zU1nLSMjwtVHG0u99xN7LaNLW90d4tK7Io,613
2
2
  mmar_mapi/api.py,sha256=C9Sr8dISvf51xfEznPjccI_odaG4coQE3HI_0jVpjMQ,1677
3
- mmar_mapi/file_storage.py,sha256=NbmCjTLinpWwZJRvNo7kuR1BiIIwUrsuw0xnl5R6A2g,4170
3
+ mmar_mapi/file_storage.py,sha256=GbahBabBdAKjlAnv1MszERUxxZyA9HGMiR9tz2a9dgY,4409
4
4
  mmar_mapi/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  mmar_mapi/models/base.py,sha256=mKtXV2x51XVj7W-et9tjGcPMDUUUMelW-BywMgFc2p0,411
6
6
  mmar_mapi/models/base_config_models/__init__.py,sha256=KjS_bSCka8BOMsigwcIML-e6eNB2ouMU6gxlhRmzeuY,44
@@ -13,7 +13,7 @@ mmar_mapi/models/widget.py,sha256=KXSP3d4yQNeificMfzRxROdByw9IkxwCjkDD0kc7tcQ,70
13
13
  mmar_mapi/type_union.py,sha256=diwmzcnbqkpGFckPHNw9o8zyQ955mOGNvhTlcBJ0RMI,1905
14
14
  mmar_mapi/utils.py,sha256=hcKJVslvTBLw2vjZ9zcKZxh_tqk48obHcVs_i3Rxn3M,112
15
15
  mmar_mapi/xml_parser.py,sha256=VvLIX_XCZao9i0qqpTVx8nx0vbFXSe8pEbdJdXnj97g,568
16
- mmar_mapi-1.0.5.dist-info/licenses/LICENSE,sha256=2A90w8WjhOgQXnFuUijKJYazaqZ4_NTokYb9Po4y-9k,1061
17
- mmar_mapi-1.0.5.dist-info/WHEEL,sha256=Jb20R3Ili4n9P1fcwuLup21eQ5r9WXhs4_qy7VTrgPI,79
18
- mmar_mapi-1.0.5.dist-info/METADATA,sha256=-lflaOAZ06lU3sUyvsCaweurmww3viGsfG5i3K9gUC8,914
19
- mmar_mapi-1.0.5.dist-info/RECORD,,
16
+ mmar_mapi-1.0.6.dist-info/licenses/LICENSE,sha256=2A90w8WjhOgQXnFuUijKJYazaqZ4_NTokYb9Po4y-9k,1061
17
+ mmar_mapi-1.0.6.dist-info/WHEEL,sha256=Jb20R3Ili4n9P1fcwuLup21eQ5r9WXhs4_qy7VTrgPI,79
18
+ mmar_mapi-1.0.6.dist-info/METADATA,sha256=dxEk5xdH21b8jW053i5ojhUkguzCkgJoZMRc_JIRyAo,914
19
+ mmar_mapi-1.0.6.dist-info/RECORD,,