An open API service indexing awesome lists of open source software.

https://github.com/joeylr2042/flask-socketio-api

Flask_SoketIO implementation of an algorithmn API. The API is based on the websocket and can asynchronously return data to clients.
https://github.com/joeylr2042/flask-socketio-api

api-client api-server flask-api flask-socketio python websocket

Last synced: 2 months ago
JSON representation

Flask_SoketIO implementation of an algorithmn API. The API is based on the websocket and can asynchronously return data to clients.

Awesome Lists containing this project

README

        

# Flask_Socketio_API
Flask_SoketIO implementation of an algorithmn API. The API is based on the websocket and can asynchronously return data to clients.

# Installation
+ python3.7
+ flask_socketio
+ flask
+ websocket-client
+ python-socketio
+ python-engineio
+ python-dateutil
+ requests

You can also install packages with pip install
```pyhon
pip install -r requirements
```

# Code Structure
- **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