Get the URL fragment (part after #) from Streamlit
Project description
Streamlit URL fragment
Get the URL fragment (the part of URL after #) in your Streamlit script:
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().
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit-url-fragment-0.2.1.tar.gz.
File metadata
- Download URL: streamlit-url-fragment-0.2.1.tar.gz
- Upload date:
- Size: 676.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.7 Linux/5.13.0-25-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5832255437fa48ccfc8c3bb66a80eb53c9a0167a379112fde127865ce1420913
|
|
| MD5 |
1cc4971c2b0742267a13641189cb1601
|
|
| BLAKE2b-256 |
106048e9727832e1d0b995bff652b0197bafa1e5373339a1972f7a035b1318a5
|
File details
Details for the file streamlit_url_fragment-0.2.1-py3-none-any.whl.
File metadata
- Download URL: streamlit_url_fragment-0.2.1-py3-none-any.whl
- Upload date:
- Size: 686.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.7 Linux/5.13.0-25-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35ddc21ae99595842ee2325986efe27e883918ec337d1867fe6909487ff705e4
|
|
| MD5 |
72a658a9b1019b619c2fc6a501663a73
|
|
| BLAKE2b-256 |
466c691c7c001094fd8aadf29dd0f2d9413989f5ab1af47f39a95c0e5d64af94
|