通过grpc发送colaboflow.go(cf.go)操作的python拼图
colabo.flow.go的Python项目详细描述
安装
# the latest pip install colabo.flow.go # upgrade AFTER installing pip install --upgrade colabo.flow.go # a speciffic one pip install colabo.flow.go==0.0.4
使用
# importfromcolabo.flow.goimportgo_pb2fromcolabo.flow.goimportColaboFlowGo# create an ColaboFlowGo objectcolaboFlowGo=ColaboFlowGo()createanexecuterequestobjectrequest=go_pb2.ActionExecuteRequest(flowId='search-sounds',name='mediator',flowInstanceId='fa23',dataIn='hello from client',params='quick')# send the go object to the go serviceresponse=colaboFlowGo.executeActionSync(request)# print the respons from the go serviceprint("response = %s"%(response))