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.0.1 (2015-09-17)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file grandcentral-py-0.0.1.tar.gz
.
File metadata
- Download URL: grandcentral-py-0.0.1.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08c884f7245c424055e4bdd8b3b047c3f02c980dbbaf5f8c46618e3cddb45ff6 |
|
MD5 | d089637a0c4a09192beddade3eeadee8 |
|
BLAKE2b-256 | 772f71976675f38a3f823b0dc98ee15662c787c329b792e46a3e5f9db3342f7a |