pylabrobot.opentrons.OpentronsAPI#

class pylabrobot.opentrons.OpentronsAPI(io: HTTP)#

Bases: object

HTTP endpoint encoding and decoding, without device or selected-run state.

The caller opens and closes io. Queries return independent readings; commands return server receipts without attaching them to a device.

Methods

__init__(io)

create_run()

define_labware(run_id, definition)

get_command(run_id, command_id)

get_connected_modules()

get_health()

get_mounted_pipettes()

Read the OT-2 mount endpoint without loading instruments into a run.

get_run(run_id)

get_runs()

home()

Home the OT-2 gantry and pipette axes through the robot endpoint.

stop_run(run_id)

Stop a run, falling back only when a firmware endpoint is unsupported.

submit_command(run_id, command_type, params)

Parameters:

io (HTTP)