METADATA 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Metadata-Version: 2.4
  2. Name: aiosignal
  3. Version: 1.4.0
  4. Summary: aiosignal: a list of registered asynchronous callbacks
  5. Home-page: https://github.com/aio-libs/aiosignal
  6. Maintainer: aiohttp team <team@aiohttp.org>
  7. Maintainer-email: team@aiohttp.org
  8. License: Apache 2.0
  9. Project-URL: Chat: Gitter, https://gitter.im/aio-libs/Lobby
  10. Project-URL: CI: GitHub Actions, https://github.com/aio-libs/aiosignal/actions
  11. Project-URL: Coverage: codecov, https://codecov.io/github/aio-libs/aiosignal
  12. Project-URL: Docs: RTD, https://docs.aiosignal.org
  13. Project-URL: GitHub: issues, https://github.com/aio-libs/aiosignal/issues
  14. Project-URL: GitHub: repo, https://github.com/aio-libs/aiosignal
  15. Classifier: License :: OSI Approved :: Apache Software License
  16. Classifier: Intended Audience :: Developers
  17. Classifier: Programming Language :: Python
  18. Classifier: Programming Language :: Python :: 3
  19. Classifier: Programming Language :: Python :: 3 :: Only
  20. Classifier: Development Status :: 5 - Production/Stable
  21. Classifier: Operating System :: POSIX
  22. Classifier: Operating System :: MacOS :: MacOS X
  23. Classifier: Operating System :: Microsoft :: Windows
  24. Classifier: Framework :: AsyncIO
  25. Requires-Python: >=3.9
  26. Description-Content-Type: text/x-rst
  27. License-File: LICENSE
  28. Requires-Dist: frozenlist>=1.1.0
  29. Requires-Dist: typing-extensions>=4.2; python_version < "3.13"
  30. Dynamic: license-file
  31. =========
  32. aiosignal
  33. =========
  34. .. image:: https://github.com/aio-libs/aiosignal/workflows/CI/badge.svg
  35. :target: https://github.com/aio-libs/aiosignal/actions?query=workflow%3ACI
  36. :alt: GitHub status for master branch
  37. .. image:: https://codecov.io/gh/aio-libs/aiosignal/branch/master/graph/badge.svg?flag=pytest
  38. :target: https://codecov.io/gh/aio-libs/aiosignal?flags[0]=pytest
  39. :alt: codecov.io status for master branch
  40. .. image:: https://badge.fury.io/py/aiosignal.svg
  41. :target: https://pypi.org/project/aiosignal
  42. :alt: Latest PyPI package version
  43. .. image:: https://readthedocs.org/projects/aiosignal/badge/?version=latest
  44. :target: https://aiosignal.readthedocs.io/
  45. :alt: Latest Read The Docs
  46. .. image:: https://img.shields.io/discourse/topics?server=https%3A%2F%2Faio-libs.discourse.group%2F
  47. :target: https://aio-libs.discourse.group/
  48. :alt: Discourse group for io-libs
  49. .. image:: https://badges.gitter.im/Join%20Chat.svg
  50. :target: https://gitter.im/aio-libs/Lobby
  51. :alt: Chat on Gitter
  52. Introduction
  53. ============
  54. A project to manage callbacks in `asyncio` projects.
  55. ``Signal`` is a list of registered asynchronous callbacks.
  56. The signal's life-cycle has two stages: after creation its content
  57. could be filled by using standard list operations: ``sig.append()``
  58. etc.
  59. After you call ``sig.freeze()`` the signal is *frozen*: adding, removing
  60. and dropping callbacks is forbidden.
  61. The only available operation is calling the previously registered
  62. callbacks by using ``await sig.send(data)``.
  63. For concrete usage examples see the `Signals
  64. <https://docs.aiohttp.org/en/stable/web_advanced.html#aiohttp-web-signals>
  65. section of the `Web Server Advanced
  66. <https://docs.aiohttp.org/en/stable/web_advanced.html>` chapter of the `aiohttp
  67. documentation`_.
  68. Installation
  69. ------------
  70. ::
  71. $ pip install aiosignal
  72. Documentation
  73. =============
  74. https://aiosignal.readthedocs.io/
  75. License
  76. =======
  77. ``aiosignal`` is offered under the Apache 2 license.
  78. Source code
  79. ===========
  80. The project is hosted on GitHub_
  81. Please file an issue in the `bug tracker
  82. <https://github.com/aio-libs/aiosignal/issues>`_ if you have found a bug
  83. or have some suggestions to improve the library.
  84. .. _GitHub: https://github.com/aio-libs/aiosignal
  85. .. _aiohttp documentation: https://docs.aiohttp.org/