Please follow the greeter example, specifically replacing the body of SayHello with your own code to execute the arbitrary code you want:
https://github.com/grpc/grpc/blob/master/examples/python/helloworld/greeter_server.py#L30 On Tuesday, January 9, 2018 at 6:39:26 PM UTC-8, he...@snaps.com wrote: > > 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? > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/6c275491-98eb-4f37-badd-30be2393b0d2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.