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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Tell HN: Flask and Quart have now partially merged

20 点作者 pgjones超过 1 年前
Flask is a web microframework built to be used with WSGI servers and synchronous code. Quart is the same web microframework built to be used with ASGI servers and asynchronous code. In other words Flask and Quart are now the same base framework as they share the majority of their codebases.<p>This means that you can use the same framework API and understanding to write synchronous code with Flask, and asynchronous code with Quart.<p>It is important to note that Flask cannot be made asynchronous without breaking extension and backwards compatibility, or without using monkeypatching. Therefore, Quart is best viewed as a namespace for async&#x2F;await usages.<p>Questions and comments very welcome. (I&#x27;m struggling a little thinking about how best to communicate this)

3 条评论

hardwaresofton超过 1 年前
Links:<p><a href="https:&#x2F;&#x2F;quart.palletsprojects.com&#x2F;en&#x2F;latest&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;quart.palletsprojects.com&#x2F;en&#x2F;latest&#x2F;</a><p><a href="https:&#x2F;&#x2F;flask.palletsprojects.com&#x2F;en&#x2F;3.0.x&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;flask.palletsprojects.com&#x2F;en&#x2F;3.0.x&#x2F;</a><p>TIL about the new Flask logo!
评论 #37724232 未加载
ps256超过 1 年前
Is there are any reason to pick Flask over FastAPI for a new project in 2023?
评论 #37725896 未加载
评论 #37736359 未加载
aynyc超过 1 年前
So I can use Quart part for my API service, and Flask for my UI service all in the same project structure?