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

  Рет қаралды 58,702

Coding Is Fun

Coding Is Fun

Күн бұрын

Пікірлер: 186
@muhammadnaqiuddinkamilmohd5994
@muhammadnaqiuddinkamilmohd5994 2 жыл бұрын
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.
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks! I plan to release the next streamlit tutorial this weekend. We are going to build the following website from scratch: share.streamlit.io/sven-bo/streamlit-income-expense-tracker/app.py Code is already available: github.com/Sven-Bo/streamlit-income-expense-tracker Stay tuned!
@CodingIsFun
@CodingIsFun 2 жыл бұрын
🚨 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 streamlit-authenticator==0.1.5* 👉 Live Website: www.dashboarduserauth.pythonandvba.com/ 👉 [PART 1] Add a user authentication service (login form) in Streamlit: kzbin.info/www/bejne/gKCpeKWJh89njpY *Happy Streamlit-ing!* 🎉
@seifreda5911
@seifreda5911 Жыл бұрын
Hello, How can I deploy my sreamlit app on a custom domain ?
@andfanilo
@andfanilo 2 жыл бұрын
Very nice tutorial! Always wanted to see Deta in action, did not know they had a Python API 😀
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thank you! I like how fast & easy it is to set up and use.
@stefanwiesinger3077
@stefanwiesinger3077 Жыл бұрын
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!
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you for your comment and for bringing up the recent changes to Deta! You are correct that Deta recently changed their name from Deta Cloud to Deta Space, and they have also made some updates to their platform. The core concepts and workflows that I demonstrated are still applicable to Deta Space. However, some of the commands and APIs may have changed slightly, so I would encourage you to consult Deta Space's updated documentation, which can be found here: deta.space/docs/en/introduction/start. At this time, I don't have any plans to create an updated video, but I hope that the documentation will be helpful to you. Happy Coding!
@adomako5863
@adomako5863 Жыл бұрын
@@CodingIsFun , their documentation is no good! This is why we are watching videos.
@PinkPixelRabbit
@PinkPixelRabbit Жыл бұрын
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?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. In my opinion, Deta is suitable for production use, especially for small teams and startups due to its simplicity and scalability. However, limitations include potential vendor lock-in and possibly limited query capabilities compared to other database solutions.
@ricardo.alves.campos
@ricardo.alves.campos 2 жыл бұрын
Awesome as always, perfectly explained great stuff! Thank you!
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Happy to hear that you enjoyed this one too! Thanks for the comments and support, as always!
@FRUXT
@FRUXT Жыл бұрын
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 ^^
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you for watching the video & your suggestion.
@RandyGriggs
@RandyGriggs 18 күн бұрын
HI Sven, I love this video but the only part I am struggling with is once I logout the menu on the sidebar still shows up eventhough I now have the login page. I see Yours does not do that but I can figure out how to remove the sidbar on logout. I hope you have some thoughts. By the way I love your videos.
@CodingIsFun
@CodingIsFun 16 күн бұрын
Hi Randy. As I mentioned in my other comment, it's hard to determine from a distance why you're encountering the error. I'm sorry I can't be of more help. Also, just to clarify, the authenticator package has been involved since I created the video. I'm currently waiting for native Streamlit authentication support to update the video on this topic. Cheers, Sven ✌️
@RandyGriggs
@RandyGriggs 15 күн бұрын
@@CodingIsFun Hi Sven, Thanks for your reply. I have moved on with integrating the rest of my app with the authenticator and will revisit in the future. It seems that some session state might be the issue as if I refresh the menu goes away but when I just logout the menu stays until I F5 refresh. I will continue watching your videos and yes Sreamlit support would be nice............. Thank you Randy
@florianroeseler2404
@florianroeseler2404 2 жыл бұрын
Very easy to understand, great content!
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks, Florian!
@turtlecode
@turtlecode 2 жыл бұрын
Perfect Tutorials! Thanks A lot.
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Glad you like them!
@David-n7j6b
@David-n7j6b Жыл бұрын
I noticed that the commands used in DETA at the time this video was provided and the commands now are very different. Instead of the command called DETA, the command called SPACE is used. I am studying website documentation on how to add BASE to manage the user database in DETA and I am still stuck on how to do it. I was wondering if you could update that video based on the latest DETA since it was then. Thank you for providing impressive quality content.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Yes, Deta Space has replaced Deta Cloud. I am not planning to do an updated video. Please refer to the official Deta Space documentation. Thanks!
@seththunder2077
@seththunder2077 6 ай бұрын
dude you are extremely underrated!!!
@simenandreasknudsen9272
@simenandreasknudsen9272 Жыл бұрын
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
@CodingIsFun
@CodingIsFun Жыл бұрын
Glad you liked it. On my channel I have already some other Streamlit tutorials. Perhaps those videos will help you! Cheers!
@NickoReese
@NickoReese 10 ай бұрын
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?
@CodingIsFun
@CodingIsFun 10 ай бұрын
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
@ragesilver
@ragesilver Жыл бұрын
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😊
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Unfortunately, with that bit of information, I cannot help you. You might want to take some time to write down the exact error message. It would also be great to let me know if you have made any modifications to the initial code I have shared on GitHub. Thanks!
@sholay7255
@sholay7255 Жыл бұрын
God bless you for the tutorials sir. I really want to be a professional in programming languages someday
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you and best of luck to you! 👍
@hakimdz3358
@hakimdz3358 2 жыл бұрын
You are the best because you provide very valuable lessons for free😘
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thank you!
@brianmorin5547
@brianmorin5547 Ай бұрын
Great stuff! It would be great to do an update to this video and how to work in Google OAuth retained in the cookies
@CodingIsFun
@CodingIsFun Ай бұрын
Thanks for watching and your video suggestion. Cheers, Sven ✌️
@ChandrashekarCN
@ChandrashekarCN 2 жыл бұрын
Thanks I appreciate your support.
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks for watching the video!
@Eden-Ifrah
@Eden-Ifrah 2 жыл бұрын
Your videos are very helpfull, Thank you about it! Did you have example how can i connect to postgreSQL DataBase instead using Data cloud?
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks for watching. Check out the following tutorial: docs.streamlit.io/knowledge-base/tutorials/databases/postgresql
@eldarico
@eldarico Жыл бұрын
As always, excellent tutorial.
@CodingIsFun
@CodingIsFun Жыл бұрын
Happy to hear that you enjoyed this one too! Thanks for the comments and support!
@therealbeginnertv4494
@therealbeginnertv4494 Жыл бұрын
Danke für deine tollen Videos!
@CodingIsFun
@CodingIsFun Жыл бұрын
Sehr gerne. Freut mich zu hören, dass sie dir gefallen! 👍
@biodatatechnologie356
@biodatatechnologie356 3 ай бұрын
I'd like you to show us, in the third video of series,how to add a subscription system with PayPal ( like a saas)
@CodingIsFun
@CodingIsFun 3 ай бұрын
Thanks for watching and your suggestion. Cheers, Sven ✌️
@gustavojuantorena
@gustavojuantorena 2 жыл бұрын
Thank you for making this tutorial! 😃
@CodingIsFun
@CodingIsFun 2 жыл бұрын
A pleasure! Thanks for watching and your comment! :)
@SCVisGoing
@SCVisGoing Жыл бұрын
Thanks for your video. I have a question about how to support linkedIn authentication?
@CodingIsFun
@CodingIsFun Жыл бұрын
While I'm happy to try and help, it sounds like your question is beyond the scope of the tutorial and would require a custom solution. Unfortunately, I don't have the time to code something specific for every viewer. Thanks for your understanding. Happy Coding!
@mocanada304
@mocanada304 Жыл бұрын
Amazing! However, in real world we just send an invitation to the user in their email with a temporary password. Then allow user to change their password in the first login. Also, we need to be able to reset their password in case they forget it. Moreover, can we use an open source database like postgres? Does it have MFA by any chance? Thank you so much!
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. In the newer version of streamlit-authenticator, that is possible. Check it out here: github.com/mkhorasani/Streamlit-Authenticator And yes, you an also hook it up to other DBs like Postgres. Happy Coding!
@canhtung.n
@canhtung.n 2 жыл бұрын
Your tutorial very very useful. Thanks a lot !
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Glad it is helpful!
@gustasty9484
@gustasty9484 Жыл бұрын
Hey! What a great video. But is it possible to make a multipage app with user authentication with streamlit? I've made a multipage app but when i follow this tutorial the login page appear on homepage and other pages can access without having to login
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. I have not tried it using it on a multipage app. Sorry that I cannot help!
@praveenv1008
@praveenv1008 2 жыл бұрын
Hi, this is great video. Do we have any references that can integrate with Aws cognito?
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks for watching. No, sorry.
@GidonLoewenberg
@GidonLoewenberg 2 жыл бұрын
Amazing tutorial, thanks!! Would it be possible to update the content for the newest version of Streamlit-Authenticator? Specifically I'm referring to the change Authenticate, since "as of v0.2.1 the credentials must be supplied as one combined dictionary, where names, usernames and hashed passwords are combined into 1 argument not 3" (quote from the developer).
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks for pointing this out. 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 streamlit-authenticator==0.1.5 I might do an updated video once the package is more stable.
@GidonLoewenberg
@GidonLoewenberg 2 жыл бұрын
@@CodingIsFun So that's exactly what I'm doing, but I'd really like to upgrade to the newer version mainly because it solves the Case Sensitive issue (user names should not be case sensitive!) but also because loads of new features have been added. I guess I'll have to wait patiently for that update video. Thanks again for all the amazing videos! 🙂
@CodingIsFun
@CodingIsFun 2 жыл бұрын
@@GidonLoewenberg, You are absolutely right; indeed, the new features look promising. Happy to hear that you've found the videos helpful! :)
@vincentcornil5573
@vincentcornil5573 6 ай бұрын
1 word: stunning
@CodingIsFun
@CodingIsFun 5 ай бұрын
Thank you! 🙏 Cheers, Sven ✌️
@laszlosebestyen5705
@laszlosebestyen5705 2 жыл бұрын
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?
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks for watching. I have noticed a similar behavior. Unfortunately, I do not know a fix.
@fire17102
@fire17102 Жыл бұрын
Thanks for great video! Subscribed! Could you please make another video that shows how to use OAuth with streamlit? Or refer to some useful references.. Thanks a lot!
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you for watching the video & your suggestion.
@lukenorman714
@lukenorman714 2 жыл бұрын
Hi, great video. Just thinking we could get a user to reset their password when they are logged in. Would we have to define update_password, how would we replace the password of the signed in user with the new password the user has entered via a variable from a text input within a form? Thanks
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks for watching. There was a new release of the streamlit authenticator package. It seems that a similar feature is now already available. Find out more here: github.com/mkhorasani/Streamlit-Authenticator#4-creating-a-password-reset-widget Happy Coding!
@lukenorman714
@lukenorman714 2 жыл бұрын
Thankyou, will checkout the documentation and see if I can use some of the methods, currently using the older version of the Authenticator as instructed :)
@miro6470
@miro6470 6 ай бұрын
Does Deta still provide this service? The concept of Deta space seems kinda off.
@CodingIsFun
@CodingIsFun 5 ай бұрын
I guess it still works with Deta Space, but I am also sometimes lost in their new UI. Cheers, Sven ✌️
@RedCloudServices
@RedCloudServices Жыл бұрын
can you make a video on how to setup a local db and not a cloud database to store sensitive login and pw?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you for watching the video & your suggestion.
@chriskeo392
@chriskeo392 Жыл бұрын
Can you make a Sqlalchemy tutorial on model creation and reading from existing tables from SQL server.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you for watching the video & your suggestion.
@yinshin6963
@yinshin6963 Жыл бұрын
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. :(
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you for watching my video! While I haven't personally tried connecting Streamlit to Microsoft Azure SQL Database, I believe it's possible. And just for your reference, here are some examples of connecting Streamlit to other databases: docs.streamlit.io/knowledge-base/how-to-connect-to-databases. I hope this helps, and happy coding!
@AbhinavKumar-jp6wn
@AbhinavKumar-jp6wn 2 жыл бұрын
Awesome ! Can we host a Streamlit app in Godaddy ?
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks. I have never tried, but it should be possible with GoDaddy VPS.
@AbhinavKumar-jp6wn
@AbhinavKumar-jp6wn 2 жыл бұрын
@@CodingIsFun Thank you !
@rahulsumbly
@rahulsumbly Жыл бұрын
Can you please make a login and register page in the same format. Thanks.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you for watching the video & your suggestion.
@init_yeah
@init_yeah Жыл бұрын
Wait so you used deta for all the video but in the end you said to use heroku?
@CodingIsFun
@CodingIsFun Жыл бұрын
The streamlit package is too big to deploy on deta
@init_yeah
@init_yeah Жыл бұрын
@@CodingIsFun i see thanks for prompt reply!! Please continued what you're doing your an inspiration to all of us!!
@khalilebdelli6199
@khalilebdelli6199 Жыл бұрын
I really love your content , can you please make a tutorial on how to add a new user from the streamlit web app
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you for watching the video & your suggestion.
@koolee5566
@koolee5566 Жыл бұрын
Hi, It would be deeply appreciated if you can make a tutorial on how to add a new User while updating user on the Deta database. eg, authenticator.register_user, then update deta from the entry form generated from function authenticator.register_user. @@CodingIsFun
@koolee5566
@koolee5566 Жыл бұрын
I am trying something like this : if st.button("Register"): if authenticator.register_user(username, password): st.success("User registered successfully!") # Store user information in Deta user_data = {"username": username, "password": password} user_db.put(user_data) @CodingIsFun
@arcanum360YT
@arcanum360YT 9 ай бұрын
Hello. It seems like Deta changed their UI and it is seemingly difficult to navigate it. Please make a video on the current version
@CodingIsFun
@CodingIsFun 9 ай бұрын
Thanks for watching and your video suggestion
@Skibide-r1t
@Skibide-r1t Жыл бұрын
Hello everyone, is it possible to change the field name (username and password), for example, instead of those: email and secret key. Thanks!
@not4644
@not4644 Жыл бұрын
Create demo! helped a lot. can you show ho to add new users with a button and reset passwords for users?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching and your video suggestion!
@dharanigowtham-t8j
@dharanigowtham-t8j 11 ай бұрын
but getting all the user creds is good instead of asking it?
@SarbotrikBasu
@SarbotrikBasu 5 ай бұрын
Where the hell do you turn on the developer mode because nothing works without that
@CodingIsFun
@CodingIsFun 5 ай бұрын
Thanks for watching. The deta interface has changed after uploading the video. If you still want to use deta, you should have a look at their updated documenation. Good luck! 🍀Cheers, Sven ✌
@knowledgegetter
@knowledgegetter 10 ай бұрын
How to implement this for Olympic data visualisation project-to add login and db
@CodingIsFun
@CodingIsFun 10 ай бұрын
Thanks for watching. The same way you would do with any other dataset.
@arnoldtvisagie
@arnoldtvisagie Жыл бұрын
I stored my API key in a .env file. Also created a .gitignore file containing .env . My app runs fine on localhost, but whenever I deploy my app, I receive some errors that I cannot resolve. What could I be doing wrong? All I want is to show a weather widget in my app.
@CodingIsFun
@CodingIsFun Жыл бұрын
Can you tell me the error message you got? Also, did you add the needed environment variables to your server?
@arnoldtvisagie
@arnoldtvisagie Жыл бұрын
@@CodingIsFun yes, I added the needed variables to my server. The error says something about my latitude value that is the problem in one of my lines in the code, but I checked again and there are no spelling errors or spaces. I carried it over exactly like it is in my code to my .env file.
@CodingIsFun
@CodingIsFun Жыл бұрын
@@arnoldtvisagie Please check the error log on your server. With the exact error message it will be easier to debug.
@ordaflash
@ordaflash Жыл бұрын
Hello, please i have a quastion please, why does the page icon don't display using this module ?, and is there a way to make it appearing ?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching and for your question. Hard to tell from a distance why you are facing an error. Sorry that I cannot help.
@ordaflash
@ordaflash Жыл бұрын
​@@CodingIsFun thank you for the reply. this issue came when i click on the Demo Website you give us i just don't see the page icon, but every thing else is good doing. is it normal or i have something wrong on my browser. Any Way thank you for your helpful videos !
@odkdsjf
@odkdsjf 7 ай бұрын
Did Deta sponsor this video? The title is kind of misleading. The title should be "How to Add a User Authentication Service (login form) in Streamlit with a Deta database.
@CodingIsFun
@CodingIsFun 7 ай бұрын
No, they didn't sponsor the video
@yellowlynx
@yellowlynx 6 ай бұрын
I found that I cannot access the UI in DETA.sh now, what happened?
@CodingIsFun
@CodingIsFun 6 ай бұрын
Thank you for watching. Deta Cloud has transitioned to Deta Space. Frankly speaking, in the new Deta Space UI, I sometimes feel lost in space too. If you're still interested in using Deta, I recommend checking out their updated documentation. Cheers, Sven ✌️
@hermanpaul9425
@hermanpaul9425 Жыл бұрын
Hello, in my code I get the following error: import database as db ModuleNotFoundError: No module named 'database' Could you help me out?
@CodingIsFun
@CodingIsFun Жыл бұрын
Please clone the repo and try again. Thanks!
@hermanpaul9425
@hermanpaul9425 Жыл бұрын
@@CodingIsFun thank you very much, the main issue for me was that I named the file datebased.py instead of database.py
@hermanpaul9425
@hermanpaul9425 Жыл бұрын
@@CodingIsFun In my streamlit app i have more pages which are shown in the sidebar all the time. How can i hide the sidebar until the log in process is done ?
@hermanpaul9425
@hermanpaul9425 Жыл бұрын
Hello, Deta did some update and now my code is not running, can you help fix this ?
@CodingIsFun
@CodingIsFun Жыл бұрын
Hello. You need to migrate to Deta Space. Please refer to the official documentation. Thanks!
@Gulo0fficial
@Gulo0fficial 2 жыл бұрын
Thank you for your tutorial, but I got error when I try to run : TypeError: __init__() got multiple values for argument 'cookie_expiry_days' Traceback: File "C:\Users\ASUS\AppData\Local\Programs\Python\Python39\lib\site-packages\streamlit untime\scriptrunner\script_runner.py", line 556, in _run_script exec(code, module.__dict__) File "E:\StreamlitProject\Sales Dashboard\app.py", line 22, in authenticator = stauth.Authenticate(names, usernames, hashed_passwords,
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Hi :) 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. Hence, you are getting this error. If you want to follow along with the video, please use version 0.1.5 : pip install streamlit-authenticator==0.1.5
@Gulo0fficial
@Gulo0fficial 2 жыл бұрын
@@CodingIsFun thank you
@villeolof2000
@villeolof2000 Жыл бұрын
Do you need to deploy the app for this to work?
@CodingIsFun
@CodingIsFun Жыл бұрын
No, you can also test it locally
@ndqq
@ndqq Жыл бұрын
Can you please do one like this but with supabase?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you for watching the video & your suggestion.
@Rugerts
@Rugerts Жыл бұрын
Hmm, this is suitable if there are about a hundred users. But if there are thousands and tens of thousands of users, as on real resources, then you can't pull out the entire database every time each page loads. Moreover, drag the entire table from the cloud. It is necessary to change the login function so that a request is created with the name of the desired user being checked and only one row for the user comes back, and not the entire table.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching and sharing your thoughts!
@ahmedhesham8035
@ahmedhesham8035 Жыл бұрын
What will happen if the user adds some data inside the program? Can the rest of the users see and use this data after login
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. It depends on how you set up the your web app / database.
@MadhuriBagade-tr7yc
@MadhuriBagade-tr7yc 25 күн бұрын
not able to sign up in deta is there any another option?
@CodingIsFun
@CodingIsFun 16 күн бұрын
Thanks for watching! You can, of course, use any other database. For example, Supabase also offers a generous free tier and has a Python SDK. Cheers, Sven ✌️
@MohVideoss
@MohVideoss 2 жыл бұрын
Thanks for the subtitle
@CodingIsFun
@CodingIsFun 2 жыл бұрын
You are welcome! Thanks for watching!
@Lyricverse116
@Lyricverse116 9 ай бұрын
How to allow to external users to create thier account
@CodingIsFun
@CodingIsFun 9 ай бұрын
Thanks for watching. That would be possible with the latest Streamlit Authenticator package. Please check out the docs here: github.com/mkhorasani/Streamlit-Authenticator
@dursunn
@dursunn 2 жыл бұрын
What about registration?
@CodingIsFun
@CodingIsFun 2 жыл бұрын
It is also possible with the latest release: github.com/mkhorasani/Streamlit-Authenticator
@villeolof2000
@villeolof2000 Жыл бұрын
Wow! But when I run the database code, from deta import Deta DETA_KEY = "BlaBlaBla" deta = Deta(DETA_KEY) db = deta.Base("users_db") def insert_user(username, name, password): """Returns the user on a successful user creation, otherwise raises and error""" return db.put({"key": username, "name": name, "password": password}) insert_user("User", "Us Er", "123456") I get this error message Exception has occurred: SSLCertVerificationError [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997) Do you know what can be the issue? Thanks!
@villeolof2000
@villeolof2000 Жыл бұрын
Should I do anything with the project id?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Maybe the following helps: stackoverflow.com/a/58525755 Happy Debugging!
@deepikadeepu697
@deepikadeepu697 2 жыл бұрын
packages\streamlit_authenticator\authenticate.py", line 36, in _init_ self.credentials['usernames'] = {key.lower(): value for key, value in credentials['usernames'].items()} TypeError: list indices must be integers or slices, not str got this error sir, can you please explain to resolve this one
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Check out the pinned comment
@yuanfanglu
@yuanfanglu 2 жыл бұрын
Can I check are these users created by admin in this case? How to allow user to create their own username and password?
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks for watching. There was a new release of the streamlit authenticator package. It seems that a similar feature is now already available. Find out more here: github.com/mkhorasani/Streamlit-Authenticator#4-creating-a-password-reset-widget Happy Coding!
@yuanfanglu
@yuanfanglu 2 жыл бұрын
@@CodingIsFun Yes I saw some articles, do you plan to have another video to demonstrate these features? 😄
@CodingIsFun
@CodingIsFun 2 жыл бұрын
@@yuanfanglu Maybe in the future then the package is more stable :)
@shivamkumar-qp1jm
@shivamkumar-qp1jm Жыл бұрын
Please integrate payment gateway with stripe with free and basic monthly & yearly subscription
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching and your video suggestion. While the following video is not exactly what you are looking for, it might be a good starting point: kzbin.info/www/bejne/gpCYeoinZbiag5o
@chitradevi21BS027
@chitradevi21BS027 9 ай бұрын
Bro already I have an code how can I add these codes in tat coding (how can I add login page code to connect streamlit)
@CodingIsFun
@CodingIsFun 9 ай бұрын
Bro, watch this video: kzbin.info/www/bejne/gKCpeKWJh89njpY Thanks!
@ahmedsayed7138
@ahmedsayed7138 2 жыл бұрын
Why i'm getting this error : TypeError: __init__() got multiple values for argument 'cookie_expiry_days'
@CodingIsFun
@CodingIsFun 2 жыл бұрын
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 streamlit-authenticator==0.1.5
@deepikadeepu697
@deepikadeepu697 2 жыл бұрын
@@CodingIsFun packages\streamlit_authenticator\authenticate.py", line 36, in _init_ self.credentials['usernames'] = {key.lower(): value for key, value in credentials['usernames'].items()} TypeError: list indices must be integers or slices, not str got this errror and cant able to find the solution sir
@CodingIsFun
@CodingIsFun 2 жыл бұрын
@@deepikadeepu697 Solution is right above your comment
@waltertandoi7146
@waltertandoi7146 2 жыл бұрын
4:16 with this code I have this error: Traceback (most recent call last): put code, res = self._request("/items", "PUT", {"items": [data]}, content_type=JSON_MIME) File "C:\Users\Walt9\AppData\Local\Programs\Python\Python39\lib\site-packages\deta\service.py", line 85, in _request raise urllib.error.HTTPError(url, status, res.reason, res.headers, res.fp) urllib.error.HTTPError: HTTP Error 401: Unauthorized Unauthorized to what?
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Have you created your own deta key?
@waltertandoi7146
@waltertandoi7146 2 жыл бұрын
@@CodingIsFun On deta? Sure. Now it's called "token", is the same right?
@waltertandoi7146
@waltertandoi7146 2 жыл бұрын
No it’s a different thing, sorry 😅😅 now it works! But how my friends can register to my web app?
@CodingIsFun
@CodingIsFun 2 жыл бұрын
@@waltertandoi7146 That should be possible with the new release of the streamlit-authenticator package. Kindly refer to the docs on GitHub: github.com/mkhorasani/Streamlit-Authenticator#5-creating-a-new-user-registration-widget
@avosan8342
@avosan8342 Жыл бұрын
@@waltertandoi7146 how you solve it?
@josiahmunguti2493
@josiahmunguti2493 3 ай бұрын
Deta nowadays doesn't have the developer's mode, setting up a database is hard.
@CodingIsFun
@CodingIsFun 3 ай бұрын
Yepp, unfortunately...
@KAMLESHKUMAR-ds5cy
@KAMLESHKUMAR-ds5cy Жыл бұрын
How to deploy this code with env in streamlit own cloud
@CodingIsFun
@CodingIsFun Жыл бұрын
Have a look here: docs.streamlit.io/streamlit-cloud/get-started/deploy-an-app/connect-to-data-sources/secrets-management
@serychristianrenaud
@serychristianrenaud 2 жыл бұрын
Thank
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks for watching!
@funese102
@funese102 7 ай бұрын
Please make it with Firebase.
@CodingIsFun
@CodingIsFun 7 ай бұрын
Thanks for watching and your suggestion. ✌️
@Msiva-gv8lm
@Msiva-gv8lm Жыл бұрын
Please this entire page or a signup page free hosting for students 🙏
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Here you are: kzbin.info/www/bejne/aoSyZHaLjLWMnJI
@hakimdz3358
@hakimdz3358 2 жыл бұрын
how create password for sqltite plz?
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Any particular reason why you do not want to use a free NoSQL solution as shown in the video?
@hakimdz3358
@hakimdz3358 2 жыл бұрын
@@CodingIsFun You are special so I ask you I am using pyqt5 I use sqltite3 database But the rule is open, it is possible to change the password and login name
@CodingIsFun
@CodingIsFun 2 жыл бұрын
@@hakimdz3358 Sorry, but I do not understand the connection between streamlit and pyqt5
@hakimdz3358
@hakimdz3358 2 жыл бұрын
@@CodingIsFun thx شكرا
@S-Lomar
@S-Lomar Жыл бұрын
🥰💕😍😍😍💞💞😍💕💕🥰💕🥰🥰💕😍😍😍😍😍😍
@CodingIsFun
@CodingIsFun Жыл бұрын
♥♥
@razibulraj7996
@razibulraj7996 2 жыл бұрын
please solve my probelm "KeyError: 'st.session_state has no key "authentication_status""
@CodingIsFun
@CodingIsFun 2 жыл бұрын
Thanks for watching. Unfortunately, with that bit of information, I cannot help you. You might want to take some time to write down which line of code is causing the error; let me know if you have modified the code from the tutorial, explain in more depth what you did to troubleshoot the problem and provide some more context. Thanks!
@razibulraj7996
@razibulraj7996 2 жыл бұрын
@@CodingIsFun I didn't change anything, I just follow your instruction. This line of code "name, authentication_status, username = authenticator.login("Login", "main")" causing error.
@CodingIsFun
@CodingIsFun 2 жыл бұрын
@@razibulraj7996 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 streamlit-authenticator==0.1.5
@ordaflash
@ordaflash Жыл бұрын
@@razibulraj7996 hello, please did you resolve this problem ?
@ivanfelipepardo62
@ivanfelipepardo62 Жыл бұрын
did someone resolve this problem? I have spent hours trying to fix it but I haven't had good luck. I also tried using yaml file, but I got back to the same error (KeyError: 'st.session_state has no key "authentication_status".) Any clue?
How to Add a User Authentication Service (Login Form) in Streamlit
7:14
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 38 МЛН
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 124 МЛН
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 50 МЛН
5 Things I Wish I Knew Before Learning Streamlit
21:34
Fanilo Andrianasolo
Рет қаралды 31 М.
How I Added Google Auth To a Streamlit App (It Didn't Go Well)
18:17
Fanilo Andrianasolo
Рет қаралды 3 М.
My Workflow for Building any Streamlit Dashboard Project
9:40
Fanilo Andrianasolo
Рет қаралды 90 М.
How to Convert a Streamlit App to an .EXE Executable
8:20
Fanilo Andrianasolo
Рет қаралды 46 М.
7 Essential Command Line Tools (2022)
9:12
Tech Craft
Рет қаралды 216 М.
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 253 М.
Streamlit Crash Course: From Zero to Data App
24:40
Streamlit
Рет қаралды 9 М.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 279 М.
Streamlit & Google Sheets: The Easiest "Database"
12:20
Coding Is Fun
Рет қаралды 23 М.
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 38 МЛН