Skip to main content

Easier and safer concurrency for Streamlit

Project description

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:

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_concurrency-0.1.1.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_concurrency-0.1.1-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_concurrency-0.1.1.tar.gz.

File metadata

  • Download URL: streamlit_concurrency-0.1.1.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for streamlit_concurrency-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f425de2ae5783902217232539d748043978518b8be1eb96d9c66423e02ccedeb
MD5 0db5c8859774c33a276035ee16743b55
BLAKE2b-256 75e16779c0bfd5c0b3bc9b6e3985cf06840f1a4479a39e63ce0f727e9d47650b

See more details on using hashes here.

Provenance

The following attestation bundles were made for streamlit_concurrency-0.1.1.tar.gz:

Publisher: publish-pypi.yaml on jokester/streamlit-concurrency

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file streamlit_concurrency-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_concurrency-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39dbdb21b6780091f42c32f76d87f98e651b50fe7171e5355244304c1086a8ab
MD5 045b07978263806e30d5a92db43c5ac5
BLAKE2b-256 db0701566bf2e0eaa778dc63724d8ad844ebfc6c183cf2c7b1860117f36c56c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for streamlit_concurrency-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yaml on jokester/streamlit-concurrency

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page