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

Uploaded Source

Built Distribution

blinker-1.6.2-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for blinker-1.6.2.tar.gz
Algorithm Hash digest
SHA256 4afd3de66ef3a9f8067559fb7a1cbe555c17dcbe15971b05d1b625c3e7abe213
MD5 1c7375d100a67ba368d9cde0ab2d8cfa
BLAKE2b-256 e8f9a05287f3d5c54d20f51a235ace01f50620984bc7ca5ceee781dc645211c5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for blinker-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3d739772abb7bc2860abf5f2ec284223d9ad5c76da018234f6f50d6f31ab1f0
MD5 c7fad677855c3843630a1e47d6dc379c
BLAKE2b-256 0df15f39e771cd730d347539bb74c6d496737b9d5f0a53bc9fdbf3e170f1ee48

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