swarmauri_transport_aws_eventstream 0.1.0.dev1__tar.gz → 0.1.0.dev2__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.
- swarmauri_transport_aws_eventstream-0.1.0.dev2/NOTICE +4 -0
- {swarmauri_transport_aws_eventstream-0.1.0.dev1 → swarmauri_transport_aws_eventstream-0.1.0.dev2}/PKG-INFO +13 -6
- {swarmauri_transport_aws_eventstream-0.1.0.dev1 → swarmauri_transport_aws_eventstream-0.1.0.dev2}/README.md +6 -2
- {swarmauri_transport_aws_eventstream-0.1.0.dev1 → swarmauri_transport_aws_eventstream-0.1.0.dev2}/pyproject.toml +6 -4
- {swarmauri_transport_aws_eventstream-0.1.0.dev1 → swarmauri_transport_aws_eventstream-0.1.0.dev2}/swarmauri_transport_aws_eventstream/AwsEventStreamClient.py +3 -0
- {swarmauri_transport_aws_eventstream-0.1.0.dev1 → swarmauri_transport_aws_eventstream-0.1.0.dev2}/LICENSE +0 -0
- {swarmauri_transport_aws_eventstream-0.1.0.dev1 → swarmauri_transport_aws_eventstream-0.1.0.dev2}/swarmauri_transport_aws_eventstream/AwsEventStreamCodec.py +0 -0
- {swarmauri_transport_aws_eventstream-0.1.0.dev1 → swarmauri_transport_aws_eventstream-0.1.0.dev2}/swarmauri_transport_aws_eventstream/AwsEventStreamConnection.py +0 -0
- {swarmauri_transport_aws_eventstream-0.1.0.dev1 → swarmauri_transport_aws_eventstream-0.1.0.dev2}/swarmauri_transport_aws_eventstream/AwsEventStreamError.py +0 -0
- {swarmauri_transport_aws_eventstream-0.1.0.dev1 → swarmauri_transport_aws_eventstream-0.1.0.dev2}/swarmauri_transport_aws_eventstream/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: swarmauri_transport_aws_eventstream
|
|
3
|
-
Version: 0.1.0.
|
|
3
|
+
Version: 0.1.0.dev2
|
|
4
4
|
Summary: Amazon Bedrock bidirectional EventStream transport for Swarmauri live models.
|
|
5
5
|
License: Copyright 2024 Jacob Stewart
|
|
6
6
|
|
|
@@ -16,10 +16,11 @@ License: Copyright 2024 Jacob Stewart
|
|
|
16
16
|
See the License for the specific language governing permissions and
|
|
17
17
|
limitations under the License.
|
|
18
18
|
License-File: LICENSE
|
|
19
|
+
License-File: NOTICE
|
|
19
20
|
Keywords: swarmauri,transport,aws,amazon bedrock,eventstream,bidirectional,nova sonic,smithy,http2
|
|
20
21
|
Author: Jacob Stewart
|
|
21
22
|
Author-email: jacob@swarmauri.com
|
|
22
|
-
Requires-Python: >=3.10,<3.
|
|
23
|
+
Requires-Python: >=3.10,<3.15
|
|
23
24
|
Classifier: Development Status :: 1 - Planning
|
|
24
25
|
Classifier: Intended Audience :: Developers
|
|
25
26
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -27,12 +28,14 @@ Classifier: Programming Language :: Python :: 3
|
|
|
27
28
|
Classifier: Programming Language :: Python :: 3.10
|
|
28
29
|
Classifier: Programming Language :: Python :: 3.11
|
|
29
30
|
Classifier: Programming Language :: Python :: 3.12
|
|
31
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
32
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
30
33
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
31
34
|
Classifier: Topic :: Software Development :: Libraries
|
|
32
35
|
Requires-Dist: aws-sdk-bedrock-runtime (>=0.2.0,<0.3.0) ; python_version >= "3.12"
|
|
33
36
|
Requires-Dist: botocore (>=1.35)
|
|
34
|
-
Requires-Dist: swarmauri_base (>=0.11.0.
|
|
35
|
-
Requires-Dist: swarmauri_core (>=0.11.0.
|
|
37
|
+
Requires-Dist: swarmauri_base (>=0.11.0.dev13,<0.12)
|
|
38
|
+
Requires-Dist: swarmauri_core (>=0.11.0.dev8,<0.12)
|
|
36
39
|
Project-URL: Documentation, https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_aws_eventstream#readme
|
|
37
40
|
Project-URL: Homepage, https://github.com/swarmauri/swarmauri-sdk
|
|
38
41
|
Project-URL: Repository, https://github.com/swarmauri/swarmauri-sdk
|
|
@@ -41,7 +44,11 @@ Description-Content-Type: text/markdown
|
|
|
41
44
|
|
|
42
45
|

|
|
43
46
|
|
|
44
|
-
[](https://pypi.org/project/swarmauri_transport_aws_eventstream/)
|
|
48
|
+
[](https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_aws_eventstream)
|
|
49
|
+
[](https://pypi.org/project/swarmauri_transport_aws_eventstream/)
|
|
50
|
+
[](LICENSE)
|
|
51
|
+
[](https://pypi.org/project/swarmauri_transport_aws_eventstream/)
|
|
45
52
|
|
|
46
53
|
# swarmauri_transport_aws_eventstream
|
|
47
54
|
|
|
@@ -61,7 +68,7 @@ mapping.
|
|
|
61
68
|
- Converts AWS stream exception events into `AwsEventStreamError`.
|
|
62
69
|
- Keeps credentials out of serialized component state.
|
|
63
70
|
|
|
64
|
-
The codec and package metadata support Python 3.10 through 3.
|
|
71
|
+
The codec and package metadata support Python 3.10 through 3.14. Amazon's
|
|
65
72
|
official `aws-sdk-bedrock-runtime` currently requires Python 3.12, so opening a
|
|
66
73
|
live Bedrock connection requires Python 3.12.
|
|
67
74
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
[](https://pypi.org/project/swarmauri_transport_aws_eventstream/)
|
|
4
|
+
[](https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_aws_eventstream)
|
|
5
|
+
[](https://pypi.org/project/swarmauri_transport_aws_eventstream/)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
[](https://pypi.org/project/swarmauri_transport_aws_eventstream/)
|
|
4
8
|
|
|
5
9
|
# swarmauri_transport_aws_eventstream
|
|
6
10
|
|
|
@@ -20,7 +24,7 @@ mapping.
|
|
|
20
24
|
- Converts AWS stream exception events into `AwsEventStreamError`.
|
|
21
25
|
- Keeps credentials out of serialized component state.
|
|
22
26
|
|
|
23
|
-
The codec and package metadata support Python 3.10 through 3.
|
|
27
|
+
The codec and package metadata support Python 3.10 through 3.14. Amazon's
|
|
24
28
|
official `aws-sdk-bedrock-runtime` currently requires Python 3.12, so opening a
|
|
25
29
|
live Bedrock connection requires Python 3.12.
|
|
26
30
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_transport_aws_eventstream"
|
|
3
|
-
version = "0.1.0.
|
|
3
|
+
version = "0.1.0.dev2"
|
|
4
4
|
description = "Amazon Bedrock bidirectional EventStream transport for Swarmauri live models."
|
|
5
5
|
readme = "README.md"
|
|
6
|
-
requires-python = ">=3.10,<3.
|
|
6
|
+
requires-python = ">=3.10,<3.15"
|
|
7
7
|
authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
8
8
|
license = { file = "LICENSE" }
|
|
9
9
|
dependencies = [
|
|
10
10
|
"botocore>=1.35",
|
|
11
|
-
"swarmauri_base
|
|
12
|
-
"swarmauri_core
|
|
11
|
+
"swarmauri_base<0.12,>=0.11.0.dev13",
|
|
12
|
+
"swarmauri_core<0.12,>=0.11.0.dev8",
|
|
13
13
|
"aws-sdk-bedrock-runtime~=0.2.0; python_version >= '3.12'",
|
|
14
14
|
]
|
|
15
15
|
keywords = [
|
|
@@ -31,6 +31,8 @@ classifiers = [
|
|
|
31
31
|
"Programming Language :: Python :: 3.10",
|
|
32
32
|
"Programming Language :: Python :: 3.11",
|
|
33
33
|
"Programming Language :: Python :: 3.12",
|
|
34
|
+
"Programming Language :: Python :: 3.13",
|
|
35
|
+
"Programming Language :: Python :: 3.14",
|
|
34
36
|
"Topic :: Internet :: WWW/HTTP",
|
|
35
37
|
"Topic :: Software Development :: Libraries",
|
|
36
38
|
]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import asyncio
|
|
4
|
+
import inspect
|
|
4
5
|
import warnings
|
|
5
6
|
from collections.abc import Mapping
|
|
6
7
|
from typing import Any, Literal
|
|
@@ -165,4 +166,6 @@ class AwsEventStreamClient(BidirectionalStreamClientBase):
|
|
|
165
166
|
stream = client.invoke_model_with_bidirectional_stream(
|
|
166
167
|
input_type(model_id=str(model_id))
|
|
167
168
|
)
|
|
169
|
+
if inspect.isawaitable(stream):
|
|
170
|
+
stream = await stream
|
|
168
171
|
return AwsEventStreamConnection.from_stream(stream)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|