Skip to main content

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().

Metadata

Release files for streamlit-url-fragment 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-url-fragment 0.2.1
File Size Uploaded
streamlit-url-fragment-0.2.1.tar.gz 676.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-url-fragment 0.2.1
File Interpreter ABI Platform
streamlit_url_fragment-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.4 MB

Release files / streamlit-url-fragment-0.2.1.tar.gz

Download URL streamlit-url-fragment-0.2.1.tar.gz
Size 676.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5832255437fa48ccfc8c3bb66a80eb53c9a0167a379112fde127865ce1420913
BLAKE2b-256 checksum
How to use checksums
106048e9727832e1d0b995bff652b0197bafa1e5373339a1972f7a035b1318a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.7 Linux/5.13.0-25-generic

Release files / streamlit_url_fragment-0.2.1-py3-none-any.whl

Download URL streamlit_url_fragment-0.2.1-py3-none-any.whl
Size 686.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35ddc21ae99595842ee2325986efe27e883918ec337d1867fe6909487ff705e4
BLAKE2b-256 checksum
How to use checksums
466c691c7c001094fd8aadf29dd0f2d9413989f5ab1af47f39a95c0e5d64af94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.7 Linux/5.13.0-25-generic

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page