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

https://github.com/chirathr/grpc_todo_cli

A simple ToDo cli tool using gRPC
https://github.com/chirathr/grpc_todo_cli

grpc protocol-buffers python3

Last synced: 2 months ago
JSON representation

A simple ToDo cli tool using gRPC

Awesome Lists containing this project

README

          

### ToDo

A ToDo CLI program that uses gRPC to communicate between client and server.

To generate the protocol buffer and gRPC client classes execute the command from inside the `protobuf/` directory:

### Installation

```bash
pip install -r requirement.txt
```

### Usage

```bash
python -m grpc_tools.protoc -I./ --python_out=. --grpc_python_out=. todo.proto
```

To run the program, execute the server script.

```bash
python server.py
```

Then run the client script in a new terminal.

```bash
python client.py
```

### Testing

All the core modules have unit tests. To run all tests use the command:

```bash
pytest -v
```

This will also create covrage html report and save it in the `htmlcov` file.

#### Screenshots

![ToDo](images/todo.png)