Skip to main content

aiosignal: a list of registered asynchronous callbacks

Project description

GitHub status for master branch codecov.io status for master branch Latest PyPI package version Latest Read The Docs Discourse group for io-libs Chat on Gitter

Introduction

A project to manage callbacks in asyncio projects.

Signal is a list of registered asynchronous callbacks.

The signal’s life-cycle has two stages: after creation its content could be filled by using standard list operations: sig.append() etc.

After you call sig.freeze() the signal is frozen: adding, removing and dropping callbacks is forbidden.

The only available operation is calling the previously registered callbacks by using await sig.send(data).

For concrete usage examples see the Signals <https://docs.aiohttp.org/en/stable/web_advanced.html#aiohttp-web-signals> section of the `Web Server Advanced <https://docs.aiohttp.org/en/stable/web_advanced.html> chapter of the aiohttp documentation.

Installation

$ pip install aiosignal

Documentation

https://aiosignal.readthedocs.io/

License

aiosignal is offered under the Apache 2 license.

Source code

The project is hosted on GitHub

Please file an issue in the bug tracker if you have found a bug or have some suggestions to improve the library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiosignal-1.4.0.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiosignal-1.4.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file aiosignal-1.4.0.tar.gz.

File metadata

  • Download URL: aiosignal-1.4.0.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aiosignal-1.4.0.tar.gz
Algorithm Hash digest
SHA256 f47eecd9468083c2029cc99945502cb7708b082c232f9aca65da147157b251c7
MD5 9c692735b1422a94f16bd066ebf1fb7c
BLAKE2b-256 616206741b579156360248d1ec624842ad0edf697050bbaf7c3e46394e106ad1

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiosignal-1.4.0.tar.gz:

Publisher: ci-cd.yml on aio-libs/aiosignal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiosignal-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: aiosignal-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for aiosignal-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 053243f8b92b990551949e63930a839ff0cf0b0ebbe0597b0f3fb19e1a0fe82e
MD5 acabfc37fbc3224ecac26c857e082d17
BLAKE2b-256 fb76641ae371508676492379f16e2fa48f4e2c11741bd63c48be4b12a6b09cba

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiosignal-1.4.0-py3-none-any.whl:

Publisher: ci-cd.yml on aio-libs/aiosignal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page