All documentation
Messages

channel().publish Function in Python

Publish a server-side event into a PulseGrid channel over HTTP in Python.

Python

Overview

channel().publish(...) is the server-side helper for pushing messages or events over HTTP.

Setup

Provide: - text - optional identifier_id - optional identifier_label - optional event - optional meta - optional extra data

Code example

channel().publish Function in Python
result = pulsegrid.channel("demo-channel").publish(
    "Hello from Python server",
    identifier_id="python_server",
    identifier_label="Python Server",
    meta={"source": "python_http_publish"},
)

print(result)

Notes

Useful for backend workflows, bots, and scheduled broadcasts.