TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Can I create a mobile and Web App using a Python/Python Framework?

6 pointsby Ntuthuko_hlelaover 1 year ago
Can I create a scaleable mobile and Web App using Python/Python Framework? By scaleable I mean, can a Python framework handle, say, 5 million users? Also, regarding the mobile app, I mean for both the Android and IOS operating systems.

8 comments

ringofchaosover 1 year ago
Web app is possible with Django but creating mobile version will be challenging as options are not much.<p>Your best option is to create backend api with python frameworks like Django Rest Frameworks or FastAPI. Frontend can be React which can be used for both web and mobile using React Native.<p>I had previous experience in python but had to learn React to handle similar requirements.<p>It&#x27;s always best to use the right tool for right job.<p>I am actually satisfied that I went this route, added new skills and possibilities
评论 #39358404 未加载
ensemblehqover 1 year ago
Most frameworks if architected properly on the backend are scalable.<p>You might want to check out the Quasar framework (Vue.js) as an alternative to React. It&#x27;s a single framework that lets you build web applications and mobile applications with a single codebase. This is frontend only but will complement with Django REST API&#x2F;Flask&#x2F;FastAPI.<p>Personally, found it a lot faster and easier working with Vue.js&#x2F;Quasar but documentation can also be tricky. Chat GPT has helped in this instance.
ActorNightlyover 1 year ago
Starting with the basics:<p>The backend for the app you can definitely do in Python. The upside is that its going to be comparatively easy to build, upgrade, and maintain, but with more users, you will have to spend more on infra. There is a use case for starting out with something more low level like Rust if you are proficient in it, because it will save you money down the line once your userbase grows. This is usually not the case though. You can use Django which has a lot more predefined tools for everything web app, or you can use something like FastAPI which is a lot more minimialistic and requires a lot less up front setup, and then use other tools for things like templating. Keep in mind that a framework does not often include an actual web server. Django for example doesn&#x27;t, so you have to run your own. Fast API uses uvicorn as a web server so you get that out of the box.<p>The frontend design (for web app) is different. Generally no matter what too you use, it eventually compiles to html, css, javascript. The traditional way of doing this is with nodejs. Vue.js is what I recommend usually for a framework, since its quite a bit faster and more minimal. You usually end up running a &quot;build&quot; step which transpiles all your files into html&#x2F;css&#x2F;js files to serve by your backend.<p>Mobile app is generally not really needed in most cases if you web app is a good experience for mobile. The only time an app is worth it is if you are using some sensor data or you need high performance within the app. Your app could be a simple webview of a mobile app with some small logic to auto authenticate instead of having to log in.<p>You can do mobile app and web app for mobile together in React Native. There is also Beeware which allows you to do everything in Python.
评论 #39367725 未加载
Leftiumover 1 year ago
For reference, YouTube runs on Python[1,2,3]:<p>&gt; 1. Python and Django: YouTube’s backend is predominantly written in Python, offering a balance of performance and readability.<p>&gt; 2. Google Cloud Platform...<p>&gt; 3. Java and C++: YouTube also utilizes Java and C++ for specific backend services, as they provide better performance for certain tasks.<p>---<p>A long time ago, I looked into these Python frameworks:<p>- <a href="http:&#x2F;&#x2F;www.web2py.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.web2py.com&#x2F;</a><p>- <a href="https:&#x2F;&#x2F;kivy.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kivy.org&#x2F;</a><p>[1]: <a href="https:&#x2F;&#x2F;blogopost.com&#x2F;youtube-tech-stack&#x2F;#backend" rel="nofollow">https:&#x2F;&#x2F;blogopost.com&#x2F;youtube-tech-stack&#x2F;#backend</a><p>[2]: <a href="https:&#x2F;&#x2F;medium.com&#x2F;@shanthanaroja99&#x2F;technology-stack-behind-youtube-cc765d4af50d" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@shanthanaroja99&#x2F;technology-stack-behind-...</a><p>[3]: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;G-lGCC4KKok" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;G-lGCC4KKok</a>
评论 #39367735 未加载
lordkrandelover 1 year ago
<a href="https:&#x2F;&#x2F;www.odoo.com" rel="nofollow">https:&#x2F;&#x2F;www.odoo.com</a> <a href="https:&#x2F;&#x2F;www.github.com&#x2F;odoo&#x2F;odoo">https:&#x2F;&#x2F;www.github.com&#x2F;odoo&#x2F;odoo</a><p>Mobile and web version available.
评论 #39358491 未加载
ap76apover 1 year ago
There are python frameworks like this which could be interesting for you. <a href="https:&#x2F;&#x2F;beeware.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;beeware.org&#x2F;</a>
评论 #39358480 未加载
YaBaover 1 year ago
Try <a href="https:&#x2F;&#x2F;flet.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;flet.dev&#x2F;</a> or <a href="https:&#x2F;&#x2F;streamlit.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;streamlit.io&#x2F;</a>
tomcamover 1 year ago
Yes.<p><a href="https:&#x2F;&#x2F;www.py4web.com" rel="nofollow">https:&#x2F;&#x2F;www.py4web.com</a>