Skip to main content

PyDispatcher Multi-producer Multi-consumer Observables

PyDispatcher provides the Python programmer with a multiple-producer-multiple-consumer signal-registration and routing infrastructure for use in multiple contexts. The mechanism of PyDispatcher started life as a highly rated recipe in the Python Cookbook. The project aims to include various enhancements to the recipe developed during use in various applications. It is primarily maintained by Mike Fletcher. A derivative of the project provides the Django web framework's "signal" system.

Installation

PyDispatcher is available on PyPI via standard PIP:

pip install PyDispatcher

Latest PyPI Version Latest PyPI Version

Usage

Documentation is available for detailed usage, but the basic idea is:

from pydispatch import dispatcher

metaKey = "moo"
MyNode = object()
event = {"sample": "event"}


def callback(event=None):
    """Handle signal being sent"""
    print("Signal received", event)


dispatcher.connect(callback, sender=MyNode, signal=metaKey)
dispatcher.send(metaKey, MyNode, event=event)

Metadata

Release files for PyDispatcher 2.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyDispatcher 2.0.7
File Size Uploaded
PyDispatcher-2.0.7.tar.gz 38.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyDispatcher 2.0.7
File Interpreter ABI Platform
PyDispatcher-2.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 50.9 kB

Release files / PyDispatcher-2.0.7.tar.gz

Download URL PyDispatcher-2.0.7.tar.gz
Size 38.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b777c6ad080dc1bad74a4c29d6a46914fa6701ac70f94b0d66fbcfde62f5be31
BLAKE2b-256 checksum
How to use checksums
21db030d0700ae90d2f9d52c2f3c1f864881e19cef8cba3b0a08759c8494c19c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / PyDispatcher-2.0.7-py3-none-any.whl

Download URL PyDispatcher-2.0.7-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96543bea04115ffde08f851e1d45cacbfd1ee866ac42127d9b476dc5aefa7de0
BLAKE2b-256 checksum
How to use checksums
660e9ee7bc0b48ec45d93b302fa2d787830dca4dc454d31a237faa5815995988
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

2.0.7 This release

2 release files

2.0.6

1 release file

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

1 release file

2.0.1

1 release file

1.0.2

1.0.1

1.0.0

1.0.0a1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page