Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Swarmauri

PyPI version Python License Downloads Hits

swarmauri_transport_aws_eventstream

swarmauri_transport_aws_eventstream adapts Amazon Bedrock's Smithy bidirectional EventStream operation to Swarmauri's IBidirectionalStreamClient and IBidirectionalStreamConnection contracts. The AWS SDK owns HTTP/2 framing, credential-chain resolution, and SigV4 request and message signing; this package owns the Swarmauri lifecycle and JSON event mapping.

Features

  • Sends and receives JSON events over InvokeModelWithBidirectionalStream.
  • Supports explicit temporary credentials, the default AWS credential chain, and named profiles.
  • Exposes synchronous and asynchronous Swarmauri connection APIs.
  • Converts AWS stream exception events into AwsEventStreamError.
  • Keeps credentials out of serialized component state.

The codec and package metadata support Python 3.10 through 3.12. Amazon's official aws-sdk-bedrock-runtime currently requires Python 3.12, so opening a live Bedrock connection requires Python 3.12.

Installation

uv add swarmauri_transport_aws_eventstream
pip install swarmauri_transport_aws_eventstream

Usage

Use the client directly when you already have a Bedrock model ID:

from swarmauri_transport_aws_eventstream import AwsEventStreamClient

client = AwsEventStreamClient(region="us-east-1")
connection = await client.aconnect(
    "https://bedrock-runtime.us-east-1.amazonaws.com",
    model_id="amazon.nova-sonic-v1:0",
)

await connection.asend({"event": {"sessionStart": {}}})
async for event in connection.aiter_events():
    print(event)
await connection.aclose()

NovaSonicLiveModel configures this transport automatically. Pass an AmazonNovaProvider when you need a named profile, explicit temporary credentials, a different region, or a custom Bedrock runtime endpoint.

Metadata

Release files for swarmauri_transport_aws_eventstream 0.1.0.dev1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swarmauri_transport_aws_eventstream 0.1.0.dev1
File Size Uploaded Provenance Actions
swarmauri_transport_aws_eventstream-0.1.0.dev1.tar.gz 5.7 kB Without provenance Details for swarmauri_transport_aws_eventstream-0.1.0.dev1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_transport_aws_eventstream 0.1.0.dev1
File Interpreter ABI Platform Actions
swarmauri_transport_aws_eventstream-0.1.0.dev1-py3-none-any.whl Python 3 none any Details for swarmauri_transport_aws_eventstream-0.1.0.dev1-py3-none-any.whl

Total release size: 14.0 kB

Release files / swarmauri_transport_aws_eventstream-0.1.0.dev1.tar.gz

Download URL swarmauri_transport_aws_eventstream-0.1.0.dev1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
421b4d8fbbb40a5a515e14f0beb30bf230a9e4b2732cc9ea5f970a0de0a6f6b3
BLAKE2b-256 checksum
How to use checksums
5aa8ef3bb5c94b68e01bfe76709974d13b81a2ae02020ae47f757bf51198d157
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / swarmauri_transport_aws_eventstream-0.1.0.dev1-py3-none-any.whl

Download URL swarmauri_transport_aws_eventstream-0.1.0.dev1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53761d9177f9e3002d2add342dddb561f1cc7672d44bcc66adca724f024b5eba
BLAKE2b-256 checksum
How to use checksums
a9eef6389219612620007c6c3259f95cb14df4415f0a2ed32773956a4b1ad4bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for swarmauri_transport_aws_eventstream 0.1.0.dev1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page