结合python flask和express.js

Ana*_*ari 4 python node.js flask express

我有一个Web应用程序,其中站点构建在Python Flask上.现在我们想在页面中引入实时聊天系统.是否可以混合使用flask和express.js,或者只使用express.js开发聊天页面并使用Flask进行休息,或者我们是否有任何类似于python中的express.js的框架可以与烧瓶一起使用?

Kra*_*mar 5

在python中,您可以使用
http://twistedmatrix.com/trac/
http://www.gevent.org/
http://eventlet.net/

请看
http://librelist.com/browser//flask/2010/9/1/flask-and websockets /

Twisted has huge support and lot of success projects are built based upon it. gevent is light when compared to twisted.

查看此比较http://oddments.org/?p=494