Skip to main content

Flask-WebSub

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 client_example.py (subscriber) and server_example.py (hub/publisher) files. See the documentation for further information: https://flask-websub.readthedocs.io/

Using the flask_websub.hub package requires celery.

For more about WebSub, which was previously named PubSubHubbub, see its specification: https://www.w3.org/TR/websub/

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.1.tar.gz (20.8 kB view details)

Uploaded Source

File details

Details for the file flask_websub-0.4.1.tar.gz.

File metadata

  • Download URL: flask_websub-0.4.1.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for flask_websub-0.4.1.tar.gz
Algorithm Hash digest
SHA256 b3ef05fb6b02d0bc48dda0b3cd38940adf592f79b29a80937f598b80e092d589
MD5 f0e3e6808354f715cb0c85843487b88f
BLAKE2b-256 847b3b172f5de49ac5c1b1a5a75b15300f7b42b0f4a8850068278ff2a99ab97d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.1 This release

1 file

0.4

1 file

0.3.1

1 file

0.3.0

1 file

0.2.1

1 file

0.2

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page