This is a Flask extension for centrifugal/cent.
from flask_cent import CentClient
cent = CentClient(app)
Alternatively, you can configure it with the factory pattern:
cent = CentClient()
cent.init_app(app)
First create a message:
@app.route("/")
def index():
cent.publish("my_channel_id", key1='value1', key2='value2')