Metadata-Version: 2.1
Name: streamlit-url-fragment
Version: 0.1.1
Summary: Get the URL fragment (part after #) from Streamlit
License: Apache-2.0
Author: Tomasz Kontusz
Author-email: tomasz.kontusz@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: streamlit (>0.63)
Description-Content-Type: text/markdown

# Streamlit URL fragment

Get the URL fragment (the part of URL after #) in your Streamlit script:
```python
import streamlit as st
from streamlit_url_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()`.
