Skip to main content

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


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.8.1.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

blinker-1.8.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file blinker-1.8.1.tar.gz.

File metadata

  • Download URL: blinker-1.8.1.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for blinker-1.8.1.tar.gz
Algorithm Hash digest
SHA256 da44ec748222dcd0105ef975eed946da197d5bdf8bafb6aa92f5bc89da63fa25
MD5 1a72c79b469df55cc0556923fb67a191
BLAKE2b-256 067a876838c7a478e3a487fb890c821ded320a321a56471bb2c751b566b84767

See more details on using hashes here.

File details

Details for the file blinker-1.8.1-py3-none-any.whl.

File metadata

  • Download URL: blinker-1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for blinker-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f1cdeff423b77c31b89de0565cd03e5275a03028f44b2b15f912632a58cced6
MD5 49b22662284f54c14f9450015a58fc91
BLAKE2b-256 b8a8e2c40dc86dfc88fea7b627123e0a8e33ad1978af1f521629ec0f9a6e5da8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page