microsoft-agents-storage-cosmos 0.5.0.dev11__py3-none-any.whl → 0.5.0.dev19__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.
- microsoft_agents/storage/cosmos/cosmos_db_storage.py +4 -4
- {microsoft_agents_storage_cosmos-0.5.0.dev11.dist-info → microsoft_agents_storage_cosmos-0.5.0.dev19.dist-info}/METADATA +7 -2
- {microsoft_agents_storage_cosmos-0.5.0.dev11.dist-info → microsoft_agents_storage_cosmos-0.5.0.dev19.dist-info}/RECORD +6 -6
- {microsoft_agents_storage_cosmos-0.5.0.dev11.dist-info → microsoft_agents_storage_cosmos-0.5.0.dev19.dist-info}/WHEEL +0 -0
- {microsoft_agents_storage_cosmos-0.5.0.dev11.dist-info → microsoft_agents_storage_cosmos-0.5.0.dev19.dist-info}/licenses/LICENSE +0 -0
- {microsoft_agents_storage_cosmos-0.5.0.dev11.dist-info → microsoft_agents_storage_cosmos-0.5.0.dev19.dist-info}/top_level.txt +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Licensed under the MIT License.
|
|
3
3
|
|
|
4
4
|
from typing import TypeVar, Union
|
|
5
|
-
|
|
5
|
+
import asyncio
|
|
6
6
|
|
|
7
7
|
from azure.cosmos import (
|
|
8
8
|
documents,
|
|
@@ -49,7 +49,7 @@ class CosmosDBStorage(AsyncStorageBase):
|
|
|
49
49
|
self._container: ContainerProxy = None
|
|
50
50
|
self._compatability_mode_partition_key: bool = False
|
|
51
51
|
# Lock used for synchronizing container creation
|
|
52
|
-
self._lock: Lock = Lock()
|
|
52
|
+
self._lock: asyncio.Lock = asyncio.Lock()
|
|
53
53
|
|
|
54
54
|
def _create_client(self) -> CosmosClient:
|
|
55
55
|
if self._config.url:
|
|
@@ -164,8 +164,8 @@ class CosmosDBStorage(AsyncStorageBase):
|
|
|
164
164
|
|
|
165
165
|
async def initialize(self) -> None:
|
|
166
166
|
if not self._container:
|
|
167
|
-
with self._lock:
|
|
168
|
-
# in case another
|
|
167
|
+
async with self._lock:
|
|
168
|
+
# in case another async task attempted to initialize just before acquiring the lock
|
|
169
169
|
if self._container:
|
|
170
170
|
return
|
|
171
171
|
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: microsoft-agents-storage-cosmos
|
|
3
|
-
Version: 0.5.0.
|
|
3
|
+
Version: 0.5.0.dev19
|
|
4
4
|
Summary: A Cosmos DB storage library for Microsoft Agents
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://github.com/microsoft/Agents
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
9
14
|
Classifier: Operating System :: OS Independent
|
|
10
15
|
Requires-Python: >=3.10
|
|
11
16
|
Description-Content-Type: text/markdown
|
|
12
17
|
License-File: LICENSE
|
|
13
|
-
Requires-Dist: microsoft-agents-hosting-core==0.5.0.
|
|
18
|
+
Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev19
|
|
14
19
|
Requires-Dist: azure-core
|
|
15
20
|
Requires-Dist: azure-cosmos
|
|
16
21
|
Dynamic: license-file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
microsoft_agents/storage/cosmos/__init__.py,sha256=2JVNhbohUB-Pm8LmgagHQH3vlEgljpUzbfPhdOS-rCQ,174
|
|
2
|
-
microsoft_agents/storage/cosmos/cosmos_db_storage.py,sha256=
|
|
2
|
+
microsoft_agents/storage/cosmos/cosmos_db_storage.py,sha256=yqU51Ji0wceuHKtppa2oQDrBqXI0LFi69OPGDe2mh8o,6529
|
|
3
3
|
microsoft_agents/storage/cosmos/cosmos_db_storage_config.py,sha256=a2-s7Kj5RbYnVU0CyB60dEG501-oRcSXZTQ--_QlISA,4143
|
|
4
4
|
microsoft_agents/storage/cosmos/key_ops.py,sha256=2wnSdSpKzwoCvw4giNn68pBDOa1Gc1jyvEhk2tc_gPQ,1747
|
|
5
|
-
microsoft_agents_storage_cosmos-0.5.0.
|
|
6
|
-
microsoft_agents_storage_cosmos-0.5.0.
|
|
7
|
-
microsoft_agents_storage_cosmos-0.5.0.
|
|
8
|
-
microsoft_agents_storage_cosmos-0.5.0.
|
|
9
|
-
microsoft_agents_storage_cosmos-0.5.0.
|
|
5
|
+
microsoft_agents_storage_cosmos-0.5.0.dev19.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
|
|
6
|
+
microsoft_agents_storage_cosmos-0.5.0.dev19.dist-info/METADATA,sha256=h0J0yIK-lvC3Uv_f9VrDI1kU8OXssXLZoX8frxNjzJo,7394
|
|
7
|
+
microsoft_agents_storage_cosmos-0.5.0.dev19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
microsoft_agents_storage_cosmos-0.5.0.dev19.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
|
|
9
|
+
microsoft_agents_storage_cosmos-0.5.0.dev19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|