--- id: streamlit-cookies-controller version: "0.0.4" license: unclear license_treatment: permissive maintenance: dormant --- # streamlit-cookies-controller — Streamlit cookies controller License: permissive · Maintenance: dormant · Downloads: 78.2K/mo ## What it is and what it does Streamlit Cookie Controller is a lightweight bridge that lets you read, write, and delete browser cookies from within a Streamlit application. It wraps the JavaScript universal-cookie library to expose cookie operations through a Python API, allowing you to store and retrieve client-side state that persists across page reloads within the browser. The package provides three core operations: set a cookie with a name and value, retrieve a single cookie by name or all cookies at once, and remove cookies. This is useful for Streamlit apps that need to maintain user preferences, authentication tokens, or session identifiers on the client side rather than relying solely on Streamlit's server-side session state. Use it for: - Store user preferences (theme, language, layout) that persist across browser sessions in a Streamlit app. - Maintain authentication tokens or session IDs on the client for multi-tab or multi-window Streamlit deployments. - Implement remember-me functionality or user recognition without server-side database queries. - Coordinate state between a Streamlit frontend and external web services that also use cookies. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides read, write, and delete operations on browser cookies from a Streamlit application, bridging the gap between server-side Streamlit code and client-side cookie storage. Yes, if you need client-side cookie management in a Streamlit app and accept dormant maintenance. The package is simple, has no known vulnerabilities, and low install friction. However, be aware that the last update was 2024-04-10 with no recent commits—if you encounter issues with newer Streamlit versions or need active support, you may need to fork or find an alternative. ## Install pip install streamlit-cookies-controller uv add streamlit-cookies-controller poetry add streamlit-cookies-controller ## Installing streamlit-cookies-controller Before you install: Low friction installation with a single runtime dependency on streamlit. Maintenance is dormant—last release was 2024-04-10 and no commits since 2024-05-02—so expect no active bug fixes or feature updates. License in practice: MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, typical for open-source Streamlit extensions. Quickstart: pip install streamlit-cookies-controller import streamlit as st from streamlit_cookies_controller import CookieController controller = CookieController() controller.set('my_cookie', 'value') cookie_value = controller.get('my_cookie') Requires a running Streamlit application context; cookies are stored and retrieved from the client browser, so browser cookie settings and privacy policies apply. Verify before relying: - Whether the package works reliably with current Streamlit versions beyond v1.32.0 (last tested version mentioned in changelog). - Whether cookie persistence survives across browser sessions or is limited to the current session. - Performance characteristics when managing large numbers of cookies or frequent read/write operations. ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 78.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags streamlit cookie management, browser cookie control streamlit, client-side cookie access, streamlit session persistence, cookie get set remove, streamlit-extension, client-side-state [View on SkillFed](https://skillfed.io/packages/streamlit-cookies-controller) · [View on PyPI](https://pypi.org/project/streamlit-cookies-controller/)