semvec/pypi-packages huggingface dataset:
streamlit-query-fragment 0.1.0
Get the URL fragment (part after #) from Streamlit
License: Apache-2.0
Requires Python: >=3.9,<4.0

# Streamlit query fragment

Get the query fragment (the part of URL after #) in your Streamlit script:
```python
import streamlit as st
from streamlit_query_fragment import get_fragment

current_value = get_fragment()
st.write("Current value: {!r}".format(get_fragment()))
```

Warning: the first value you'll get will be a `None` - that means the component is still loading.
You can wait for the correct value with `if current_value is None: st.stop()`.