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
- Host: GitHub
- URL: https://github.com/chirathr/grpc_todo_cli
- Owner: chirathr
- Created: 2018-10-17T08:26:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T09:03:25.000Z (over 7 years ago)
- Last Synced: 2025-07-01T13:07:11.705Z (about 1 year ago)
- Topics: grpc, protocol-buffers, python3
- Language: Python
- Homepage:
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
