httpclient ModuleΒΆ

Gaffer provides you a simple Client to control a gaffer node via HTTP.

Example of usage:

import pyuv

from gaffer.httpclient import Server

# initialize a loop
loop = pyuv.Loop.default_loop()

s = Server("http://localhost:5000", loop=loop)

# add a process without starting it
process = s.add_process("dummy", "/some/path/to/dummy/script", start=False)

# start a process

# increase the number of process by 2 (so 3 will run)

# stop all processes