Skip to main content
Pre-release

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

Swarmauri

Downloads Hits Python License Version

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.14. 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.dev2

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.dev2
File Size Uploaded Provenance Actions
swarmauri_transport_aws_eventstream-0.1.0.dev2.tar.gz 5.8 kB Without provenance Details for swarmauri_transport_aws_eventstream-0.1.0.dev2.tar.gz

Built distribution (wheel)

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

Total release size: 14.5 kB

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

Download URL swarmauri_transport_aws_eventstream-0.1.0.dev2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
86cb72f29a831937758858c31e78a0d3b759958ded92d948f85a11f4ca066d5d
BLAKE2b-256 checksum
How to use checksums
f7bf00af52c5415eef8ea407cffeea31d4a22a2d0bae88410da4de45609b24f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.dev2-py3-none-any.whl

Download URL swarmauri_transport_aws_eventstream-0.1.0.dev2-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f14b9fb1a895ed3a7d3115662616c6c20a3c7be671e974448dc60ded2561fd1
BLAKE2b-256 checksum
How to use checksums
b8be7d19588cf6ce85b60d42fef427eb47513ef288d911b980edf89f033c24af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.dev2

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