
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
streamlit-state-manager
Advanced tools
A wrapper around Streamlit's session state for easier state management
The Streamlit State Manager StateManager
is essentially a wrapper around Streamlit's native st.session_state
dictionary, that simplifies how you interact with it.
pip install streamlit-state-manager
Without StateManager:
# Check if exists, initialize, then get
if "counter" not in st.session_state:
st.session_state["counter"] = 0
count = st.session_state["counter"]
# Updating value
st.session_state["counter"] += 1
With StateManager:
# Get with auto-initialization
count = StateManager.get("counter", 0)
# Updating value
StateManager.set("counter", count + 1)
Without StateManager:
# Potential KeyError if key doesn't exist
value = st.session_state["maybe_missing_key"]
# Forgetting to check existence before using
st.session_state["counter"] += 1 # Error if counter doesn't exist
With StateManager:
# Safe access with optional default
value = StateManager.get("maybe_missing_key", default_value=None)
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
FAQs
A wrapper around Streamlit's session state for easier state management
We found that streamlit-state-manager 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.