Streamlit Toggle Switch

I had the same error:

Attribute Error: module ‘streamlit_toggle’ has no attribute ‘st_toggle_switch’

Lowering the Python version worked for me: 3.8.5 or 3.8.10

For those that find this post via Google, this is now a native feature of Streamlit: st.toggle - Streamlit Docs

Example usage:

import streamlit as st

on = st.toggle('Activate feature')

if on:
    st.write('Feature activated!')

Thanks @Dimitri_S, yes this feature is now native and this repo will soon be sunset.