https://github.com/jokester/streamlit-concurrency
Easier and safer concurrency for Streamlit
https://github.com/jokester/streamlit-concurrency
concurrency streamlit
Last synced: 11 months ago
JSON representation
Easier and safer concurrency for Streamlit
- Host: GitHub
- URL: https://github.com/jokester/streamlit-concurrency
- Owner: jokester
- License: apache-2.0
- Created: 2024-10-02T04:18:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-19T13:11:55.000Z (12 months ago)
- Last Synced: 2025-06-28T10:54:59.380Z (12 months ago)
- Topics: concurrency, streamlit
- Language: Python
- Homepage: https://concurrency.streamlit.app/
- Size: 105 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# streamlit-concurrency
Easier and safer concurrency for streamlit.
This library provide 2 APIs:
- `run_in_executor`: transform function to run concurrently in executor (ThreadPoolExecutor)
- with configurable caching like `st.cache_data`, even for async function
- transformed function can access `st.session_state` and widgets from other threads
- `use_state`: manage page state in and across pages
Links:
- [Demo](https://concurrency.streamlit.app/)
- [API](https://github.com/jokester/streamlit-concurrency/blob/main/API.md)
- [Github](https://github.com/jokester/streamlit-concurrency/)
- [pypi](https://pypi.org/project/streamlit-concurrency/)
## License
Apache 2.0