server | python | (Starlette/ FastAPI) https://pypi.org/project/sse-starlette |
client | cURL, python, | https://pypi.org/project/sseclient-py/ |
CAUTION: POSTMAN is not supported for streaming, however, response will return JSON of all the words instead of streaming. As there's a delay embedded in generating response you will observe a lag DONT attribute the lag as program being slow) |
Checkout server/p1.py
and client/p1.py
-
Install deps.
pip install -r requirements.txt
-
Run server
python server/p2.py
-
Call GET Endpoint
- Using cURL
curl localhost:8000/get_words
- Using Python
python client/p2.py
- Using cURL