Streamlit-Authenticator permits you to add a easy but sturdy technique for person authentication in a Streamlit software.
Streamlit is a extensively used software for creating fast internet purposes backed by knowledge, however one of many capabilities it doesn’t have is the flexibility to handle a number of customers and establish them whereas they use the app.
Streamlit has some primary documentation on how one can add this by utilizing onerous coded key-value pairs in your secrets and techniques.toml
file, nonetheless it is a actually simplistic technique and you may in all probability outgrow it shortly!
Luckily, developer Mohammad Khorasani wrote a superb package deal that provides fairly subtle authentication in a quite simple and stylish manner! It’s referred to as Streamlit Authenticator and is out there on GitHub and may be put in along with your favourite package deal supervisor, corresponding to PIP.
Mohammad provides a pleasant pattern software and code for a single-page software, however there’s not one for a multi-page software. I made a decision to make a place to begin for anybody that’s all in favour of utilizing it. I additionally checked with the creator to verify the code was right.