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)

Download files

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

Source Distribution

PyDispatcher-2.0.7.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyDispatcher-2.0.7-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file PyDispatcher-2.0.7.tar.gz.

File metadata

  • Download URL: PyDispatcher-2.0.7.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for PyDispatcher-2.0.7.tar.gz
Algorithm Hash digest
SHA256 b777c6ad080dc1bad74a4c29d6a46914fa6701ac70f94b0d66fbcfde62f5be31
MD5 b0a10a4811f1c1f8c1d419df3e95b494
BLAKE2b-256 21db030d0700ae90d2f9d52c2f3c1f864881e19cef8cba3b0a08759c8494c19c

See more details on using hashes here.

File details

Details for the file PyDispatcher-2.0.7-py3-none-any.whl.

File metadata

  • Download URL: PyDispatcher-2.0.7-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for PyDispatcher-2.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 96543bea04115ffde08f851e1d45cacbfd1ee866ac42127d9b476dc5aefa7de0
MD5 79cb2d1d416666ddfe72c1228ec57e8a
BLAKE2b-256 660e9ee7bc0b48ec45d93b302fa2d787830dca4dc454d31a237faa5815995988

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.7 This release

2 files

2.0.6

1 file

2.0.5

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

1 file

2.0.1

1 file

1.0.2

1.0.1

1.0.0

1.0.0a1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page