Build a SaaS with Streamlit

  Рет қаралды 24,098

Coding Is Fun

Coding Is Fun

Күн бұрын

Пікірлер: 69
@CodingIsFun
@CodingIsFun Жыл бұрын
📌 *REMINDER:* While the st-paywall package allows for integrating payments into Streamlit apps, it's essential to note that it doesn't currently offer a user interface for subscription management within the app. Any adjustments or cancellations to subscriptions need to be handled directly through the Stripe dashboard. While this doesn't make it a fully-fledged SaaS solution, I believe it's still an easy and good way to monetize your web apps.
@andreasw665
@andreasw665 Жыл бұрын
Those nights where you can’t sleep and find amazing new features for your little start up project … love it 😂
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching and good luck with your project! 🍀
@guitarmeetsscience
@guitarmeetsscience Жыл бұрын
Hey Sven - anytime I have a streamlit question, it always leads to one of your videos. You're the ultimate Streamlit guru. Thank you for all of your help!
@CodingIsFun
@CodingIsFun Жыл бұрын
Glad to hear that you are coming back to my channel ;) Good luck with your Streamlit project(s) 🍀
@kathanmehtaa
@kathanmehtaa Жыл бұрын
love this! probably one of the best tutorials but you could have shared about st-paywall not supporting cookies in the beginning. I watched whole tutorial and implemented the same for my SaaS and now i am getting to know that st-paywall is useless until they push some new updates related to cookies :)
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching and your feedback!
@HashtagTiluda
@HashtagTiluda 9 ай бұрын
Hey @CodingIsFun, thanks so much for all your videos. They are super helpful! I have a question. How to implement this on multi-page Streamlit apps?
@CodingIsFun
@CodingIsFun 9 ай бұрын
Thanks for watching. I have not tried it yet, but I guess the process is similar. Please give it a try. Happy Coding! Cheers, Sven ✌️
@ikennamanagwu9646
@ikennamanagwu9646 5 ай бұрын
There is a youtuber called Beginner's code zone... they have just this video on their channel... check it out
@PinkPixelRabbit
@PinkPixelRabbit Жыл бұрын
Hi Sven, I have re-done everything in this tutorial and everything works as expected, thanks for guiding us through the tedious Integration process. But I have got a question: when the subscription has expired, what will the UI behave? Will the user not be able to login the SaaS through his email anymore? P.S. We really enjoy your videos and your teaching style, Sven! Could you please make a tutorial on online marketing, like using Facebook or Instagram ads to promote this SaaS app?🤩🤩
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. I'm glad to hear that you like my teaching style and enjoy watching the videos. Regarding your questions, I'm not sure if it was actually you who created the related GitHub issue, but it should be fixed now: github.com/tylerjrichards/st-paywall/issues/27. This means that once a subscription has expired or is cancelled, the user won't have access to the app's content. I hope this helps! Happy Streamlit-ing!
@PinkPixelRabbit
@PinkPixelRabbit Жыл бұрын
@@CodingIsFun Yeah it's me haha, look forward to seeing you produce content on online marketing! 🥰🥰
@reflexionesvitales1
@reflexionesvitales1 Жыл бұрын
Hi Sven ! Very useful information ! But one important point is that you are currently saving the payment user information in session state variable. What about if the app shut down and you need to re-run or change the server ? Your users will not be able to log in any more without paying.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Nope, the payment information is retrieved from the Stripe API
@hemkesis
@hemkesis 5 ай бұрын
Hello Sven. Im getting AttributeError: module 'anyio' has no attribute 'CancelScope' after signinig in with google into the app. Do you have any idea what can I try? Thank you for the information. Great video as always.
@VayunEkbote
@VayunEkbote Жыл бұрын
What are the use cases? Streamlit has a lot of limitations. You could make some apps like background image remover, or some AI API application, but the UI and UX that one can make using streamlit is not that good. Anyways great video like always!
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching and sharing your thoughts!
@echidne
@echidne Жыл бұрын
Hi. You have a typo at 0:53 😉. Except that it's a very good video (as usual)
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for the hint 👍I hope people will still be able to install the package 😅
@nathanham1636
@nathanham1636 Жыл бұрын
What should we do if working in github? Is it secure to commit and deploy the secrets.toml api variables or should we add it we do API keys usually?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. That's exactly what I explain in the video ;)
@shiva3307
@shiva3307 Жыл бұрын
Hi sven, m stuck with some code, in your earlier video of using python code to auto fill word template. Just for an eg I am using a contract where language is same but name of persons vary some times it's just one person and some times it may be 5 persons , can we determine to add or delete the extra lines in template.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks so much for watching the video and leaving a comment! Your request is definitely noted. However, I get a ton of requests for custom solutions and, as much as I'd love to help everyone out, I just don't have the time in my schedule to develop and test all of them. I hope you can understand. Happy Coding!
@BettingIsCool
@BettingIsCool 2 ай бұрын
Fantastic tutorial yet again. Thanx so much Sven. I'm now stuck at "You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure." after hitting the 'Login with Google' button. I'm running this app on streamlit community cloud and both URIs (Authorised JavaScript origins & Authorised redirect URIs) in the google credentials look fine (one without '/' the other with a trailing '/') Any help would be much appreciated.
@BettingIsCool
@BettingIsCool 2 ай бұрын
Solved! Forgot to update the redirect-uri in the secrets.toml
@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. -Sven ✌️
@ningshenbj
@ningshenbj Жыл бұрын
Thank you for sharing. It was very helpful. Also, I wanted to ask, if my streamlit application is multi-page, will the subscription work for all pages, or only for pages that import st-paywall
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. I have not tried it out with a multipage app. Please give it a try :)
@sz8558
@sz8558 Жыл бұрын
Great video..Id love to create something using streamlit but think the lack of cookies and need to authenticate after each refresh will drive people mad.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Yes, that is not very user friendly. There is already a suggestion/issue regarding this on GitHub: github.com/tylerjrichards/st-paywall/issues/26 Would be cool, if that would be added in the future.
@florianroeseler2404
@florianroeseler2404 Жыл бұрын
I might be able to use this, very helpful. Thank you!
@CodingIsFun
@CodingIsFun Жыл бұрын
Happy to hear that, Florian. Good luck with your (potential) project! 🍀
@i0IcubeXstudioI0i
@i0IcubeXstudioI0i Жыл бұрын
Hello, thank you for the tutorial! Is it possible to deploy the streamlit app with st-paywall to Render?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Yes, that is possible.
@SmartChosk
@SmartChosk 8 ай бұрын
Is there a way to dont need the payment? Only login with google and can see the pages normally.
@CodingIsFun
@CodingIsFun 8 ай бұрын
Thanks for watching. As far as I can see, that is not possible with the st-paywall package. I am not sure if there are other community packages available to implement OAuth in a straightforward way. Otherwise, you could take a look at how OAuth was implemented in the st-paywall package and create something yourself. I hope it helps! Happy Coding! Cheers, Sven ✌️
@ordaflash
@ordaflash Жыл бұрын
Hello, excellent video as usual. Can you make a tutorial to only add a Google authenticator to access to a streamlit app, and somehow get the users e-mail ? Thanks a lot for your great job !
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching and your suggestion!
@SebEric-vh7zu
@SebEric-vh7zu Жыл бұрын
Hey thank you for the video, is there a way to move the button out from the side panel?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you for watching. At the moment, there's no optional parameter to position the button. However, it might be a good idea to propose this suggestion in the st-paywall GitHub repository.
@Sabriabd-vv7jr
@Sabriabd-vv7jr 5 ай бұрын
HI thanks for the video, how can I deploy my code without being able to see it inside my github. I'm afraid my saas will be stolen? What about cookies for authentication is it ok now?
@CodingIsFun
@CodingIsFun 5 ай бұрын
Thanks for watching. You can deploy it to a private repo. Please check out the official docs for the latest development on the package. Thank you! Cheers, Sven ✌️
@mth6311
@mth6311 10 ай бұрын
Hey mate nice video it helped me a lot. What about doing a video about comnecting streamlit and fastapi/database?
@CodingIsFun
@CodingIsFun 10 ай бұрын
Thanks for watching and your video suggestion! Cheers, Sven ✌️
@sujungpark5764
@sujungpark5764 Жыл бұрын
Hi Sven, i love your Video 😊 it is so useful and triable ! Thank you
@CodingIsFun
@CodingIsFun Жыл бұрын
Happy to hear that, Sujung! 🤩
@federicogentile90
@federicogentile90 7 ай бұрын
Hello there, but if the repo on github is public anyone will be able to see all the backend files which is not great if you want to prevent your code to be copied. Is there some way to keep the code private or not visible?
@CodingIsFun
@CodingIsFun 6 ай бұрын
You could deploy private repo as well. Cheers, Sven ✌️
@federicogentile90
@federicogentile90 6 ай бұрын
@@CodingIsFun ok thanks!!
@Rabih-Rizk
@Rabih-Rizk Жыл бұрын
Quick question, how can I set it up with 2 payments plans? Like Monthly, or Yearly ?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. As far as I can see from the st-paywall documentation, that is currently not possible.
@Rabih-Rizk
@Rabih-Rizk Жыл бұрын
Thank you for the reply @@CodingIsFun
@PinkPixelRabbit
@PinkPixelRabbit Жыл бұрын
Thanks for making this video Sven, as I am recently confused about how to do authentication for a Streamlit SaaS app. And I have one more question, how can I trigger some Python code or a function when someone has paid in Stripe? The use case is that say I want to store the user's name in Deta Space, so I want to add the new user into the database automatically when he's paid.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Glad you like the video. You could use the stripe API to retrieve users with a paid subscription and then stores those in deta space for example.
@taaniskarigar771
@taaniskarigar771 Жыл бұрын
Can this also be done using Microsoft Azure AD?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Currently st-paywall supports only Google Authentication
@BIG_BUSINEZZ
@BIG_BUSINEZZ Жыл бұрын
I was trying with Azure today. I did learn a lot, Ultimately I just used Google like he showed in the video but I cannot wait till Azure has this feature as well.
@RealProDatascience
@RealProDatascience 5 ай бұрын
When i did step for subscription with Stripe, i got thos errror : PermissionError: Request req_rwUzYdncy4eYbu: The provided key 'rk_test_*********************************************************************************************ogTT6w' does not have the required permissions for this endpoint on account 'acct_1HtZT4AbH9hw3Wjf'. Having the 'rak_subscription_read' permission would allow this request to continue. Can you help me fix this?
@glennimmanuel9338
@glennimmanuel9338 2 ай бұрын
i have the same problem
@Ryan-yj4sd
@Ryan-yj4sd Жыл бұрын
Nice video. Without cookies, this is pretty useless.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching.
@Querosertraderivoneysilva
@Querosertraderivoneysilva 10 ай бұрын
👏👏👏👏😀!!
@CodingIsFun
@CodingIsFun 10 ай бұрын
😍💖
@voulieav
@voulieav 6 ай бұрын
needs an update - taken a lot of troubleshooting to get going over 3 days. st_paywall JWT issues with aud - Plus its not secure having sig check off Stripe needs more read access RAK Probably more - this is what i can remember so far
@CodingIsFun
@CodingIsFun 6 ай бұрын
Thanks for watching and pointing this out. You might want to report an issue or send a Pull Request here to update the docs: st-paywall.readthedocs.io/en/latest/contribute/ Cheers, Sven ✌️
@voulieav
@voulieav 6 ай бұрын
@@CodingIsFun yep. hes also pushed out an update today as its currently broken around the JWT aud issue. Someone has said on the issues that disabling sig check is a security issue.
Streamlit & Google Sheets: The Easiest "Database"
12:20
Coding Is Fun
Рет қаралды 24 М.
5 Things I Wish I Knew Before Learning Streamlit
21:34
Fanilo Andrianasolo
Рет қаралды 34 М.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 71 МЛН
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 3,8 МЛН
How to Convert a Streamlit App to an .EXE Executable
8:20
Fanilo Andrianasolo
Рет қаралды 48 М.
Build a Python Web App to chat with your datasets using GenAI
4:23
Tech at Worldline
Рет қаралды 31 М.
Build a Python Website in 15 Minutes With Streamlit
18:37
Tech With Tim
Рет қаралды 77 М.
My Workflow for Building any Streamlit Dashboard Project
9:40
Fanilo Andrianasolo
Рет қаралды 96 М.
Streamlit Elements You Should Know About in 2023
14:31
Mısra Turp
Рет қаралды 106 М.
Deploy Your AI Streamlit App for FREE | Step-by-Step (Heroku Alternative)
30:10
Alejandro AO - Software & Ai
Рет қаралды 21 М.
Your Most Requested Streamlit Features FINALLY Out!
8:29
Fanilo Andrianasolo
Рет қаралды 15 М.
Build a Website in only 12 minutes using Python & Streamlit
12:48
Coding Is Fun
Рет қаралды 580 М.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 71 МЛН