Are there any general Python libraries that provide “signals” (events), such as Django signals?

I would like to use something like Django signal in projects other than Django. I thought I saw such libraries before, but I could not find them using regular searches.

The Python signal library does not offer the same features.

+7
source share
1 answer

There are a number of modules for this. Here are a few options sorted by what I consider their popularity:

  • The blinker module provides a signal / event mechanism
  • PyDispatcher gives you event dispatch
  • PySignals module is a Django signal module without any dependency on Django
  • SpiffSignal implements a signal / event structure, but its GitHub page seems to be missing
+5
source

All Articles