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.2
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.2.tar.gz | 28.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| blinker-1.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.4 kB
Release files / blinker-1.6.2.tar.gz
| Download URL | blinker-1.6.2.tar.gz |
|---|---|
| Size | 28.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4afd3de66ef3a9f8067559fb7a1cbe555c17dcbe15971b05d1b625c3e7abe213
|
|
BLAKE2b-256 checksum How to use checksums |
e8f9a05287f3d5c54d20f51a235ace01f50620984bc7ca5ceee781dc645211c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / blinker-1.6.2-py3-none-any.whl
| Download URL | blinker-1.6.2-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3d739772abb7bc2860abf5f2ec284223d9ad5c76da018234f6f50d6f31ab1f0
|
|
BLAKE2b-256 checksum How to use checksums |
0df15f39e771cd730d347539bb74c6d496737b9d5f0a53bc9fdbf3e170f1ee48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|