A Webhook publisher implementation for Swarmauri.
Project description
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.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swarmauri_publisher_webhook-0.3.0.dev44.tar.gz.
File metadata
- Download URL: swarmauri_publisher_webhook-0.3.0.dev44.tar.gz
- Upload date:
- Size: 3.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcaa54eee4020c0a3a7a0b9f7ccf399b7b9b394ec18b3ade68da788c1bf1987f
|
|
| MD5 |
e4c2fe5b40b7fbec04ba2c3a0710bf43
|
|
| BLAKE2b-256 |
a5aa9d6fdc7040b5e2f4ab98101c44d65f890c89ea7a77d733671294d614e09a
|
File details
Details for the file swarmauri_publisher_webhook-0.3.0.dev44-py3-none-any.whl.
File metadata
- Download URL: swarmauri_publisher_webhook-0.3.0.dev44-py3-none-any.whl
- Upload date:
- Size: 4.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7b4dee448af5ad0703db595fe8dca920a5a9ffed49872779e318b5b07f21099
|
|
| MD5 |
b2dea02bbe85eaa0d6f8bf9e9538b7ad
|
|
| BLAKE2b-256 |
794721cd1815ed765e24d993810fede872d3eae8853e504ff4baa5e2446baad7
|