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

Uploaded Source

Built Distribution

blinker-1.7.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blinker-1.7.0.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.7.0.tar.gz
Algorithm Hash digest
SHA256 e6820ff6fa4e4d1d8e2747c2283749c3f547e4fee112b98555cdcdae32996182
MD5 0306b831281e9918ffb0ac6e3e18b47f
BLAKE2b-256 a1136df5fc090ff4e5d246baf1f45fe9e5623aa8565757dfa5bd243f6a545f9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blinker-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3f865d4d54db7abc53758a01601cf343fe55b84c1de4e3fa910e420b438d5b9
MD5 1e62cc24a24ad42ba12fb576f5c5ce89
BLAKE2b-256 fa2a7f3714cbc6356a0efec525ce7a0613d581072ed6eb53eb7b9754f33db807

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