Skip to main content

GrandCentral is an extremely basic publisher subscriber event library

Project description

https://img.shields.io/travis/kgritesh/grandcentral.svg https://img.shields.io/pypi/v/grandcentral.svg

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.

History

0.1.0 (2015-05-09)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grandcentral-py-0.1.0.tar.gz (11.6 kB view details)

Uploaded Source

File details

Details for the file grandcentral-py-0.1.0.tar.gz.

File metadata

File hashes

Hashes for grandcentral-py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3eb8cbedebb4d894ef61b2b6fdbea4515662f6030259a811e68bff5a290cf588
MD5 7926e72809a910ce735d12563daf765c
BLAKE2b-256 54c8b8b0a1dcb50402ce3a5441e48c9e892c4fb1945e6caa2ba0ddd06ebde534

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page