Streamlit-Authenticator lets you add a easy but strong technique for person authentication in a Streamlit software.
Streamlit is a extensively used device for creating fast internet functions backed by information, however one of many capabilities it doesn’t have is the flexibility to handle a number of customers and determine them whereas they use the app.
Streamlit has some primary documentation on how one can add this by utilizing arduous coded key-value pairs in your secrets and techniques.toml
file, nevertheless it is a actually simplistic technique and you will most likely outgrow it rapidly!
Luckily, developer Mohammad Khorasani wrote a wonderful bundle that provides fairly subtle authentication in a quite simple and stylish method! It’s known as Streamlit Authenticator and is accessible on GitHub and might be put in together with your favourite bundle supervisor, resembling PIP.
Mohammad provides a pleasant sample application and code for a single-page software, however there may be not one for a multi-page software. I made a decision to make a place to begin for anybody that’s desirous about utilizing it. I additionally checked with the creator to verify the code was right.