Python Dispatcher

Free Python application that provides loosely-coupled message passing between Python objects
Download

Python Dispatcher Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Price:
  • FREE
  • Publisher Name:
  • Mike C. Fletcher
  • Publisher web site:
  • http://www.vrplumber.com/
  • Operating Systems:
  • Mac OS X
  • File Size:
  • 25 KB

Python Dispatcher Tags


Python Dispatcher Description

Free Python application that provides loosely-coupled message passing between Python objects Python Dispatcher provides the Python programmer with a multiple-producer-multiple-consumer signal-registration and routing infrastructure for use in multiple contexts.Here is a detailed info of what PyDispatcher does for you:Provides a centralized service for delivering messages to registered objects (in the local process). It allows you to register any number of functions (callable objects) which can receive signals from senders.· registration can be for all senders, particular sending objects, or "anonymous" messages (messages where the sender is None)· registration can be for any signal, or particular signals· a single signal will be delivered to all appropriate registered receivers, so that multiple registrations do not interfere with each otherThere is no requirement for the sender or receiver to be dispatcher-aware. Any Python object save the None object can act as a sender, and any callable object can act as a receiver. There is no need to inherit from a particular class or provide a particular interface on the object.The system uses weak references to receivers wherever possible· object lifetimes are not affected by PyDispatcher registrations (that is, when your object goes away, the registrations related to the object also go away). · references to common transient objects (in particular instance methods) are stored as compound weak references. · weak references can be disabled on a registration-by-registration basisAllows rich signal types, signals are simply hashable objects used to store and retrieve sub-tables, they are otherwise opaque to the dispatcher mechanismAllows sending more information when sending than any particular receiver can handle, dispatcher automatically culls those arguments which are not appropriate for the particular receiver. This allows registering very simple functions dealing with general messages, while still allowing natural passing of arguments to higher level functions.NOTE: Python Dispatcher is licensed and distributed under the terms of the BSD License. Requirements: · Python


Python Dispatcher Related Software