singleton11 / Hug-DI-example

Example of injection of RPC connection to RPC cluster through rabbitmq into hug endpoints

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

  1. Install Pipenv
  2. pipenv install --dev
  3. nameko run temperature
  4. nameko run humidity
  5. 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"

About

Example of injection of RPC connection to RPC cluster through rabbitmq into hug endpoints


Languages

Language:Python 100.0%