METADATA 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Metadata-Version: 2.1
  2. Name: blinker
  3. Version: 1.5
  4. Summary: Fast, simple object-to-object and broadcast signaling
  5. Home-page: https://blinker.readthedocs.io
  6. Author: Jason Kirtland
  7. Author-email: jek@discorporate.us
  8. Maintainer: Pallets Ecosystem
  9. Maintainer-email: contact@palletsprojects.com
  10. License: MIT License
  11. Project-URL: Source, https://github.com/pallets-eco/blinker
  12. Keywords: signal emit events broadcast
  13. Classifier: Development Status :: 5 - Production/Stable
  14. Classifier: Intended Audience :: Developers
  15. Classifier: License :: OSI Approved :: MIT License
  16. Classifier: Operating System :: OS Independent
  17. Classifier: Programming Language :: Python
  18. Classifier: Topic :: Software Development :: Libraries
  19. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
  20. Description-Content-Type: text/x-rst
  21. License-File: LICENSE.rst
  22. Blinker
  23. =======
  24. Blinker provides a fast dispatching system that allows any number of
  25. interested parties to subscribe to events, or "signals".
  26. Signal receivers can subscribe to specific senders or receive signals
  27. sent by any sender.
  28. .. code-block:: pycon
  29. >>> from blinker import signal
  30. >>> started = signal('round-started')
  31. >>> def each(round):
  32. ... print "Round %s!" % round
  33. ...
  34. >>> started.connect(each)
  35. >>> def round_two(round):
  36. ... print "This is round two."
  37. ...
  38. >>> started.connect(round_two, sender=2)
  39. >>> for round in range(1, 4):
  40. ... started.send(round)
  41. ...
  42. Round 1!
  43. Round 2!
  44. This is round two.
  45. Round 3!
  46. Links
  47. -----
  48. - Documentation: https://blinker.readthedocs.io/
  49. - Changes: https://blinker.readthedocs.io/#changes
  50. - PyPI Releases: https://pypi.org/project/blinker/
  51. - Source Code: https://github.com/pallets-eco/blinker/
  52. - Issue Tracker: https://github.com/pallets-eco/blinker/issues/