Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

breakbase/flask-cent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-Cent

This is a Flask extension for centrifugal/cent.

Configuring your app

from flask_cent import CentClient
cent = CentClient(app)

Alternatively, you can configure it with the factory pattern:

cent = CentClient()
cent.init_app(app)

Publishing to the client

First create a message:

@app.route("/")
def index():
    cent.publish("my_channel_id", key1='value1', key2='value2')

About

Flask extension for centrifugal/cent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages