mmar-mapi 1.0.5__tar.gz → 1.0.6__tar.gz
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-1.0.5 → mmar_mapi-1.0.6}/PKG-INFO +1 -1
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/pyproject.toml +1 -1
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/file_storage.py +6 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/LICENSE +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/README.md +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/__init__.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/api.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/models/__init__.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/models/base.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/models/base_config_models/__init__.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/models/base_config_models/gigachat_config.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/models/chat.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/models/chat_item.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/models/enums.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/models/tracks.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/models/widget.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/type_union.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/utils.py +0 -0
- {mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/xml_parser.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mmar-mapi"
|
|
3
3
|
# dynamic version is not supported yet on uv_build
|
|
4
|
-
version = "1.0.
|
|
4
|
+
version = "1.0.6"
|
|
5
5
|
description = "Common pure/IO utilities for multi-modal architectures team"
|
|
6
6
|
authors = [{name = "Eugene Tagin", email = "tagin@airi.net"}]
|
|
7
7
|
license = "MIT"
|
|
@@ -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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mmar_mapi-1.0.5 → mmar_mapi-1.0.6}/src/mmar_mapi/models/base_config_models/gigachat_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|