lewis.scripts.control

To interact with the control server of a running simulation, use this script. Usage:

usage: lewis-control [-r RPC_HOST] [-t TIMEOUT] [-n] [-v] [-h]
                     [object] [member] [arguments ...]

A client to manipulate the simulated device remotely through a separate
channel. For this tool to be of any use, lewis must be invoked with the
-r/--rpc-host option.

Positional arguments:
  object                Object to control. If left out, all objects are
                        listed.
  member                Object-member to access. If omitted, API of the object
                        is listed.
  arguments             Arguments to method call. For setting a property,
                        supply the property value.

Optional arguments:
  -r RPC_HOST, --rpc-host RPC_HOST
                        HOST:PORT string specifying control server to connect
                        to.
  -t TIMEOUT, --timeout TIMEOUT
                        Timeout after which the control client exits. Must be
                        at least as long as one simulation cycle.
  -n, --print-none      By default, no output is generated if the remote
                        function returns None. Specifying this flag will force
                        the client to print those None-values.
  -v, --version         Prints the version and exits.
  -h, --h               Shows this help message and exits.

Members

call_method

control_simulation

convert_type

is_remote_method

list_objects

show_api