Fast, simple object-to-object and broadcast signaling
Project description
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!
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
Built Distribution
File details
Details for the file blinker-1.9.0.tar.gz
.
File metadata
- Download URL: blinker-1.9.0.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf |
|
MD5 | 1ffce54aca3d568ab18ee921d479274f |
|
BLAKE2b-256 | 21289b3f50ce0e048515135495f198351908d99540d69bfdc8c1d15b73dc55ce |
Provenance
The following attestation bundles were made for blinker-1.9.0.tar.gz
:
- Repository: pallets-eco/blinker
- Workflow: publish.yaml
-
Statement type: https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
blinker-1.9.0.tar.gz
- Subject digest:
b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf
- Transparency log index: 147619386
- Transparency log integration time:
- Predicate type:
File details
Details for the file blinker-1.9.0-py3-none-any.whl
.
File metadata
- Download URL: blinker-1.9.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc |
|
MD5 | 26605819b98a22f8bc46ee0eb2e0d4d2 |
|
BLAKE2b-256 | 10cbf2ad4230dc2eb1a74edf38f1a38b9b52277f75bef262d8908e60d957e13c |
Provenance
The following attestation bundles were made for blinker-1.9.0-py3-none-any.whl
:
- Repository: pallets-eco/blinker
- Workflow: publish.yaml
-
Statement type: https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
blinker-1.9.0-py3-none-any.whl
- Subject digest:
ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc
- Transparency log index: 147619387
- Transparency log integration time:
- Predicate type: