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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Making the Python back end for my new webapp

76 点作者 eigenvalue7 个月前

8 条评论

daft_pink7 个月前
I’m really interested in how you got the auth to interoperate between nextjs and python. I find auth to be the most difficult part of making blended code projects with JavaScript on the frontend like this.
评论 #41861446 未加载
评论 #41864220 未加载
评论 #41861390 未加载
dennisy7 个月前
Great article!<p>Bit of an aside, whilst SQLModel and merging the API validation and ORM models is fast, is it a good idea? There could be reasons these two things should grow individually and is it good to put so much logic into external frameworks?
评论 #41864197 未加载
kristianp7 个月前
Just looking at SQLModel example at (1)<p><pre><code> class Hero(SQLModel, table=True): id: Optional[int] = Field(default=None, primary_key=True) name: str secret_name: str age: Optional[int] = None </code></pre> Is the id supposed to be an Optional like that?<p>(1) <a href="https:&#x2F;&#x2F;sqlmodel.tiangolo.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sqlmodel.tiangolo.com&#x2F;</a>
评论 #41871567 未加载
评论 #41867148 未加载
评论 #41871355 未加载
lukax7 个月前
The author uses Whisper and GPT-4o to get transcriptions into a nicely formatted Markdown file.<p>We just released Omnio, a new AI model, that can do all this in a single step, as it works with audio directly. It does not generate a transcript and then modify it but can generate structured output such as Markdown directly from audio.<p>Maybe you can check it out.<p><a href="https:&#x2F;&#x2F;soniox.com&#x2F;blog&#x2F;omnio&#x2F;" rel="nofollow">https:&#x2F;&#x2F;soniox.com&#x2F;blog&#x2F;omnio&#x2F;</a>
asplake7 个月前
Oh, SQLModel [1] looks interesting – hadn&#x27;t seen that before. For apps with html front ends, are people replacing WTForms?<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;fastapi&#x2F;sqlmodel">https:&#x2F;&#x2F;github.com&#x2F;fastapi&#x2F;sqlmodel</a>
评论 #41861226 未加载
评论 #41864668 未加载
physicsguy7 个月前
I don’t really understand the point of having two backends for such a simple application.
varun_chopra7 个月前
This post comes at a great time. I&#x27;ve been looking into what the &quot;perfect&quot; stack would be for me (I&#x27;m OK with Python but haven&#x27;t done any frontend work).<p>Is anyone actually using FastAPI in a commercial, large scale app? Would you prefer using...say Django or Flask + Gevent (since they&#x27;re more mature) over FastAPI?<p>I recently found this thread[1] about FastAPI. It&#x27;s somewhat old now but reviews are mixed. I&#x27;m wondering if the landscape has improved now. Additionally, OP is using NextJS for the frontend and even that isn&#x27;t without complaints[2]. What&#x27;s odd for me is that the React website also asks you to pick between either Next.js or Remix[3].<p>[1] <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Python&#x2F;comments&#x2F;y4xuxb&#x2F;fastapi_stable_enough_for_production_grade&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Python&#x2F;comments&#x2F;y4xuxb&#x2F;fastapi_stab...</a><p>[2] <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;nextjs&#x2F;comments&#x2F;1g18xgu&#x2F;nextjs_is_hard_to_self_host&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;nextjs&#x2F;comments&#x2F;1g18xgu&#x2F;nextjs_is_h...</a><p>[3] <a href="https:&#x2F;&#x2F;react.dev&#x2F;learn&#x2F;start-a-new-react-project#production-grade-react-frameworks" rel="nofollow">https:&#x2F;&#x2F;react.dev&#x2F;learn&#x2F;start-a-new-react-project#production...</a>
评论 #41861297 未加载
评论 #41864075 未加载
评论 #41862816 未加载
评论 #41864918 未加载
评论 #41866243 未加载
评论 #41866021 未加载
评论 #41864339 未加载
评论 #41864124 未加载
bilekas7 个月前
Is your link working or maybe am I blocked on my network ?<p>If it&#x27;s not working, then maybe maybe python the backend wasn&#x27;t the best idea in the end?
评论 #41861063 未加载
评论 #41864128 未加载