This code defines the services:
from nameko.rpc import rpc
class GreetingService:
name = "greeting_service"
@rpc
def hello(self, name):
return "Hello, {}!".format(name)
class MultiplyService:
name = "multiply_service"
@rpc
def multiple(self,a,b):
return str(int(a) * int(b))
I can open a nameko shell and access the microservice:
I want to access the microservice from another Python script. What am I missing?