Name | blinker JSON |
Version |
1.9.0
JSON |
| download |
home_page | None |
Summary | Fast, simple object-to-object and broadcast signaling |
upload_time | 2024-11-08 17:25:47 |
maintainer | None |
docs_url | None |
author | Jason Kirtland |
requires_python | >=3.9 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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][discord].
>
> [discord]: https://discord.gg/pallets
## Example
Signal receivers can subscribe to specific senders or receive signals
sent by any sender.
```pycon
>>> 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!
```
Raw data
{
"_id": null,
"home_page": null,
"name": "blinker",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "Pallets Ecosystem <contact@palletsprojects.com>",
"keywords": null,
"author": "Jason Kirtland",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/21/28/9b3f50ce0e048515135495f198351908d99540d69bfdc8c1d15b73dc55ce/blinker-1.9.0.tar.gz",
"platform": null,
"description": "# Blinker\n\nBlinker provides a fast dispatching system that allows any number of\ninterested parties to subscribe to events, or \"signals\".\n\n\n## Pallets Community Ecosystem\n\n> [!IMPORTANT]\\\n> This project is part of the Pallets Community Ecosystem. Pallets is the open\n> source organization that maintains Flask; Pallets-Eco enables community\n> maintenance of related projects. If you are interested in helping maintain\n> this project, please reach out on [the Pallets Discord server][discord].\n>\n> [discord]: https://discord.gg/pallets\n\n\n## Example\n\nSignal receivers can subscribe to specific senders or receive signals\nsent by any sender.\n\n```pycon\n>>> from blinker import signal\n>>> started = signal('round-started')\n>>> def each(round):\n... print(f\"Round {round}\")\n...\n>>> started.connect(each)\n\n>>> def round_two(round):\n... print(\"This is round two.\")\n...\n>>> started.connect(round_two, sender=2)\n\n>>> for round in range(1, 4):\n... started.send(round)\n...\nRound 1!\nRound 2!\nThis is round two.\nRound 3!\n```\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Fast, simple object-to-object and broadcast signaling",
"version": "1.9.0",
"project_urls": {
"Chat": "https://discord.gg/pallets",
"Documentation": "https://blinker.readthedocs.io",
"Source": "https://github.com/pallets-eco/blinker/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "10cbf2ad4230dc2eb1a74edf38f1a38b9b52277f75bef262d8908e60d957e13c",
"md5": "26605819b98a22f8bc46ee0eb2e0d4d2",
"sha256": "ba0efaa9080b619ff2f3459d1d500c57bddea4a6b424b60a91141db6fd2f08bc"
},
"downloads": -1,
"filename": "blinker-1.9.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "26605819b98a22f8bc46ee0eb2e0d4d2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 8458,
"upload_time": "2024-11-08T17:25:46",
"upload_time_iso_8601": "2024-11-08T17:25:46.184412Z",
"url": "https://files.pythonhosted.org/packages/10/cb/f2ad4230dc2eb1a74edf38f1a38b9b52277f75bef262d8908e60d957e13c/blinker-1.9.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "21289b3f50ce0e048515135495f198351908d99540d69bfdc8c1d15b73dc55ce",
"md5": "1ffce54aca3d568ab18ee921d479274f",
"sha256": "b4ce2265a7abece45e7cc896e98dbebe6cead56bcf805a3d23136d145f5445bf"
},
"downloads": -1,
"filename": "blinker-1.9.0.tar.gz",
"has_sig": false,
"md5_digest": "1ffce54aca3d568ab18ee921d479274f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 22460,
"upload_time": "2024-11-08T17:25:47",
"upload_time_iso_8601": "2024-11-08T17:25:47.436760Z",
"url": "https://files.pythonhosted.org/packages/21/28/9b3f50ce0e048515135495f198351908d99540d69bfdc8c1d15b73dc55ce/blinker-1.9.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-08 17:25:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pallets-eco",
"github_project": "blinker",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "blinker"
}