This project implements a gRPC server and client using bidirectional streaming. The server receives messages from the client and logs them.
- gRPC dependencies listed in
Requirements.txt
-
Clone the repository:
git clone <your-repository-url> cd <your-repository-directory>
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate
-
Install the required packages:
pip install -r requirements.txt
-
Generate gRPC Code from .proto:
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. my_service.proto
To start the gRPC server, run:
python server.pyTo start the gRPC server, run:
python client.py