Skip to content

GrandCentral is an extremely basic publisher subscriber event library for python.

License

Notifications You must be signed in to change notification settings

kgritesh/grandcentral

Repository files navigation

GrandCentral

GrandCentral is an extremely basic publisher subscriber event library

Description

GrandCentral is an extremely basic publisher subscriber event library. It provides only two methods

  1. publish:- it publishes an event on provided channel with a payload
  2. 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

  1. SyncConsumer which receives a callable and executes that callable synchronously
  2. 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.

About

GrandCentral is an extremely basic publisher subscriber event library for python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published