
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
A small, simple, and fast framework for reactive programming
Before anything else make sure you read and agree with the license.
Available through pip
:
pip install jfaleiro.reactives
or poetry
:
poetry add jfaleiro.reactives
Reactives allow for three types of bindings: pre
, post
, and notify
.
pre
bindings - a chain of calls executed synchronously and in sequence before an update on state is performed. For R
reactives, the value of the last execution on pre-binding chain is kept. Special shortcuts:
guard
- used to establish boolean conditions for a change in state to fail.post
bindings - a chain of calls executed synchronously and in sequence after an update on state is performed. For synchronous notification purposes. Exceptions and updates are ignored.
notify
bindings - a chain of calls executed asynchronously and after the last post
call is performed. For asynchronous notification purposes. Exceptions and updates are ignored
with Context() as x:
a = x.new(R, 1)
b = x.new(R, 2)
c = a + b
assert a.value == 1
assert b.value == 2
assert c.value == 3
a.pre(guard(lambda x: x > 0))
c.pre(guard(lambda x: x >= 3))
a.value = 4
assert a.value == 4
assert b.value == 2
assert c.value == 6
Look for plenty of examples of use under ./tests
as well as Jupyter notebooks on ./samples
for interactive use.
Enjoy.
FAQs
Reactives - a small, simple, and fast framework for reactive programming
We found that jfaleiro.reactives 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.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.