Skip to main content

Server-Sent Events broadcaster transport for Swarmauri agents.

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri-transport-sseoutbound


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

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

Using pip

pip install swarmauri-transport-sseoutbound

Usage

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file swarmauri_transport_sseoutbound-0.1.1.dev21.tar.gz.

File metadata

  • Download URL: swarmauri_transport_sseoutbound-0.1.1.dev21.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}

File hashes

Hashes for swarmauri_transport_sseoutbound-0.1.1.dev21.tar.gz
Algorithm Hash digest
SHA256 e8b190f176860677b4cfb5f6fd841bb5c47960f3702743419bda96216d88888a
MD5 d8dfde04e060630d091518e882cbfb83
BLAKE2b-256 fb612af006eab37c89e669d9bdf40efdabfee978e58bd667effb24d5f4e3d586

See more details on using hashes here.

File details

Details for the file swarmauri_transport_sseoutbound-0.1.1.dev21-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_transport_sseoutbound-0.1.1.dev21-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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}

File hashes

Hashes for swarmauri_transport_sseoutbound-0.1.1.dev21-py3-none-any.whl
Algorithm Hash digest
SHA256 b5410c262783799a143422bf3cf19d85dc31d029ed6ad07862fff0d3322eac4f
MD5 2d1902a86dc7054da2f555f094a0c46e
BLAKE2b-256 996a94cc7ea5b0c3245b700416e7f37542782bbaac92724bd2f4df8958f78ab3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page