New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

streamlit-localstorage-bulk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamlit-localstorage-bulk

Handles localstorage with Streamlit.


Maintainers
1

streamlit-localstorage-bulk

PyPI version Build Status

Handles localstorage with Streamlit.

Significant performance improvements can be expected due to batch javascript execution.

Support python3 only.

Examples

import streamlit as st
from streamlit_localstorage_bulk import StreamlitLocalstorageBulk


def main():
    sl = StreamlitLocalstorageBulk(
        prefix="st_localstorage_",
    )
    v = sl.get_items(keys=["ability", "goals", "a"])
    st.write(v)

    # update or create
    if st.button("setitem"):
        sl.setitems(data={"a": "A"})

    # delete
    if st.button("delitem"):
        sl.delitems(keys=["a"])


if __name__ == "__main__":
    main()

Installation

pip install streamlit-localstorage-bulk

CI

install test package

$ ./scripts/ci.sh install

test

$ ./scripts/ci.sh run-test

flake8 and black and pytest.

release pypi

$ ./scripts/ci.sh release

git tag and pypi release.

FAQs


Did you know?

Socket

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.

Install

Related posts