[python]How to run python packages with gprc

15 views
Skip to first unread message

he...@snaps.com

unread,
Jan 9, 2018, 9:39:26 PM1/9/18
to grpc.io
How do I configure grpc to impersonate a Python package or xxx.py file?
I ran the helloworld example.
I want to implement some specific logic with grpc. Certain logic is written in Python.
When requested by the clien.pyt, the server.py wants to execute the Python package.

How do I implement grpc to execute xxx.py instead of a simple print function?

Mehrdad Afshari

unread,
Jan 17, 2018, 7:44:05 PM1/17/18
to grpc.io
Please follow the greeter example, specifically replacing the body of SayHello with your own code to execute the arbitrary code you want:

Reply all
Reply to author
Forward
0 new messages