How to Add a User Authentication Service (Login Form) in Streamlit + Database

preview_player
ะŸะพะบะฐะทะฐั‚ัŒ ะพะฟะธัะฐะฝะธะต

๐——๐—˜๐—ฆ๐—–๐—ฅ๐—œ๐—ฃ๐—ง๐—œ๐—ข๐—ก
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

๐ŸŒ ๐—Ÿ๐—œ๐—ก๐—ž๐—ฆ:

โญ ๐—ง๐—œ๐— ๐—˜๐—ฆ๐—ง๐—”๐— ๐—ฃ๐—ฆ:
00:00 โ€“ Introduction
00:52 โ€“ Set up the database
06:28 โ€“ Hiding the project key
08:22 โ€“ Database helper file
09:22 โ€“ Connect streamlit with our database
10:56 โ€“ Config var values in Heroku
11:24 โ€“ Outro

๐—ง๐—ข๐—ข๐—Ÿ๐—ฆ ๐—”๐—ก๐—— ๐—ฅ๐—˜๐—ฆ๐—ข๐—จ๐—ฅ๐—–๐—˜๐—ฆ
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

๐—–๐—ข๐—ก๐—ก๐—˜๐—–๐—ง ๐—ช๐—œ๐—ง๐—› ๐— ๐—˜
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

โ˜• ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ?
If you want to support this channel, you can buy me a coffee here:
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

Please make more videos on Streamlit Dashboard with different examples. Your tutorials on streamlit is by far the easiest to follow and understand. Thank you.

muhammadnaqiuddinkamilmohd
ะะฒั‚ะพั€

๐Ÿšจ IMPORTANT ๐Ÿšจ
Shortly after releasing the video, the streamlit-authenticator package got updated. The new version is incompatible with the syntax I have shown in the video.
If you want to follow along with the video, please use version 0.1.5 : *pip install


*Happy Streamlit-ing!* ๐ŸŽ‰

CodingIsFun
ะะฒั‚ะพั€

Awesome as always, perfectly explained great stuff! Thank you!

ricardo.alves.campos
ะะฒั‚ะพั€

Very nice tutorial! Always wanted to see Deta in action, did not know they had a Python API ๐Ÿ˜€

andfanilo
ะะฒั‚ะพั€

Very easy to understand, great content!

florianroeseler
ะะฒั‚ะพั€

You are the best because you provide very valuable lessons for free๐Ÿ˜˜

hakimdz
ะะฒั‚ะพั€

Your tutorial very very useful. Thanks a lot !

canhtung.n
ะะฒั‚ะพั€

God bless you for the tutorials sir. I really want to be a professional in programming languages someday

sholay
ะะฒั‚ะพั€

Fantastic video!
I noticed that since you uploaded this video, Deta has undergone some significant upgrades. I'm curious if you could elaborate on how these changes impact the workflow you covered in the video?
Thanks again for sharing such valuable insights!

stefanwiesinger
ะะฒั‚ะพั€

You are by far the best streamlit teacher ! I learnt so many things thanks to you ^^
Would it be possible to use Stripe then to give access only to users who paid it ? I think the video would be hugely successfull ^^

FRUXT
ะะฒั‚ะพั€

This is awesome! But it goes a little bit over my head. Let me know if you create a more in-depth course on the topic. I love your way of teaching! :) Cheers

simenandreasknudsen
ะะฒั‚ะพั€

Thanks for making this tutorial, Sven, your have offered us a good option of choosing database. But I have a question, is Deta suitable for production use? Any limitations or potential risks behind?

PinkPixelRabbit
ะะฒั‚ะพั€

Hello everyone, is it possible to change the field name (username and password), for example, instead of those: email and secret key. Thanks!

da
ะะฒั‚ะพั€

Hi. May i know if streamlit able to connect to Azure sql database ? As i saw from documentation, active directories are not ready yet for streamlit to connect with azure. :(

yinshin
ะะฒั‚ะพั€

Thank you for the amazing tutorial Sven. I've been having this problem and reading all the realated community notes. No matter what I do, I can't get the authentication to return True for authentication status. I've followed every step multiple times and debugged the code. I'm using the dictionary format in the new verion. Is there anything I might be doing wrong?

NickoReese
ะะฒั‚ะพั€

Thanks the video, everything works good. But i have a problem, when i enter the data in the form.... the login form disappears very slowly, do you have any idea what i can do to make it disappear from the screen immediately?

laszlosebestyen
ะะฒั‚ะพั€

How to implement this for Olympic data visualisation project-to add login and db

knowledgegetter
ะะฒั‚ะพั€

Hi, this is great video. Do we have any references that can integrate with Aws cognito?

praveenv
ะะฒั‚ะพั€

Just one question. When I do import database as db it shows as an error. I already installed it yet it doesnโ€™t work. Did it update or did the code change? Any idea what may have happened? Please lmk๐Ÿ˜Š

ragesilver
ะะฒั‚ะพั€

Your videos are very helpfull, Thank you about it!
Did you have example how can i connect to postgreSQL DataBase instead using Data cloud?

Eden-Ifrah