Catalog PyPI
PACKAGE EXPLORERView in registry

ace-cm

PyPI

Access and save cookies from Streamlit for Streamlit

Versions collected1
Direct dependencies3From release 0.0.8
Last observed20 Oct, 18:05 UTC

README

Version 0.0.8 documentation

Access and change browser cookies from Streamlit scripts:

import os
import streamlit as st
from ace_cm import ECM

# This should be on top of your script
cookies = ECM(
    prefix="ace/ace-cm/",
    password=os.environ.get("COOKIES_PASSWORD", "My secret password"),
)
if not cookies.ready():
    st.stop()

st.write("Current cookies:", cookies)
value = st.text_input("New value for a cookie")
if st.button("Change the cookie"):
    cookies['a-cookie'] = value  # This will get saved on next rerun
    if st.button("No really, change it now"):
        cookies.save()  # Force saving the cookies now, without a rerun

Required Variables

CLIENT_ID=*** CLIENT_SECRET=*** AZURE_TENANT_ID=*** AUTHORITY=*** REDIRECT_URI=***


Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.86 Mar 20253

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:05 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d1e13a0821ca75d748bcb05939a98f4cc2fa4f9f6172f3d0b98d3b890710ab1f