我有一個web應用程序,其中網站建立在Python燒瓶。現在我們要在一個頁面中介紹實時聊天系統。建議將flask和express.js混合使用,還是僅使用express.js和Flask來開發聊天頁面,或者我們是否有像python中的express.js這樣的框架可以與瓶一起工作?結合python燒瓶和express.js
4
A
回答
4
在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.
4
嘗試使用後端的Socket.io https://github.com/SocketTornadIO/SocketTornad.IO這樣你就可以一直保持你的服務器python。
如果將Node.js與python混合使用,也可以啓動並運行2臺服務器。
相關問題
- 1. 燒瓶和python
- 2. 結合Python的燒瓶HTML頁面內
- 3. pymngo和燒瓶的組合
- 4. Python(燒瓶)和MQTT監聽
- 5. web.py和燒瓶
- 6. 組合龍捲風和燒瓶模板
- 7. 包setup.py和燒瓶目錄結構
- 8. 多對多燒瓶和sqlalchemy python
- 9. Python燒瓶 - json和html 404錯誤
- 10. Heroku,燒瓶和python套接字?
- 11. Python燒瓶:發送文件和變量
- 12. 全局變量和python燒瓶
- 13. Websocketserver與燒瓶和gevent在Python
- 14. 燒瓶管理員+(燒瓶-登錄和/或瓶校長)
- 15. 安裝燒瓶 - 結構
- 16. 蟒蛇:燒瓶SQLAlchemy的結合filter_by和_in
- 17. 燒瓶SQLAlchemy的多個數據庫和結合
- 18. Python燒瓶方法定義
- 19. Python的燒瓶包裹
- 20. Python燒瓶打印鍵
- 21. Python燒瓶Mailchimp註冊
- 22. Python:用MAMP安裝燒瓶
- 23. 燒瓶登錄錯誤,python
- 24. 會議與燒瓶(python)
- 25. (Python)燒瓶 - request.args.get返回NoneType
- 26. Python燒瓶廣播消息
- 27. Python燒瓶:Route vs add_url_rule,SSE
- 28. Python燒瓶上的外鍵
- 29. Python燒瓶request.form不工作
- 30. Python燒瓶動態圖像