nspyre.cli

Submodules

Package Contents

Functions

serve_data_server_cli(dataserv)

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

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.serve_data_server_cli(dataserv)

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

Parameters:

dataservDataServer object.

nspyre.cli.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.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__.