GrandCentral is an extremely basic publisher subscriber event library
Project description
GrandCentral is an extremely basic publisher subscriber event library
Free software: ISC license
Documentation: https://grandcentral.readthedocs.org.
Description
GrandCentral is an extremely basic publisher subscriber event library. It provides only two methods
publish:- it publishes an event on provided channel with a payload
subscribe:- it registers channel/event pair with a consumer that is to be called when that particular event is published on the channel.
GrandCentralConsumer is an abstract class that determines how an event emitted by grandcentral is to be handled. Currently the library provides two simple consumers
SyncConsumer which receives a callable and executes that callable synchronously
CeleryConsumer which receives a celery task and execute that asynchornously using celery.
A library also provides a DjangoCentral which also allows to subscribe to built in django signals like pre-save, post-save, pre-delete, post-delete etc.
History
0.1.0 (2015-05-09)
First release on PyPI.