nspyre.cli.inserv

Serves a shell prompt allowing the user runtime control of the instrument server.

Module Contents

Functions

serve_instrument_server_cli(inserv)

Run a command-line interface to allow user interaction with the instrument server.

start_instrument_server([drivers, inserv_kwargs])

Start an instrument server and serve a CLI.

nspyre.cli.inserv.serve_instrument_server_cli(inserv)

Run a command-line interface to allow user interaction with the instrument server.

Parameters:

inservInstrumentServer or InstrumentGateway object.

nspyre.cli.inserv.start_instrument_server(drivers=None, inserv_kwargs=None)

Start an instrument server and serve a CLI.

Parameters:
  • drivers – A list of dictionaries, where each dictionary contains keyword arguments to the InstrumentServer add() method.

  • inserv_kwargs – Keyword arguments to pass to InstrumentServer.__init__.