Core Classes¶
The following classes are useful for advanced use of PyPubSub:
- pubsub.core.Listener
- pubsub.core.TopicObj
- pubsub.core.TopicManager
- pubsub.core.Publisher
It is not typically necessary to know about or use these: the pub module instantiates a default Publisher, which contains a TopicManager, which generates a Topic object for every topic used. The Publisher instance returns a Listener instance from subscribe, wrapping the given callable with pubsub-relevant meta-data about the callable.
Note
The following subsections provide the documentation for those classes
when the kwargs messaging protocol is used (the default). When arg1 is used,
the replace any **kwargs by data.