streamlit-localstorage-bulk


Namestreamlit-localstorage-bulk JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryHandles localstorage with Streamlit.
upload_time2024-08-18 12:31:55
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords streamlit tool localstorage
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # streamlit-localstorage-bulk

[![PyPI version](https://badge.fury.io/py/streamlit-localstorage-bulk.svg)](https://badge.fury.io/py/streamlit-localstorage-bulk)
[![Build Status](https://github.com/toyama0919/streamlit-localstorage-bulk/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/toyama0919/streamlit-localstorage-bulk/actions/workflows/ci.yml)

Handles localstorage with Streamlit.

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

Support python3 only.

## Examples

```python
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

```sh
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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "streamlit-localstorage-bulk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "streamlit, tool, localstorage",
    "author": null,
    "author_email": "Hiroshi Toyama <toyama0919@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/f1/0b/324246c79973fb5aab28f4da860e6cfb616e9f78e4fa0b1373dcd5d8f762/streamlit_localstorage_bulk-0.1.0.tar.gz",
    "platform": null,
    "description": "# streamlit-localstorage-bulk\n\n[![PyPI version](https://badge.fury.io/py/streamlit-localstorage-bulk.svg)](https://badge.fury.io/py/streamlit-localstorage-bulk)\n[![Build Status](https://github.com/toyama0919/streamlit-localstorage-bulk/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/toyama0919/streamlit-localstorage-bulk/actions/workflows/ci.yml)\n\nHandles localstorage with Streamlit.\n\nSignificant performance improvements can be expected due to batch javascript execution.\n\nSupport python3 only.\n\n## Examples\n\n```python\nimport streamlit as st\nfrom streamlit_localstorage_bulk import StreamlitLocalstorageBulk\n\n\ndef main():\n    sl = StreamlitLocalstorageBulk(\n        prefix=\"st_localstorage_\",\n    )\n    v = sl.get_items(keys=[\"ability\", \"goals\", \"a\"])\n    st.write(v)\n\n    # update or create\n    if st.button(\"setitem\"):\n        sl.setitems(data={\"a\": \"A\"})\n\n    # delete\n    if st.button(\"delitem\"):\n        sl.delitems(keys=[\"a\"])\n\n\nif __name__ == \"__main__\":\n    main()\n```\n\n## Installation\n\n```sh\npip install streamlit-localstorage-bulk\n```\n\n## CI\n\n### install test package\n\n```\n$ ./scripts/ci.sh install\n```\n\n### test\n\n```\n$ ./scripts/ci.sh run-test\n```\n\nflake8 and black and pytest.\n\n### release pypi\n\n```\n$ ./scripts/ci.sh release\n```\n\ngit tag and pypi release.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Handles localstorage with Streamlit.",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/toyama0919/streamlit-localstorage-bulk"
    },
    "split_keywords": [
        "streamlit",
        " tool",
        " localstorage"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f10b324246c79973fb5aab28f4da860e6cfb616e9f78e4fa0b1373dcd5d8f762",
                "md5": "557f66c5deafb758382a4897cd5ff0d4",
                "sha256": "48b12fe5549bb05681e828fa51dc0d339b26a0b666291aa9ecd105a51d557d67"
            },
            "downloads": -1,
            "filename": "streamlit_localstorage_bulk-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "557f66c5deafb758382a4897cd5ff0d4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3721,
            "upload_time": "2024-08-18T12:31:55",
            "upload_time_iso_8601": "2024-08-18T12:31:55.048037Z",
            "url": "https://files.pythonhosted.org/packages/f1/0b/324246c79973fb5aab28f4da860e6cfb616e9f78e4fa0b1373dcd5d8f762/streamlit_localstorage_bulk-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-18 12:31:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "toyama0919",
    "github_project": "streamlit-localstorage-bulk",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "streamlit-localstorage-bulk"
}
        
Elapsed time: 1.74622s