Skip to main content

A WebSub hub, publisher and subscriber using Flask

Project description


Build Status Documentation PyPI version

An implementation of a WebSub hub, publisher and subscriber as a Flask extension. The implementation is meant to be used as a library that can be integrated in a larger application.

WebSub allows content providers to notify content subscribers of new content. For example, a content provider could provide an RSS feed that a user (using a web-based RSS reader) is interested in. Then the content provider could use the publisher functionality of this package to advertise its support for WebSub. The user's client can then subscribe to the feed using the subscriber functionality of this extension. When the content provider publishes a blog post, it notifies the so-called hub, which in turn notifies all subscribers. You can either host your own hub (using the hub functionality of this package) or depend upon one of the existing ones offered online. You can think of WebSub as a standardized version of web hooks, that (due to mandatory resubscribing every now and then) are more robust and support content integrity verification.

The components are split up into multiple packages, so you don't necessarily have to use all three. It is for example possible to use the subscriber implementation with an external hub. To learn to use this package, take a look at the (subscriber) and (hub/publisher) files. See the documentation for further information:

Using the flask_websub.hub package requires celery.

For more about WebSub, which was previously named PubSubHubbub, see its specification:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-WebSub-0.4.tar.gz (20.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page