blinker
blinker copied to clipboard
A fast Python in-process signal/event dispatching system.
This allows for signals to send to coroutine receivers by awaiting them. The _async_wrapper and _sync_wrapper allows for conversion of sync and async receivers as required if defined. If not...
Having type hints for this library would make it possible to check its usage in applications with Mypy. I currently have a [work-in-progress](https://github.com/python/typeshed/compare/master...bbc2:blinker-stubs?expand=1) of those type hints. Before it can...
Utilities file was discriminating between different attributes for bound method with `hasattr`function but Saferef file was doing it with version-based discrimination. It can cause problems if `hasattr`and getting the attribute...
## Problem statement: I'm using pelican, and have a set of plugins that I'd like to apply -- pelican uses blinker as its primary extension mechanism to handle lifecycle hooks....
In the same way you can use strings as senders, using ints would be helpful.
Sometimes you need to switch off particular signals for testing purposes. I guess this context manager would be more convenient way to solve such task: ``` python # I have...
This PR builds on top of #3 by @jwineinger. - Support send_robust - Add traceback to every exception returned in the response from `send_robust` cc @jek
This also supports diagnostic utilities that inspect the global namespace. This also makes it convenient to write consistent code that is parameterized on a namespace, but that still functions with...
This is useful to easily provide a customized signal class (for example, to provide argument checking or processing) when adding a named signal to a Namespace.