Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nabim777/demo1-grpc-python
https://github.com/nabim777/demo1-grpc-python
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/nabim777/demo1-grpc-python
- Owner: nabim777
- Created: 2023-09-02T12:47:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-08T15:40:42.000Z (about 1 year ago)
- Last Synced: 2024-10-17T18:48:16.917Z (19 days ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# grpc-python
## Step 1: Install `pip`
```zsh
sudo apt install python3-pip
```## Step 2: Install `grpc-tools`
```zsh
pip3 install grpcio-tools
```
If not install then you have to upgrade pip3
```zsh
pip3 install --upgrade pip
```## Step 3: generate the bolierplate code needed for creating client and server
No need to do this step since already `greet_pb2.py` and `greet_pb2_grpc.py` already generated
```zsh
python3 -m grpc_tools.protoc -I protos --python_out=. --grpc_python_out=. protos/greet.proto
```## step 4: To run the program use two terminal one for server and another for client
To run server
```zsh
python3 greet_server.py
```To run client
```zsh
python3 greet_client.py
```## For presentation link [click here](https://www.canva.com/design/DAFqZ4YPy98/79UULeTKa-O1KvA7-2ZuUA/edit)