Python Publish-Subscribe Package


Keywords
publish, subscribe, observer, pattern, signal, signals, event, events, message, messages, messaging, dispatch, dispatching
License
BSD-3-Clause
Install
pip install PyPubSub==3.4.2

Documentation

image

image

News

  • January 2019: pypubsub 4.0.3 released! (for those -- and only those -- who use Python >= 3).
  • March 2019: pypubsub 3.4.2 released (for those -- and only those -- who use Python 2.7.x).

Overview

Provides a publish-subscribe API to facilitate event-based or message-based architecture in a single-process application. It is pure Python and works on Python 3.3+. It is centered on the notion of a topic; senders publish messages of a given topic, and listeners subscribe to messages of a given topic, all inside the same process. The package also supports a variety of advanced features that facilitate debugging and maintaining topics and messages in larger desktop- or server-based applications.

Install most recent stable with "pip install pypubsub".

Useful links: