AFL.automation.APIServer.Client#

Classes

Client([ip, port, username, interactive])

Communicate with APIServer

ServerDiscovery()

ServerDiscovery class

class AFL.automation.APIServer.Client.Client(ip=None, port='5000', username=None, interactive=False)[source]#

Communicate with APIServer

This class provides an interface to generate HTTP REST requests that are sent to an APIServer, monitor the status of those requests, and retrieve the results of those requests. It is intended to be used as a client to the APIServer class.

__init__(ip=None, port='5000', username=None, interactive=False)[source]#
classmethod from_server_name(server_name, **kwargs)[source]#
logged_in()[source]#
login(username, populate_commands=True)[source]#
driver_status()[source]#
get_queue()[source]#
wait(target_uuid=None, interval=0.1, for_history=True, first_check_delay=5.0)[source]#
get_quickbar()[source]#
server_cmd(cmd, **kwargs)[source]#
enqueued_base(**kwargs)[source]#
unqueued_base(**kwargs)[source]#
get_unqueued_commands(inherit_commands=True)[source]#
get_queued_commands(inherit_commands=True)[source]#
enqueue(interactive=None, **kwargs)[source]#
set_config(interactive=None, **kwargs)[source]#
get_config(name, print_console=True, interactive=None)[source]#
get_server_time()[source]#
query_driver(**kwargs)[source]#
reset_queue_daemon()[source]#
pause(state)[source]#
clear_queue()[source]#
clear_history()[source]#
debug(state)[source]#
halt()[source]#
queue_state()[source]#
remove_item(uuid)[source]#
move_item(uuid, pos)[source]#
set_driver_object(**kw)[source]#
get_driver_object(name)[source]#
deposit_obj(obj, uid=None)[source]#

Deposit an object in the dropbox obj : object, the object to deposit id : str, the uuid to deposit the object under if not specified, a new uuid will be generated

retrieve_obj(uid, delete=True)[source]#

Retrieve an object from the dropbox id : str, the uuid of the object to retrieve delete : bool, if True, delete the object after retrieving

set_object(serialize=True, **kw)[source]#
get_object(name, serialize=True)[source]#