st-compat
st-compat
is the simplest way to handle compatibility between streamlit versions when building utils and modules for the community!
How to install
pip install st-compat
How to use
from st_compat import get_script_run_ctx
ctx = get_script_run_ctx()