An open API service indexing awesome lists of open source software.

https://github.com/purplesmoke05/grpc-python-sample


https://github.com/purplesmoke05/grpc-python-sample

client grpc protobuf python server

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# grpc-Python-sample

## Description

- This is grpc server / client sample for Python.

## HOW TO USE

### INSTALL

```bash
$ git clone https://github.com/airking05/grpc-python-sample

$ cd grpc-python-sample

$ pip install -r requirements.txt

$ make build
```

### Use

#### in one terminal

```bash
$ python protos/server.py
```

#### in the other terminal

```bash
$ python protos/client.py

----- client is sending Ping to server -----
hage: "me too"
------------- response returned ------------

----- client is sending Ding to server -----
(Empty)
------------- response returned ------------```