Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 302 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 302 Bytes

streamlit_get_protocol

Get window.location.protocol
Return http || https

Installation:

pip install streamlit_get_protocol

Example:

import streamlit as st  
from streamlit_get_protocol import get_protocol

protocol = get_protocol()

if protocol:  
    st.write(protocol)