使用Flask Socket IO的Python WebSocket (Python WebSocket using Flask Socket IO)
Flask is a python web framework built. It is considered more pythonic than Django web framework because in common situations the equivalent Flask Web Application is more explicit. Flask uses restfulness to respond to the HTTP requests. Combining the WebSocket with Flask will make it an implement real-time web application with dual communication with the ease of WebSocket.
Flask是构建的python网络框架。 它被认为比Django Web框架更具有Python风格,因为在常见情况下,等效的Flask Web应用程序更加明确。 Flask使用宁静来响应HTTP请求。 将WebSocket与Flask结合使用,将使其成为一种实现实时Web应用程序,并通过WebSocket轻松实现双重通信。
简单的“ hello world”烧瓶应用程序示例 (Example for simple 'hello world' flask application)
Installation of the libraries in the virtual environment,
在虚拟环境中安装库,
Create a virtual environment
创建一个虚拟环