Build Streamlit Python LOGIN-SIGNUP -Authentication Web App|Python + Firebase authentication PART 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024

ความคิดเห็น • 84

  • @Avra_b
    @Avra_b  3 ปีที่แล้ว +4

    Here is the link to the code:
    avra-youtube.notion.site/STREAMLIT-FIRESTORE-INTEGRATION-USING-PYREBASE-PYTHON-0c3a44874b774d24a23c80c36b2cf14b

  • @DelipRao
    @DelipRao 2 หลายเดือนก่อน +1

    Not sure if people have shared, but you are good at this and you should make more videos.

    • @Avra_b
      @Avra_b  2 หลายเดือนก่อน

      Really appreciate the kind words. Time is the biggest hurdle atm, but would definitely create more videos soon :)

  • @theexposer9483
    @theexposer9483 2 ปีที่แล้ว +6

    Dear Avra, A suggestion, sqlite is an embedded database which comes with python. It is most simple and elegent to use it for small projects especially for login/new user like application. Not forgetting to thank you for this effort.

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว +1

      Hi Pradeep , you are right . SQLite can be very well utilized for such simple projects . As well as Streamlit session state to store the data during any particular session . However, in this video , I tried to demonstrate the extensibility of the firebase , with real time data storage as well as login authentication.
      Thank you for your comment and feedbacks. Means a lot . 🤗🎈

  • @navneethpappalilj9503
    @navneethpappalilj9503 26 วันที่ผ่านมา +1

    Gotta say dude.
    This is great stuff!

    • @Avra_b
      @Avra_b  26 วันที่ผ่านมา

      Thanks man! It’s been ages that I made this video. Appreciate the kind words !

  • @Christopher_Tron
    @Christopher_Tron 2 ปีที่แล้ว +2

    Thank you so much for making this video, extremely helpful. Your a great teacher

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว +1

      Hey Christopher ! It’s always motivating to hear this kind feedback :) and also I’m grateful for your contribution 🤗 thank you . Stay in touch and feel free to update me with your app , good luck 🤗🎈

  • @gauriprabhakar9145
    @gauriprabhakar9145 2 ปีที่แล้ว +1

    Built a library which supports just this! Without any additional DB support.
    All you need to do is just import the library and use the authentication status.
    Installation:
    pip install streamlit-login-auth-ui

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว

      No doubt , there’s always a better solution. If I’m
      Not wrong , Streamlit authenticator component does something very similar with few lines . I’m certain your component as well . So , Great job Gauri with the component 🤩
      Leave a link to the component so that everyone can find it and use as well . If possible , put it up on the community tracker , cheers !

    • @gauriprabhakar9145
      @gauriprabhakar9145 2 ปีที่แล้ว +1

      @@Avra_b GauriSP10/streamlit_login_auth_ui
      Here is the link to my GitHub repo.
      Yes streamlit-authenticator is an amazing piece of work!
      My library triggers an email to reset the password! And it is free and easy to configure the email service.
      Thanks for the acknowledgement Avra. I have added this to the community tracker. Excited for everybody to use this!!
      Sadly, adding the link deletes my comment.

  • @morris5648
    @morris5648 ปีที่แล้ว +1

    Recommend adding the python environment or direct new viewers to a good example. Looks very good.

    • @Avra_b
      @Avra_b  ปีที่แล้ว

      I agree, thanks for the suggestions ! Cheers !

  • @noeldoller2958
    @noeldoller2958 2 ปีที่แล้ว +1

    awesome project more streamlit Web Apps please specially on google map

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว

      Thank you Noel ! Glad to see you liking these mini projects . Sure, I'll try to create something related to google map . Cheers !

  • @cbejar
    @cbejar 10 หลายเดือนก่อน +1

    Nice, I will be also nice to learn how to do with Microsoft Firebase authentication

    • @Avra_b
      @Avra_b  9 หลายเดือนก่อน

      That’s a great suggestion ! I’ll think about it :)

  • @davidksousadavidksousa4951
    @davidksousadavidksousa4951 2 ปีที่แล้ว +1

    Thanks @Avra for the Information. From Brazil !

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว

      Hey , warm greetings! I’m glad that you like the video . Do stay in touch and always feel free to shower your suggestions and feedbacks. 🎈

  • @tancheeken
    @tancheeken ปีที่แล้ว +1

    Great video! It will be much better if you can use better microphone to reduce the background hissing noise.

    • @Avra_b
      @Avra_b  ปีที่แล้ว +1

      Hey thanks for the suggestion. I do appreciate. Will be soon upgrading my tools 🛠️ 🤗

  • @jorge1869
    @jorge1869 3 ปีที่แล้ว +1

    Awesome, greeting from Chile

    • @Avra_b
      @Avra_b  3 ปีที่แล้ว

      Hello Jorge , glad to know you . Keep in touch :)

  • @jairjuliocc
    @jairjuliocc 3 ปีที่แล้ว +1

    Thank You!! Greetings from Perú

    • @Avra_b
      @Avra_b  3 ปีที่แล้ว

      Hello Jair , glad to know you . Stay in touch and let me know if you have specific ideas on Streamlit and Python integration. Cheers :)

  • @bpsupergirl
    @bpsupergirl 3 ปีที่แล้ว

    Awesome stuff! Really looking forward to the next video as my main objective is the login part.
    Are you going to leverage the session states in streamlit?
    Keep up the nice work!!

    • @Avra_b
      @Avra_b  3 ปีที่แล้ว +1

      Thank you ! Although I haven’t planned any video related to session state specifically , but why not ?
      I’ll try to demonstrate session state usage in my coming videos, thanks for this suggestion.
      Have a great weekend ahead and hope to see you around , cheers!

    • @Avra_b
      @Avra_b  3 ปีที่แล้ว +1

      Hi, here's the second part of this web application - th-cam.com/video/uzc3OEjjbn8/w-d-xo.html

    • @bpsupergirl
      @bpsupergirl 3 ปีที่แล้ว

      @@Avra_b Awesome! Will check it out, thank you!

  • @aadityaacharya7571
    @aadityaacharya7571 10 หลายเดือนก่อน +1

    this is very infomative thank you!

    • @Avra_b
      @Avra_b  10 หลายเดือนก่อน

      Glad to hear ! 🤗

  • @divyapawar6854
    @divyapawar6854 10 หลายเดือนก่อน +1

    Thank you so much this helped me a lot

    • @Avra_b
      @Avra_b  10 หลายเดือนก่อน

      Super! Very happy to hear ☺️

  • @xXMacedoniaNXx
    @xXMacedoniaNXx 3 ปีที่แล้ว +1

    Awesome video, thank you!

    • @Avra_b
      @Avra_b  3 ปีที่แล้ว

      Glad that you liked it !

  • @pitanjaldatta2904
    @pitanjaldatta2904 2 ปีที่แล้ว +1

    Amazing, this is so helpful! Thank you for making this fantastic video.
    I wanted to ask you, is it possible to have users signup using Google rather than typing email and password. Could you please show something on that how it can be done on streamlit.
    Fantastic going! Keep it up! Look forward to your upcoming videos!

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว +1

      Hey Pitanjal , thank you for your kind words, means a lot .
      Here’s a link to a component which might help you , discuss.streamlit.io/t/streamlit-next-js-component-auth0-authentication-bi-directional-messaging-serverless-apis/9189
      Personally I’m yet to try this Google authentication component. But it seems like what you ( we all ) need mostly. Let me know if this work out and I’ll be interested to see how it can be implemented with Firestore.
      Stay in touch , cheers , Avra

    • @pitanjaldatta2904
      @pitanjaldatta2904 2 ปีที่แล้ว

      @@Avra_b Hey yes, this is what I want. I found your videos really easy to follow. Pls do something where we can login using firebase in streamlit. That would be really great hahaha!

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว

      Sure , I’ll update you once I come up with something. Stay in touch 🎈

    • @sahil.lalani
      @sahil.lalani ปีที่แล้ว

      @@Avra_b just watched this video and had the same question. was looking through the pyrebase documentation and there didn't seem to be anything related to how to use google authentication. haven't looked at the auth0 linked which you pasted above. since i'm a beginner, i'd love to see how google auth can be used with firebase and firestore. thanks for the amazing content. -- Sahil

  • @ntutalumni
    @ntutalumni 3 ปีที่แล้ว +2

    Awesome!!!

    • @Avra_b
      @Avra_b  3 ปีที่แล้ว

      Glad you liked it !

  • @iti_koookie9678
    @iti_koookie9678 2 ปีที่แล้ว +2

    I am facing problem while installing pyrebase module pls someone help
    Also I am having latest version of python and upgraded version of pip

    • @Avra_b
      @Avra_b  2 วันที่ผ่านมา

      Someone already has a solution over the comment section probably . please check :)

  • @ramchandraparab6421
    @ramchandraparab6421 2 ปีที่แล้ว +3

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: legacy-install-failure
    × Encountered error while trying to install package.
    ╰─> pycryptodome
    this error showing while installing pyrebase

    • @sudheerarigela8202
      @sudheerarigela8202 ปีที่แล้ว +2

      install newer version :
      pip install pyrebase4
      this resolved the same error for me!!!

    • @botlanagaraju487
      @botlanagaraju487 ปีที่แล้ว

      @@sudheerarigela8202 thank u bro

    • @gibzrival1565
      @gibzrival1565 9 หลายเดือนก่อน

      Thanks 🙏

    • @Avra_b
      @Avra_b  2 วันที่ผ่านมา

      Great stuff it’s resolved I guess! Thanks guys

  • @mvrdara
    @mvrdara 2 ปีที่แล้ว +2

    the code shared doesnt have the specific styling shown in the video, it is the default

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว

      Hi! Thank you for your feedback. Did you check the github repo ? Usually I just push the same .py file , perhaps it's missing something ? Let me know how can I help you.

  • @chittaranjanpatra6132
    @chittaranjanpatra6132 2 หลายเดือนก่อน +1

    thanks bro

    • @Avra_b
      @Avra_b  26 วันที่ผ่านมา

      Welcome

  • @sachidanandadas8945
    @sachidanandadas8945 ปีที่แล้ว +1

    Thank you Bro ❤️

    • @Avra_b
      @Avra_b  ปีที่แล้ว +1

      I’m glad that you liked it ❤️

  • @joeyliu4443
    @joeyliu4443 2 ปีที่แล้ว +1

    Why is it when I try to install pyrebase it says pyrebase module not found? Which pyrebase version should I be using?

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว

      Hi , it will be difficult to say why the mentioned error pops up . But I presume it is related to pyrebase installation . How about starting with their GitHub page ? ( probably you can find the link in the description as well ) . The exact version I used while deploying this app was 3.0.27 . You can also find the other modules details on my GitHub repository. Let me know how it goes , stay in touch :)

  • @evasaini8824
    @evasaini8824 6 หลายเดือนก่อน

    Hey, if we want all the data to be stored on ec2 itself. Also I'm running the streamlit app on ec2. So how to do it then?

    • @Avra_b
      @Avra_b  2 วันที่ผ่านมา

      Idk unfortunately

  • @evasaini8824
    @evasaini8824 6 หลายเดือนก่อน

    Can we design the pages on figma and then from itself can we add it to the streamlit application and store the data on ec2.

    • @Avra_b
      @Avra_b  2 วันที่ผ่านมา

      What do you mean ? Isn’t figma just for design ? If you have a minimal design you can build in Streamlit . Note - Streamlit isn’t best for front end dev

  • @akshatapalsule2940
    @akshatapalsule2940 2 ปีที่แล้ว +1

    Hey Avra nice information, but can you specify weather the firbase account is free tier or they would charge you for the maintenance.

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว +1

      Hi Akshata , glad that you liked it . For the pricing , I would suggest you to check their website , of course e there are free and monthly subscription plans based on your needs . Here’s the link - firebase.google.com/pricing

    • @akshatapalsule2940
      @akshatapalsule2940 2 ปีที่แล้ว

      @@Avra_b Thanks

  • @ntutalumni
    @ntutalumni 3 ปีที่แล้ว +1

    By using your codes, I was trying to login with wrong email, and the program just crashed with error: EMAIL_NOT_FOUND. I try coding with "try exception, but didn't work! Could you shed some light?! Thanks!

    • @Avra_b
      @Avra_b  3 ปีที่แล้ว +1

      Thanks for your feedback. What was your fake / wrong email and how did you use it ? Did you enable the 'enable your email' option in your firestore project?

    • @ntutalumni
      @ntutalumni 3 ปีที่แล้ว +1

      @@Avra_b Thank you so much. I watched your video clip part I and II and follow your steps and your codes worked perfectly. Except that in following two lines of codes:
      user = auth.create_user_with_email_and_password(email, password)
      user = auth.sign_in_with_email_and_password(email,password)
      if somethings go wrong in above codes(for example in first line: password less than length of 6. in second line of code: email not found in firebase), the python program crashed! because you did not implement bullet proof codes to avoid the crashing!
      I searched the internet, found some solutions, but still unable to work it out! If you find it, please advise!

    • @Avra_b
      @Avra_b  3 ปีที่แล้ว +1

      @@ntutalumni thank you for your feedback . Happy that the code worked for you .
      I understand the problem with that two lines . What if we add some conditional check right after the user gives the password / email id . Also, may be adding the help argument in the In the user input box ( guiding the user for minimum character for password ) .
      I’m bit ignorant about how Firestore deal with this , thanks for reporting, I would also like to give a search related to it .
      However . Do stay in touch , and let’ me know if you have any specific ideas about Streamlit and Python integration , cheers :)

  • @cse_07_akhilsanthosh96
    @cse_07_akhilsanthosh96 5 หลายเดือนก่อน

    auth.create_user_with_email_and password function is not getting .
    How to get it

    • @Avra_b
      @Avra_b  2 วันที่ผ่านมา

      Can you tell me a bit more about the error message

  • @gingerdragon6216
    @gingerdragon6216 ปีที่แล้ว +1

    why not use the button rather than using the checkbox in Login?

    • @Avra_b
      @Avra_b  ปีที่แล้ว

      You are completely right . When this video was made , St.SessionState was not a feature yet - to store the state of Button . Check this video out where I mentioned about this UI limitation and gave an workaround - th-cam.com/video/dPdB7zyGttg/w-d-xo.html . Stay in touch and let me know :)

    • @gingerdragon6216
      @gingerdragon6216 ปีที่แล้ว +1

      @@Avra_bthank you, I just watched your videos about streamlit, what about creating a log out button?

    • @Avra_b
      @Avra_b  ปีที่แล้ว

      @@gingerdragon6216 Thanks for watching. That's of course a great suggestion. It can be easily made, once the login information is no more as a cache, or clearning the cache which was stored while Logging IN. Let me know how it goes , cheers ! Stay in touch :)

  • @ashrafpathan417
    @ashrafpathan417 6 หลายเดือนก่อน

    Hey is role based authentication possible in streamlit??

    • @Avra_b
      @Avra_b  2 วันที่ผ่านมา

      Yes

  • @mansimishra7089
    @mansimishra7089 2 ปีที่แล้ว +1

    Bhaiya how to install pyrebase on mac please help!! rest video is awesome:)

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว +1

      Hi Manshi, this entire code was tested and recorded on a MacOS. I would suggest you to refer to common issues related section on the github readme - github.com/avrabyt/Streamlit-Tutorials-2021-22/tree/main/Streamlit_Firestore_SocialApp
      Otherwise, please let me know what's the error. You can install pyrebase using pip comman from your terminal. Let me know :)

    • @mansimishra7089
      @mansimishra7089 2 ปีที่แล้ว +1

      @@Avra_b Thankyou bhaiya 🤗

  • @mehulpurohit7407
    @mehulpurohit7407 2 ปีที่แล้ว +1

    name error db is not defined what to do

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว

      Hi , thanks for your feedback. Typically it should work . Otherwise, please do share your GitHub repo for the code you tried . 🤗

  • @pitanjaldatta2904
    @pitanjaldatta2904 2 ปีที่แล้ว +1

    If you are planning to use this technique on your deployed streamlit application, and want to continue using it, you may get an error after 30 days saying:
    Client access to your Realtime Database 'tradatanalytix-default-rtdb is expiring soon. You chose to start developing in Test Mode, which leaves your Realtime Database instance completely open to the Internet. Because this choice makes your app vulnerable to attackers, your database security rules were configured to stop allowing requests after the first 30 days.
    In 4 day(s), all client requests to your Realtime Database instance will be denied. Before that time, please update your security rules to allow your app to function while appropriately protecting your data.
    I have found out a solution for this. All you have to do is click on Edit Rules:
    {
    // Allow read/write access to all users under any conditions
    // Warning: **NEVER** use this ruleset in production; it allows
    // anyone to overwrite your entire database.
    "rules": {
    ".read": "true",
    ".write": "true"
    }
    }
    Similarly your cloud storage rules can be changed to:
    rules_version = '2';
    service firebase.storage {
    match /b/{bucket}/o {
    match /{allPaths=**} {
    allow read, write: if
    request.time < timestamp.date(2023, 2, 28); // Just increase the year in this date.
    }
    }
    }
    Reference video link: th-cam.com/video/kWQ4M-rZje0/w-d-xo.html

    • @Avra_b
      @Avra_b  2 ปีที่แล้ว +1

      Thank you Pitanjal ! Once again, I really appreciate this 🤗☺️