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.
@@ -0,0 +1,4 @@
1
+ Swarmauri SDK
2
+
3
+ This package is part of the Swarmauri SDK and is distributed under the
4
+ Apache License, Version 2.0. See LICENSE for the license terms.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: swarmauri_transport_aws_eventstream
3
- Version: 0.1.0.dev1
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.13
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.dev5)
35
- Requires-Dist: swarmauri_core (>=0.11.0.dev5)
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
  ![Swarmauri](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)
43
46
 
44
- [![PyPI version](https://img.shields.io/pypi/v/swarmauri_transport_aws_eventstream.svg)](https://pypi.org/project/swarmauri_transport_aws_eventstream/) [![Python](https://img.shields.io/pypi/pyversions/swarmauri_transport_aws_eventstream.svg)](https://pypi.org/project/swarmauri_transport_aws_eventstream/) [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE) [![Downloads](https://static.pepy.tech/badge/swarmauri_transport_aws_eventstream)](https://pepy.tech/project/swarmauri_transport_aws_eventstream) [![Hits](https://hits.sh/github.com/swarmauri/swarmauri-sdk.svg?path=pkgs%2Fstandards%2Fswarmauri_transport_aws_eventstream)](https://hits.sh/github.com/swarmauri/swarmauri-sdk/)
47
+ [![Downloads](https://img.shields.io/pypi/dm/swarmauri_transport_aws_eventstream)](https://pypi.org/project/swarmauri_transport_aws_eventstream/)
48
+ [![Hits](https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_aws_eventstream.svg)](https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_aws_eventstream)
49
+ [![Python](https://img.shields.io/pypi/pyversions/swarmauri_transport_aws_eventstream)](https://pypi.org/project/swarmauri_transport_aws_eventstream/)
50
+ [![License](https://img.shields.io/pypi/l/swarmauri_transport_aws_eventstream)](LICENSE)
51
+ [![Version](https://img.shields.io/pypi/v/swarmauri_transport_aws_eventstream?label=swarmauri_transport_aws_eventstream&color=green)](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.12. Amazon's
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
  ![Swarmauri](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)
2
2
 
3
- [![PyPI version](https://img.shields.io/pypi/v/swarmauri_transport_aws_eventstream.svg)](https://pypi.org/project/swarmauri_transport_aws_eventstream/) [![Python](https://img.shields.io/pypi/pyversions/swarmauri_transport_aws_eventstream.svg)](https://pypi.org/project/swarmauri_transport_aws_eventstream/) [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE) [![Downloads](https://static.pepy.tech/badge/swarmauri_transport_aws_eventstream)](https://pepy.tech/project/swarmauri_transport_aws_eventstream) [![Hits](https://hits.sh/github.com/swarmauri/swarmauri-sdk.svg?path=pkgs%2Fstandards%2Fswarmauri_transport_aws_eventstream)](https://hits.sh/github.com/swarmauri/swarmauri-sdk/)
3
+ [![Downloads](https://img.shields.io/pypi/dm/swarmauri_transport_aws_eventstream)](https://pypi.org/project/swarmauri_transport_aws_eventstream/)
4
+ [![Hits](https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_aws_eventstream.svg)](https://github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/standards/swarmauri_transport_aws_eventstream)
5
+ [![Python](https://img.shields.io/pypi/pyversions/swarmauri_transport_aws_eventstream)](https://pypi.org/project/swarmauri_transport_aws_eventstream/)
6
+ [![License](https://img.shields.io/pypi/l/swarmauri_transport_aws_eventstream)](LICENSE)
7
+ [![Version](https://img.shields.io/pypi/v/swarmauri_transport_aws_eventstream?label=swarmauri_transport_aws_eventstream&color=green)](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.12. Amazon's
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.dev1"
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.13"
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>=0.11.0.dev5",
12
- "swarmauri_core>=0.11.0.dev5",
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)