Metadata-Version: 2.4
Name: swarmauri_transport_sseoutbound
Version: 0.1.1.dev23
Summary: Server-Sent Events broadcaster transport for Swarmauri agents.
License: Copyright 2024 Jacob Stewart
         
         Licensed under the Apache License, Version 2.0 (the "License");
         you may not use this file except in compliance with the License.
         You may obtain a copy of the License at
         
             http://www.apache.org/licenses/LICENSE-2.0
         
         Unless required by applicable law or agreed to in writing, software
         distributed under the License is distributed on an "AS IS" BASIS,
         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         See the License for the specific language governing permissions and
         limitations under the License.
License-File: LICENSE
Keywords: swarmauri,transport,sse,events,broadcast,streaming,http,asyncio,realtime,sdk,standards,sseoutbound
Author: Jacob Stewart
Author-email: jacob@swarmauri.com
Requires-Python: >=3.10
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Dist: swarmauri-base
Requires-Dist: swarmauri-core
Project-URL: Homepage, https://github.com/swarmauri/swarmauri-sdk
Project-URL: Repository, https://github.com/swarmauri/swarmauri-sdk
Description-Content-Type: text/markdown

![Swarmauri Logo](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)

<p align="center">
    <a href="https://pypi.org/project/swarmauri-transport-sseoutbound/">
        <img src="https://img.shields.io/pypi/dm/swarmauri-transport-sseoutbound" alt="PyPI - Downloads"/>
    </a>
    <a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/swarmauri_transport_sseoutbound/">
        <img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/swarmauri_transport_sseoutbound.svg"/>
    </a>
    <a href="https://pypi.org/project/swarmauri-transport-sseoutbound/">
        <img src="https://img.shields.io/pypi/pyversions/swarmauri-transport-sseoutbound" alt="PyPI - Python Version"/>
    </a>
    <a href="https://pypi.org/project/swarmauri-transport-sseoutbound/">
        <img src="https://img.shields.io/pypi/l/swarmauri-transport-sseoutbound" alt="PyPI - License"/>
    </a>
    <a href="https://pypi.org/project/swarmauri-transport-sseoutbound/">
        <img src="https://img.shields.io/pypi/v/swarmauri-transport-sseoutbound?label=swarmauri-transport-sseoutbound&color=green" alt="PyPI - swarmauri-transport-sseoutbound"/>
    </a>
</p>

---

# Swarmauri Transport – Server-Sent Events

`swarmauri-transport-sseoutbound` hosts a lightweight SSE endpoint for broadcasting real-time updates to browsers or other streaming clients.

## Installation

### Using `uv`

```bash
uv pip install swarmauri-transport-sseoutbound --index-url https://pypi.org/simple
```

### Using `pip`

```bash
pip install swarmauri-transport-sseoutbound
```

## Usage

```python
import asyncio
from swarmauri_transport_sseoutbound import SSEOutboundTransport

async def main() -> None:
    transport = SSEOutboundTransport()
    async with transport.server(host="0.0.0.0", port=8082):
        await transport.broadcast(b"hello, world!")

asyncio.run(main())
```

Attach your own event loop or scheduler to push updates whenever your agents produce new data.

