StUser
I put together a new package to let developers add users to their apps! It’s called stuser and has a full ecosystem around registration and login/logout.
Template
Note that the package comes with a set of template files that can be copy/pasted to start a project with stuser (or add to an existing project).
Benefits
As I developed in Streamlit, I realized I wanted to have customized user experiences and the existing authentication packages were missing some things I needed:
- An independent package, not relying on the user to be logged in somewhere else (google, etc)
- Callbacks within the methods, so that something is done with the user information when a button is pushed - such as storing info, sending emails, updating session state - before re-running the app
- Using argon2 for hashing, to keep passwords the most secure
The package lets users define their own methods for callbacks when form buttons are pushed, but has pre-defined methods to store/pull data from BigQuery and to send emails with SendGrid
- It does require users to sign up for and define databases in BigQuery, and sign up for SendGrid
- If anyone wants to add other pre-defined methods to the package, I’m happy to help facilitate that
Examples
I welcome all questions/comments and hope Streamlit devs find this useful!