Skip to content

Instantly share code, notes, and snippets.

View snehankekre's full-sized avatar

Snehan Kekre snehankekre

View GitHub Profile
@snehankekre
snehankekre / st_local_storage.py
Last active March 6, 2026 18:55 — forked from sfc-gh-jcarroll/st_local_storage.py
Local storage access in Streamlit - st_local_storage
# NOTE: This feature uses browser local storage! AKA it stores data on a viewer's
# machine. This may have privacy and compliance implications for your app. Be sure
# to take that into account with any usage.
import json
import time
import uuid
from typing import Any, Optional
from streamlit.time_util import time_to_seconds