Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
streamlit-cookies-controller
Advanced tools
Control client browser cookie for the site.
streamlit-cookies-controller
let you
from/to the client browser. It use universal-cookie package to access the cookies.
Open a terminal and run:
pip install streamlit-cookies-controller
Create a new file example.py
import streamlit as st
from streamlit_cookies_controller import CookieController
st.set_page_config('Cookie QuickStart', '🍪', layout='wide')
controller = CookieController()
# Set a cookie
controller.set('cookie_name', 'testing')
st.write(st.session_state)
# Get all cookies
cookies = controller.getAll()
st.write(cookies)
# Get a cookie
cookie = controller.get('cookie_name')
st.write(cookie)
# Remove a cookie
controller.remove('cookie_name')
st.write(st.session_state)
Run the streamlit app
streamlit run example.py
Remove Test1
in frontend due to it is flikkering on streamlit v1.32.0
FAQs
Streamlit cookies controller
We found that streamlit-cookies-controller 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.