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.
- Host: GitHub
- URL: https://github.com/joeylr2042/flask-socketio-api
- Owner: joeylr2042
- Created: 2021-10-21T00:50:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T13:54:18.000Z (10 months ago)
- Last Synced: 2025-04-01T12:09:32.548Z (2 months ago)
- Topics: api-client, api-server, flask-api, flask-socketio, python, websocket
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
+ requestsYou 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