using gRPC in Python
Whenever client send a request, server will process it and send JSON object as response back to the client
Responses could be:
- Top 250 Movies of IMDB
- Top 250 Series of IMDB
- Search Movies by Title
- Search Series by Title
$ sudo apt install git
$ git clone https://github.com/mosihere/imdb_movies
after cloning project:
you should register in imdb and take an API-KEY
create an virtual environment,
activate it, install dependencies and done.
$ cd imdb_movies
$ python3 -m virtualenv .venv
$ source bin/activate/.venv
$ python -m pip install -r requirements.txt
first run the Server:
$ python main.py'
use bloomRPC for sending request and getting response on port 50051
127.0.0.1:50051
$ python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. movie_service.proto
$ python -m unittest test.py
Pull requests are welcome.
Please make sure to update tests as appropriate.