
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
This software is still in beta, and will likely experience rapid changes before the first official release.
Live Cells Python is a reactive programming library for Python, ported from Live Cells for Dart.
Run the following command to install Live Cells Python:
pip install live-cells-py
This section contains examples demonstrating the main features of the library. Head to the documentation, for more information on how to use this library.
The basic building block of Live Cells is the cell, which is an object with a value and a set of observers, which react to changes in the value.
Cells are defined as follows:
import live_cells as lc
a = lc.mutable(0)
a = lc.mutable(0)
And are observed as follows:
lc.watch(lambda: print(f'{a()}, {b()}'))
The watch function defined above prints the values of the cells a
and b
to standard output. It is called whenever the value of a
or
b
changes.
For example the following code, which sets the values of a
and b
:
a.value = 1
b.value = 2
a.value = 3
Results in the following being printed to standard output:
1, 0
1, 2
3, 2
Watch functions comprising multiple statements can be defined using
the decorator of watch
:
@lc.watch
def watcher():
print(f'A = {a()}')
print(f'B = {b()}')
Cells can also be defined as a function of the values of one or more
cells. For example the following cell is defined as the sum of cells
a
and b
:
c = lc.computed(lambda: a() + b())
The value of cell c
is recomputed automatically whenever the value
of either a
or b
changes.
This cell can also be defined more succinctly as an expression of cells:
c = a + b
That looks exactly like a normal variable definition.
This can be used to run a routine automatically whenever a certain condition is met. For example, let's print a message to standard output whenever the sum exceeds 100:
@lc.watch
def watch_sum():
if c() > 100:
print('Sum exceeds 100!!!')
When the following is executed:
a.value = 90
b.value = 30
The following message is printed to standard output automatically:
Sum exceeds 100!!!
FAQs
A reactive programming library for Python ported from Live Cells for Dart
We found that live-cells-py 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.