blinker


Nameblinker JSON
Version 1.4 PyPI version JSON
download
home_pagehttp://pythonhosted.org/blinker/
SummaryFast, simple object-to-object and broadcast signaling
upload_time2015-07-23 12:26:37
maintainer
docs_urlhttp://pythonhosted.org/blinker/
authorJason Kirtland
requires_pythonNone
licenseMIT License
keywords signal emit events broadcast
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".

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 "Round %s!" % 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!

See the `Blinker documentation <https://pythonhosted.org/blinker/>`_ for more information.

Requirements
------------

Blinker requires Python 2.4 or higher, Python 3.0 or higher, or Jython 2.5 or higher.

Changelog Summary
-----------------

1.4 (July 23, 2015)

 - Verified Python 3.4 support (no changes needed)
 - Additional bookkeeping cleanup for non-ANY connections at disconnect
   time.
 - Added Signal._cleanup_bookeeping() to prune stale bookkeeping on
   demand

1.3 (July 3, 2013)

 - The global signal stash behind blinker.signal() is now backed by a
   regular name-to-Signal dictionary. Previously, weak references were
   held in the mapping and ephemeral usage in code like
   ``signal('foo').connect(...)`` could have surprising program behavior
   depending on import order of modules.
 - blinker.Namespace is now built on a regular dict. Use
   blinker.WeakNamespace for the older, weak-referencing behavior.
 - Signal.connect('text-sender') uses an alternate hashing strategy to
   avoid sharp edges in text identity.

1.2 (October 26, 2011)

 - Added Signal.receiver_connected and Signal.receiver_disconnected
   per-Signal signals.
 - Deprecated the global 'receiver_connected' signal.
 - Verified Python 3.2 support (no changes needed!)

1.1 (July 21, 2010)

 - Added ``@signal.connect_via(sender)`` decorator
 - Added ``signal.connected_to`` shorthand name for the
   ``temporarily_connected_to`` context manager.

1.0 (March 28, 2010)

 - Python 3.x compatibility

0.9 (February 26, 2010)

 - Sphinx docs, project website
 - Added ``with a_signal.temporarily_connected_to(receiver): ...`` support
            

Raw data

            {
    "_id": null,
    "maintainer": "",
    "docs_url": "http://pythonhosted.org/blinker/",
    "requires_python": null,
    "maintainer_email": "",
    "cheesecake_code_kwalitee_id": null,
    "keywords": "signal emit events broadcast",
    "upload_time": "2015-07-23 12:26:37",
    "author": "Jason Kirtland",
    "home_page": "http://pythonhosted.org/blinker/",
    "download_url": "https://pypi.python.org/packages/1b/51/e2a9f3b757eb802f61dc1f2b09c8c99f6eb01cf06416c0671253536517b6/blinker-1.4.tar.gz",
    "platform": "UNKNOWN",
    "version": "1.4",
    "cheesecake_documentation_id": null,
    "description": "=======\r\nBlinker\r\n=======\r\n\r\nBlinker provides a fast dispatching system that allows any number of\r\ninterested parties to subscribe to events, or \"signals\".\r\n\r\nSignal receivers can subscribe to specific senders or receive signals\r\nsent by any sender.\r\n\r\n    >>> from blinker import signal\r\n    >>> started = signal('round-started')\r\n    >>> def each(round):\r\n    ...     print \"Round %s!\" % round\r\n    ...\r\n    >>> started.connect(each)\r\n    \r\n    >>> def round_two(round):\r\n    ...     print \"This is round two.\"\r\n    ...\r\n    >>> started.connect(round_two, sender=2)\r\n  \r\n    >>> for round in range(1, 4):\r\n    ...     started.send(round)\r\n    ...\r\n    Round 1!\r\n    Round 2!\r\n    This is round two.\r\n    Round 3!\r\n\r\nSee the `Blinker documentation <https://pythonhosted.org/blinker/>`_ for more information.\r\n\r\nRequirements\r\n------------\r\n\r\nBlinker requires Python 2.4 or higher, Python 3.0 or higher, or Jython 2.5 or higher.\r\n\r\nChangelog Summary\r\n-----------------\r\n\r\n1.4 (July 23, 2015)\r\n\r\n - Verified Python 3.4 support (no changes needed)\r\n - Additional bookkeeping cleanup for non-ANY connections at disconnect\r\n   time.\r\n - Added Signal._cleanup_bookeeping() to prune stale bookkeeping on\r\n   demand\r\n\r\n1.3 (July 3, 2013)\r\n\r\n - The global signal stash behind blinker.signal() is now backed by a\r\n   regular name-to-Signal dictionary. Previously, weak references were\r\n   held in the mapping and ephemeral usage in code like\r\n   ``signal('foo').connect(...)`` could have surprising program behavior\r\n   depending on import order of modules.\r\n - blinker.Namespace is now built on a regular dict. Use\r\n   blinker.WeakNamespace for the older, weak-referencing behavior.\r\n - Signal.connect('text-sender') uses an alternate hashing strategy to\r\n   avoid sharp edges in text identity.\r\n\r\n1.2 (October 26, 2011)\r\n\r\n - Added Signal.receiver_connected and Signal.receiver_disconnected\r\n   per-Signal signals.\r\n - Deprecated the global 'receiver_connected' signal.\r\n - Verified Python 3.2 support (no changes needed!)\r\n\r\n1.1 (July 21, 2010)\r\n\r\n - Added ``@signal.connect_via(sender)`` decorator\r\n - Added ``signal.connected_to`` shorthand name for the\r\n   ``temporarily_connected_to`` context manager.\r\n\r\n1.0 (March 28, 2010)\r\n\r\n - Python 3.x compatibility\r\n\r\n0.9 (February 26, 2010)\r\n\r\n - Sphinx docs, project website\r\n - Added ``with a_signal.temporarily_connected_to(receiver): ...`` support",
    "lcname": "blinker",
    "name": "blinker",
    "github": false,
    "bugtrack_url": "",
    "license": "MIT License",
    "summary": "Fast, simple object-to-object and broadcast signaling",
    "split_keywords": [
        "signal",
        "emit",
        "events",
        "broadcast"
    ],
    "author_email": "jek@discorporate.us",
    "urls": [
        {
            "has_sig": false,
            "upload_time": "2015-07-23T12:26:37",
            "comment_text": "",
            "python_version": "source",
            "url": "https://pypi.python.org/packages/1b/51/e2a9f3b757eb802f61dc1f2b09c8c99f6eb01cf06416c0671253536517b6/blinker-1.4.tar.gz",
            "md5_digest": "8b3722381f83c2813c52de3016b68d33",
            "downloads": 588908,
            "filename": "blinker-1.4.tar.gz",
            "packagetype": "sdist",
            "path": "1b/51/e2a9f3b757eb802f61dc1f2b09c8c99f6eb01cf06416c0671253536517b6/blinker-1.4.tar.gz",
            "size": 111476
        }
    ],
    "cheesecake_installability_id": null
}
        
Elapsed time: 0.00822s