PythonGRPCKit

Write grpc application like Flask.


License
BSD-3-Clause
Install
pip install PythonGRPCKit==0.0.3

Documentation

PythonKit

Build Status

Write grpc application like Flask.

Installing

pip install git+https://github.com/htwenning/python_kit

Example

from python_kit import PythonKit


server = PythonKit(__name__, protos='./protos/hello.proto')
servicer = server.create_servicer('Greeter')

@servicer.endpoint('SayHello')
def SayHello(request, context):
    hello_to = request.name
    return servicer.response('HelloReply', {
        'message': hello_to
    })


if __name__ == "__main__":
    server.run('[::]:9094')

For details please read example dir in project