Debian Codegraph @

README.rst

raw
1 =========
2 aiosignal
3 =========
4
5 .. image:: https://github.com/aio-libs/aiosignal/workflows/CI/badge.svg
6 :target: https://github.com/aio-libs/aiosignal/actions?query=workflow%3ACI
7 :alt: GitHub status for master branch
8
9 .. image:: https://codecov.io/gh/aio-libs/aiosignal/branch/master/graph/badge.svg?flag=pytest
10 :target: https://codecov.io/gh/aio-libs/aiosignal?flags[0]=pytest
11 :alt: codecov.io status for master branch
12
13 .. image:: https://badge.fury.io/py/aiosignal.svg
14 :target: https://pypi.org/project/aiosignal
15 :alt: Latest PyPI package version
16
17 .. image:: https://readthedocs.org/projects/aiosignal/badge/?version=latest
18 :target: https://aiosignal.readthedocs.io/
19 :alt: Latest Read The Docs
20
21 .. image:: https://img.shields.io/discourse/topics?server=https%3A%2F%2Faio-libs.discourse.group%2F
22 :target: https://aio-libs.discourse.group/
23 :alt: Discourse group for io-libs
24
25 .. image:: https://badges.gitter.im/Join%20Chat.svg
26 :target: https://gitter.im/aio-libs/Lobby
27 :alt: Chat on Gitter
28
29 Introduction
30 ============
31
32 A project to manage callbacks in `asyncio` projects.
33
34 ``Signal`` is a list of registered asynchronous callbacks.
35
36 The signal's life-cycle has two stages: after creation its content
37 could be filled by using standard list operations: ``sig.append()``
38 etc.
39
40 After you call ``sig.freeze()`` the signal is *frozen*: adding, removing
41 and dropping callbacks is forbidden.
42
43 The only available operation is calling the previously registered
44 callbacks by using ``await sig.send(data)``.
45
46 For concrete usage examples see the `Signals
47 <https://docs.aiohttp.org/en/stable/web_advanced.html#aiohttp-web-signals>
48 section of the `Web Server Advanced
49 <https://docs.aiohttp.org/en/stable/web_advanced.html>` chapter of the `aiohttp
50 documentation`_.
51
52
53 Installation
54 ------------
55
56 ::
57
58 $ pip install aiosignal
59
60
61 Documentation
62 =============
63
64 https://aiosignal.readthedocs.io/
65
66 License
67 =======
68
69 ``aiosignal`` is offered under the Apache 2 license.
70
71 Source code
72 ===========
73
74 The project is hosted on GitHub_
75
76 Please file an issue in the `bug tracker
77 <https://github.com/aio-libs/aiosignal/issues>`_ if you have found a bug
78 or have some suggestions to improve the library.
79
80 .. _GitHub: https://github.com/aio-libs/aiosignal
81 .. _aiohttp documentation: https://docs.aiohttp.org/