TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

6 点作者 Ntuthuko_hlela超过 1 年前
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 条评论

ringofchaos超过 1 年前
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 未加载
ensemblehq超过 1 年前
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.
ActorNightly超过 1 年前
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 未加载
Leftium超过 1 年前
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 未加载
lordkrandel超过 1 年前
<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 未加载
ap76ap超过 1 年前
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 未加载
YaBa超过 1 年前
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>
tomcam超过 1 年前
Yes.<p><a href="https:&#x2F;&#x2F;www.py4web.com" rel="nofollow">https:&#x2F;&#x2F;www.py4web.com</a>