
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
AsyncBlink is a small extention to Blinker and enables you to use coroutines as receivers for your signals.
Installation is simple, via pip:
$ pip install asyncblink
Usage is simple, too. Create a signal, connect some receivers to it
and then use the send()
method to trigger all receivers
from asyncblink import signal
my_signal = signal('nice-signal')
async def coro_receiver(sender, **kwargs):
# an expensive io operation here
return 'done'
def receiver(sender):
return 'ok'
my_signal.connect(coro_receiver)
my_signal.connect(receiver)
my_signal.send('some-sender')
Other than that, AsyncBlink's usage is the same as Blinker, Take a look at the `Blinker documentation for further information.
Blinker now supports coroutines via signal.async_send
, so why asyncblink
is still alive?
The blinker's implementation awaits for coroutines and it is not what I want so asyncblink schedules the coroutine and returns a task.
Source code is hosted on github.
FAQs
Signals with coroutines!
We found that asyncblink demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.