Bottle 使用哪个网络服务器?

发布于 2024-09-03 18:27:05 字数 270 浏览 5 评论 0原文

Bottle 可以使用多个网络服务器:

内置HTTP开发服务器并支持paste、fapws3、flup、cherrypy或任何其他支持WSGI的服务器。

我正在将 Bottle 用于桌面应用程序,我想在这种情况下开发服务器就足够了。我想知道你们中的一些人是否有使用替代服务器之一的经验。

哪个服务器用于什么目的?

Bottle can use several webservers:

Build-in HTTP development server and support for paste, fapws3, flup, cherrypy or any other WSGI capable server.

I am using Bottle for a desktop-app and I guess that the development server is enough in this case. I would like to know if some of you have experience with one of the alternative server.

Which server for which purpose?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

悸初 2024-09-10 18:27:05

使用 mod_wsgi,Python WSGI Web 应用可以在 Apache 中正常工作。

在 Windows 上,我使用 isapi-wsgi 在 IIS 上生产 WSGI Web 应用程序

Python WSGI web apps work fine in Apache, using mod_wsgi.

On Windows, I have WSGI web apps in production on IIS using isapi-wsgi

_畞蕅 2024-09-10 18:27:05

我会向您推荐uWSGI,他速度超快!

尝试设置一个以 uWSGI-Python 作为后端的 nginx 服务器来运行您的 Bottle 应用程序:)

I shall recommend you with uWSGI, he is ultra fast!

Try to set up a nginx server with uWSGI-Python as backend to run your bottle app:)

夏天碎花小短裙 2024-09-10 18:27:05

我现在使用 waitress ,它看起来稳定且快速。而且它是纯Python。

I am now using waitress and it seems stable and fast. Moreover it is pure Python.

绝不放开 2024-09-10 18:27:05

使用 CherryPy 进行了快速测试,粘贴,以及 Rocket 在本地主机 (Mac OS X 10.6) 上使用 ApacheBench,Rocket 是最快的一个。并发更高,更稳定。

Made a quick test with CherryPy, Paste, and Rocket with ApacheBench on localhost (Mac OS X 10.6) and Rocket was the fastest one. Even more stable with higher concurrency.

攒眉千度 2024-09-10 18:27:05

以下是各种 Python Web 服务器的一些相当全面的基准测试...

http://nichol.as /benchmark-of-python-web-servers

我已经使用了 Cherrypy 和 Paste with Bottle,并且没有任何问题。

Here are some pretty comprehensive benchmarks of various Python web servers...

http://nichol.as/benchmark-of-python-web-servers

I've used Cherrypy and Paste with Bottle and had no problems with either.

我一直都在从未离去 2024-09-10 18:27:05

要获得速度极快、超轻量级的异步 WSGI 服务器,请查看 bjoern。它是用 C 语言编写的,并使用 libev

For a screamingly fast, ultra-lightweight asynchronous WSGI server check bjoern. It is written in C and uses libev.

芯好空 2024-09-10 18:27:05

我使用Gevent,速度非常快,而且新版本(gevent-1.1rc5)修复了SSL错误。

I use Gevent, is very fast, and the new version (gevent-1.1rc5) has a SSL bug fix.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文