Metadata-Version: 2.4
Name: streamlit-concurrency
Version: 0.1.2
Summary: Easier and safer concurrency for Streamlit
Author-email: Wang Guan <momocraft@gmail.com>
License: Apache-2.0
Requires-Python: <3.14,>=3.09
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typing_extensions
Dynamic: license-file

# 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
