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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: blinker-1.6.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.2

File hashes

Hashes for blinker-1.6.tar.gz
Algorithm Hash digest
SHA256 5874afe21df4bae8885d31a0a6c4b5861910a575eae6176f051fbb9a6571481b
MD5 5edb4742521614d98556a73bfe34b347
BLAKE2b-256 a40416dd209be88bcda71710fab1344433031fc7d793925ca06bfd27986db8b3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for blinker-1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 eeebd5dfc782e1817fe4261ce79936c8c8cefb90d685caf50cec458029f773c1
MD5 3f379306a8f20db08c2b08fbd31650b5
BLAKE2b-256 1750cd9207254dd9ab92d300717721600e367d99b0fcb83b6338af8dc34a8fa1

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