Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

streamlit-localstorage-bulk

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

streamlit-localstorage-bulk

Handles localstorage with Streamlit.

  • 0.1.0
  • PyPI
  • Socket score

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.

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc