Skip to main content
Pre-release

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

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_publisher_webhook Discord

Swarmauri Webhook Publisher

WebhookPublisher is a Swarmauri component that delivers JSON events to an HTTP endpoint. It keeps an internal httpx.Client session for efficient reuse and raises a RuntimeError when the webhook cannot be reached or responds with a non-success status code.

Installation

Choose the tool that fits your workflow:

# pip
pip install swarmauri_publisher_webhook

# Poetry
poetry add swarmauri_publisher_webhook

# uv (install the tool if you do not already have it)
curl -LsSf https://astral.sh/uv/install.sh | sh
uv add swarmauri_publisher_webhook

Usage

from swarmauri_publisher_webhook import WebhookPublisher

publisher = WebhookPublisher(url="https://your-webhook-endpoint.com/hook")

publisher.publish(
    channel="my_data_stream",
    payload={"message": "Hello, webhook!", "value": 123}
)

The publisher posts a JSON object shaped as {"channel": ..., "payload": ...} to the configured URL. Wrap calls to publish in your own error handling if you need to catch connectivity or webhook-side failures.

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

Metadata

Release files for swarmauri_publisher_webhook 0.11.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_publisher_webhook 0.11.0.dev1
File Size Uploaded
swarmauri_publisher_webhook-0.11.0.dev1.tar.gz 3.3 kB Details

Built distribution (wheel)

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

Total release size: 7.6 kB

Release files / swarmauri_publisher_webhook-0.11.0.dev1.tar.gz

Download URL swarmauri_publisher_webhook-0.11.0.dev1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8c31bc4d33183d677da3869e858b7296da12221f5407b4cdda0c5703ca88f32c
BLAKE2b-256 checksum
How to use checksums
d41595ffeba56219a246bb1a7b28026bf132124ba774f8435e75186d1aee8459
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / swarmauri_publisher_webhook-0.11.0.dev1-py3-none-any.whl

Download URL swarmauri_publisher_webhook-0.11.0.dev1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc8f94c362ff4e7737c103c4dda5b82aef555b9252ca8e0f2e599146966f66a4
BLAKE2b-256 checksum
How to use checksums
3e06024f1dc24371821a5474ed6f4012ee2d519a5a396bf67f243d0a3013c7f0
Upload date
Uploaded using Trusted Publishing?
What is 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}
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