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 Discord

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.11.0.dev1.tar.gz.

File metadata

  • Download URL: swarmauri_transport_sseoutbound-0.11.0.dev1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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.11.0.dev1.tar.gz
Algorithm Hash digest
SHA256 9cd8c40d386e099bc2ea6241bfacefb1f160536a7121502ccd03aa91bed62126
MD5 bcf42cabc097c36ca8dc9ce26a3ef529
BLAKE2b-256 db25b2d71bcc6a9e3894f97411b1eac405032e41cf25b92f7e9dbd1fafdde5b8

See more details on using hashes here.

File details

Details for the file swarmauri_transport_sseoutbound-0.11.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_transport_sseoutbound-0.11.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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.11.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a545d7d7d28d8942e24b6ce84c047be785a645c16b1076c22a744b7001ea4eb
MD5 70d3f0f08683caa3ee042137b548679e
BLAKE2b-256 6c88bc2a7ee7ecf76678448dc828a2ccdd3114c870b3af5cc74cb06194e3211d

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