imednet_streamlit package

Subpackages

Submodules

imednet_streamlit.app module

imednet_streamlit.auth module

imednet_streamlit.auth.clear_credentials()[source]

Remove all authentication state from Streamlit session storage.

This removes the cached SDK instance, connection flag, and any credential input values currently held in st.session_state.

Return type:

None

imednet_streamlit.auth.get_sdk()[source]

Return the authenticated SDK from session state.

Return type:

ImednetSDK

Returns:

The connected imednet.ImednetSDK instance.

Raises:

RuntimeError – If the user is not connected or no SDK is stored.

imednet_streamlit.auth.get_study_key()[source]

Return the selected study key from session state.

Return type:

str

Returns:

The selected study key string.

Raises:

RuntimeError – If no study key is present in session state.

imednet_streamlit.auth.render_auth_sidebar()[source]

Render sidebar authentication controls and update session auth state.

Return type:

bool

Returns:

True when a valid SDK connection is active in st.session_state; otherwise False.