The file server.py is a RESTful API server implemented with FastAPI. It has single route GET /getvideofile that streams a video file to the client.
To run the server:
- clone this repository to your machine
- change your directory to video-stream-fastapi/
pip3 install fastapi uvicorn
python server.py
The file client.py is a Python client implemented with Requests package and tqdm package (for progress bar). It downloads the video file being streamed from the server.
To run the client:
- clone this repository to your machine
- change your directory to video-stream-fastapi/
pip3 install tqdm request urllib3
python client.py