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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Granian – a Rust HTTP server for Python applications

179 点作者 patrick91超过 2 年前

11 条评论

giancarlostoro超过 2 年前
My first thought was &quot;this better be WSGI!!!&quot; and sure enough it is. If you&#x27;re doing Python web development and you have no idea what WSGI or ASGI are, you really ought to learn more about them. ASGI is the Async equivalent &#x2F; answer to WSGI. It is one of the main ways to deploy any web application in Python. Every major web framework supports it OOTB and heck, even one of the fastest web frameworks for Python (FastAPI) uses it exclusively.<p>Thanks to WSGI you can have projects like this that focus on scaling out your Python web all to the fullest extent possible.
评论 #34401431 未加载
评论 #34405050 未加载
评论 #34404594 未加载
评论 #34401925 未加载
TigerTeamX超过 2 年前
Looks super interesting. One of the things that I wanted to improve on are Gunicorn&#x27;s latency and here:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;emmett-framework&#x2F;granian&#x2F;tree&#x2F;master&#x2F;benchmarks">https:&#x2F;&#x2F;github.com&#x2F;emmett-framework&#x2F;granian&#x2F;tree&#x2F;master&#x2F;benc...</a> shows way better latency for Granian.<p>Kudos.<p>just, when would you consider this good enough for production?
评论 #34402273 未加载
评论 #34400445 未加载
AMCMneCy超过 2 年前
There is a similar project <a href="https:&#x2F;&#x2F;github.com&#x2F;sansyrox&#x2F;robyn">https:&#x2F;&#x2F;github.com&#x2F;sansyrox&#x2F;robyn</a><p>A framework for Python, the core of which is written in Rust
评论 #34400896 未加载
ultra_nick超过 2 年前
Collaborating with Python&#x2F;Web is a great way Rust to market itself.
评论 #34402486 未加载
dahateb超过 2 年前
Interesting project. Would it be able to run a fastapi project just like uvicorn in production?
评论 #34424752 未加载
kortex超过 2 年前
Can anyone give a quick synopsis of why this RSGI is needed? Can&#x27;t ASGI code be called from a Rust socket termination, a la Gunicorn?
评论 #34405851 未加载
ddejohn超过 2 年前
Very cool. Sounds like a perfect fit for the Starlite framework, which is using Rust for route handling.
Thaxll超过 2 年前
It looks like a wrapper arround hyper?
Alifatisk超过 2 年前
Any plans on implementing H3?
评论 #34403915 未加载
评论 #34399756 未加载
评论 #34402312 未加载
评论 #34401054 未加载
gdcbe超过 2 年前
Serious question: why would I want to use this? Is the answer as simple as “because I want to develop in Python”?.<p>Because if you’re going to do it in Rust, why not just go all the way with something like Axum?<p>That being said, first time I hear about WSGI&#x2F;ASGI, so I did some reading. From an educational perspective I’m intrigued and even will check the codebases at some point to see how it works.<p>But from a production POV I do not get why I would want to use it. What’s so great about it - besides letting you develop a reasonably fast server in Python, surely it is more then that?
评论 #34403865 未加载
评论 #34404749 未加载
评论 #34404408 未加载
fortran77超过 2 年前
Python comes with an HTTP server built-in!<p><a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;http.server.html" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;http.server.html</a>
评论 #34401291 未加载
评论 #34401457 未加载
评论 #34404860 未加载