https://github.com/abhiramborige/grpc-client-server
A client server communication using GRPC Proto structure
https://github.com/abhiramborige/grpc-client-server
grpc-client grpc-python grpc-server grpc-tools rpc-library
Last synced: 3 months ago
JSON representation
A client server communication using GRPC Proto structure
- Host: GitHub
- URL: https://github.com/abhiramborige/grpc-client-server
- Owner: Abhiramborige
- Created: 2024-06-11T12:45:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-11T13:00:55.000Z (over 1 year ago)
- Last Synced: 2025-03-21T14:57:46.170Z (9 months ago)
- Topics: grpc-client, grpc-python, grpc-server, grpc-tools, rpc-library
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## GRPC_Client_Server
A client server communication using GRPC Proto structure.
The RPC calls that client can send to retrieve data from server include:
```proto
rpc createemployee(Employee) returns(Response);
rpc reademployees(void) returns(Employees);
rpc readconnections(void) returns(AllConnections);
rpc establishconnection(ConnectionRequest) returns(Response);
rpc updatesalary(Employee) returns(Employee);
```
Implementation of the functions are in server/sender.py and calls are made in client/receiver.py
To start with:
1. `pip install grpcio-tools`
2. `cd `
3. `python -m grpc_tools.protoc --proto_path ./ --python_out ./ --pyi_out=./ --grpc_python_out=./ emp.proto`
4. To start the server: `python server\sender.py`
5. Modify the client accordingly as per wish and start calling RPCs: `python client/receiver.py`