- Install Pipenv
pipenv install --dev
nameko run temperature
nameko run humidity
hug run -f main.py
And obtain http://127.0.0.1:8000/hello, you should see message like following: "Temperature is 17, Humidity is 39"
Example of injection of RPC connection to RPC cluster through rabbitmq into hug endpoints
pipenv install --dev
nameko run temperature
nameko run humidity
hug run -f main.py
And obtain http://127.0.0.1:8000/hello, you should see message like following: "Temperature is 17, Humidity is 39"
Example of injection of RPC connection to RPC cluster through rabbitmq into hug endpoints