Skip to main content

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!

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

Uploaded Source

Built Distribution

blinker-1.6.3-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blinker-1.6.3.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for blinker-1.6.3.tar.gz
Algorithm Hash digest
SHA256 152090d27c1c5c722ee7e48504b02d76502811ce02e1523553b4cf8c8b3d3a8d
MD5 911d92a757f609b4344c04c207affea4
BLAKE2b-256 ea96ed1420a974540da7419094f2553bc198c454cee5f72576e7c7629dd12d6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blinker-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for blinker-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 296320d6c28b006eb5e32d4712202dbcdcbf5dc482da298c2f44881c43884aaa
MD5 4ab7b0e126ce1c1b364e41807d477d7e
BLAKE2b-256 bf2b11bcedb7dee4923253a4a21bae3be854bcc4f06295bd827756352016d97c

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