Skip to content

hardikp/service_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

service_demo

Build Status license

Python3 server and client examples for gRPC, Thrift and RPyC.

Service Example

  • TimeService implents get_time RPC call.
  • get_time returns the current server time in string format.

Implementations

  • grpc
  • thrift
  • thriftpy
  • rpyc
  • (Upcoming) grpc streaming
  • (Upcoming) thrift streaming
  • (Upcoming) rpyc streaming

How to use

  1. Create an virtualenv and install requirements.

    cd grpc
    pip3 install -r requirements.txt
  2. Run Server in one terminal window:

    python3 server.py
  3. Run Client in another terminal:

    python3 client.py

About

Simple examples for gRPC, Thrift and RPyC

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published