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

Uploaded Source

Built Distribution

blinker-1.9.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blinker-1.9.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for blinker-1.9.0.tar.gz
Algorithm Hash digest
SHA256 b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf
MD5 1ffce54aca3d568ab18ee921d479274f
BLAKE2b-256 21289b3f50ce0e048515135495f198351908d99540d69bfdc8c1d15b73dc55ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for blinker-1.9.0.tar.gz:

Publisher: GitHub
  • Repository: pallets-eco/blinker
  • Workflow: publish.yaml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: blinker-1.9.0.tar.gz
    • Subject digest: b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf
    • Transparency log index: 147619386
    • Transparency log integration time:

File details

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

File metadata

  • Download URL: blinker-1.9.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for blinker-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc
MD5 26605819b98a22f8bc46ee0eb2e0d4d2
BLAKE2b-256 10cbf2ad4230dc2eb1a74edf38f1a38b9b52277f75bef262d8908e60d957e13c

See more details on using hashes here.

Provenance

The following attestation bundles were made for blinker-1.9.0-py3-none-any.whl:

Publisher: GitHub
  • Repository: pallets-eco/blinker
  • Workflow: publish.yaml
Attestations:
  • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: blinker-1.9.0-py3-none-any.whl
    • Subject digest: ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc
    • Transparency log index: 147619387
    • Transparency log integration time:

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