Skip to content

Instantly share code, notes, and snippets.

@gistlyn gistlyn/
Created Dec 30, 2019

What would you like to do?
Python Google protoc SSL GrpcServicesClient TodoWorld Example
import grpc
import services_pb2
import services_pb2_grpc
def run():
with open('grpc.crt', 'rb') as f:
credentials = grpc.ssl_channel_credentials(
with grpc.secure_channel('', credentials) as channel:
client = services_pb2_grpc.GrpcServicesStub(channel)
response = client.GetHello(services_pb2.Hello(Name="gRPC Python"))
if __name__ == '__main__':
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.