blinker


Nameblinker JSON
Version 1.8.0 PyPI version JSON
download
home_pageNone
SummaryFast, simple object-to-object and broadcast signaling
upload_time2024-04-27 18:04:14
maintainerNone
docs_urlNone
authorJason Kirtland
requires_python>=3.8
licenseNone
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.8",
    "maintainer_email": "Pallets Ecosystem <contact@palletsprojects.com>",
    "keywords": null,
    "author": "Jason Kirtland",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/4e/de/df5112127fdb2d0ebfd64e506bee284581bbde969d1639cbb0288735af54/blinker-1.8.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.8.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": "bb824fe537be9fbf58ef02481630f804a9664779ed378bb833265ff455ac8427",
                "md5": "cc575da5c150a481d2fd3ea25c7b8839",
                "sha256": "5f2c330c2586b5d4c5ece65e4dd9fa6512192d946f7c1aaac31ca0380d5d041f"
            },
            "downloads": -1,
            "filename": "blinker-1.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc575da5c150a481d2fd3ea25c7b8839",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 9267,
            "upload_time": "2024-04-27T18:04:13",
            "upload_time_iso_8601": "2024-04-27T18:04:13.465377Z",
            "url": "https://files.pythonhosted.org/packages/bb/82/4fe537be9fbf58ef02481630f804a9664779ed378bb833265ff455ac8427/blinker-1.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4ededf5112127fdb2d0ebfd64e506bee284581bbde969d1639cbb0288735af54",
                "md5": "59a90ef8d396db945d1c079f4ec2ced9",
                "sha256": "a07839c713d30141433647247db269dd896895b0bf56d2362f663496feae562b"
            },
            "downloads": -1,
            "filename": "blinker-1.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "59a90ef8d396db945d1c079f4ec2ced9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 22598,
            "upload_time": "2024-04-27T18:04:14",
            "upload_time_iso_8601": "2024-04-27T18:04:14.909613Z",
            "url": "https://files.pythonhosted.org/packages/4e/de/df5112127fdb2d0ebfd64e506bee284581bbde969d1639cbb0288735af54/blinker-1.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-27 18:04:14",
    "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"
}
        
Elapsed time: 0.27157s