
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
solid
Advanced tools
A state machine implementation for Python --- which isn't solely designed to parse strings!
They're cool! Also, easy to reason about --- a state machine design enables you to compartmentalize responsibilites in a way that functions simply don't.
It's a convoluted name: it's a state machine library written in python; snake is another word for python that sounds like state --- and Solid Snake is a fairly well known character who kicks serious butt. Thus, "solid".
Let's define a super-simple state machine with two states: one that prints "Hello" and one that prints "World":
.. code-block:: python
from solid.machines import BaseMachine from solid.states import BaseState, is_entry_state from solid.transition import to
class HelloMachine(BaseMachine):
@is_entry_state
class Hello(BaseState):
def body(self):
print "Hello"
return to(HelloMachine.World)
class World(BaseState):
def body(self):
print "World"
From an intertpreter (or whatever):
.. code-block:: python
h = HelloMachine() h.start() Hello World
and that's pretty much all there is to it.
FAQs
Pythonic state machines
We found that solid 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.