Blinker
Blinker provides a fast dispatching system that allows any number of interested parties to subscribe to events, or “signals”.
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!
Links
Documentation: https://blinker.readthedocs.io/
PyPI Releases: https://pypi.org/project/blinker/
Source Code: https://github.com/pallets-eco/blinker/
Issue Tracker: https://github.com/pallets-eco/blinker/issues/
Release files for blinker 1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| blinker-1.6.tar.gz | 28.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| blinker-1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.9 kB
Release files / blinker-1.6.tar.gz
| Download URL | blinker-1.6.tar.gz |
|---|---|
| Size | 28.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5874afe21df4bae8885d31a0a6c4b5861910a575eae6176f051fbb9a6571481b
|
|
BLAKE2b-256 checksum How to use checksums |
a40416dd209be88bcda71710fab1344433031fc7d793925ca06bfd27986db8b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.2
|
Release files / blinker-1.6-py3-none-any.whl
| Download URL | blinker-1.6-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eeebd5dfc782e1817fe4261ce79936c8c8cefb90d685caf50cec458029f773c1
|
|
BLAKE2b-256 checksum How to use checksums |
1750cd9207254dd9ab92d300717721600e367d99b0fcb83b6338af8dc34a8fa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.2
|