Fast, simple object-to-object and broadcast signaling
Project description
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-hypernode.com/project/blinker/
Source Code: https://github.com/pallets-eco/blinker/
Issue Tracker: https://github.com/pallets-eco/blinker/issues/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blinker-1.6.1.tar.gz
(28.6 kB
view details)
Built Distribution
blinker-1.6.1-py3-none-any.whl
(13.6 kB
view details)
File details
Details for the file blinker-1.6.1.tar.gz
.
File metadata
- Download URL: blinker-1.6.1.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ddfa223483ce8f24ecd2723e0e27cd4388ef19bef1d76b09a3dae93033db231 |
|
MD5 | cd3d3b0db394de03fa83aa7768ba1b96 |
|
BLAKE2b-256 | b283418c03eaeed9f87eab0d5430f7e9d5248d8a7dd64d12b5ab9e5f674e7aa3 |
File details
Details for the file blinker-1.6.1-py3-none-any.whl
.
File metadata
- Download URL: blinker-1.6.1-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fa2dc7c28c15c8ddfd8b3a21834790984c7e4a89b336dc3f45eeb70e0c5a407 |
|
MD5 | f2e66ed63448fcfde498025178a12839 |
|
BLAKE2b-256 | a84229714f0b9d6296a099d881b300ef76a04040b68ac70d73ddc18d74218ce5 |