Flask_SoketIO implementation of an algorithmn API. The API is based on the websocket and can asynchronously return data to clients.
- python3.7
- flask_socketio
- flask
- websocket-client
- python-socketio
- python-engineio
- python-dateutil
- requests
You can also install packages with pip install
pip install -r requirements
-
server.py
- Recieve messages with JSON format from the client
- Run the model with received messages
- Send messages to the client
-
client.py
- Send messages with JSON format to the server
- Recieve results from the server