Skip to content

fvioz/hil

Repository files navigation

Human in the Loop (HIL)

Add description [TODO]

Dependencies

  • Python 3.5

Getting Started

  1. Create a new main file:
$ touch app.py

where app is the main application.

  1. Open the app.py file and import HIL core:
from HIL import Core
  1. Create a new component file:
$ touch bell.py

where bell is a sub application.

  1. Open the bell.py file and write a sample component:
from HIL import Component

class Bell(Component):
  def play():
    print(chr(7))
    return None
  1. Open the app.pyand import the new component into your main application:
from bell import Bell
  1. Initialize the core framework:
core = Core()
  1. Add the new component class:
core.addComponent(Bell)
  1. Add the run command to your main server:
core.start()
  1. Run your server:
$ python3 app.py
  1. Open a terninal and run the following command:
$ curl -X POST --data "component=Bell&event=play" http://localhost:8000

Api Documentation

Using a browser, go to http://localhost:8000/documentation and you'll see the documentation of the api.

Sample Apps

There is a sample app at https://github.com/fvioz/HIL-sample please check

About

Human in the Loop

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages