Fast, simple object-to-object and broadcast signaling
Project Links
Meta
Author: Jason Kirtland
Maintainer: Pallets Ecosystem
Requires Python: >=3.9
Classifiers
Development Status
- 5 - Production/Stable
License
- OSI Approved :: MIT License
Programming Language
- Python
Typing
- Typed
Blinker
Blinker provides a fast dispatching system that allows any number of interested parties to subscribe to events, or "signals".
Pallets Community Ecosystem
[!IMPORTANT]
This project is part of the Pallets Community Ecosystem. Pallets is the open source organization that maintains Flask; Pallets-Eco enables community maintenance of related projects. If you are interested in helping maintain this project, please reach out on the Pallets Discord server.
Example
Signal receivers can subscribe to specific senders or receive signals sent by any sender.
>>> from blinker import signal
>>> started = signal('round-started')
>>> def each(round):
... print(f"Round {round}")
...
>>> started.connect(each)
>>> def round_two(round):
... print("This is round two.")
...
>>> started.connect(round_two, sender=2)
>>> for round in range(1, 4):
... started.send(round)
...
Round 1!
Round 2!
This is round two.
Round 3!
1.9.0
Nov 08, 2024
1.8.2
May 06, 2024
1.8.1
Apr 28, 2024
1.8.0
Apr 27, 2024
1.7.0
Nov 01, 2023
1.6.3
Oct 07, 2023
1.6.2
Apr 12, 2023
1.6.1
Apr 09, 2023
1.6
Apr 02, 2023
1.5
Jul 17, 2022
1.4
Jul 23, 2015
1.3
Jul 03, 2013
1.2
Oct 27, 2011
1.1
Jul 21, 2010
1.0
Mar 28, 2010
0.9
Feb 27, 2010
0.8
Feb 14, 2010
Wheel compatibility matrix
Files in release
No dependencies