Skip to content

Expect like API for EXSCRIPT -does this exist, where is it? #242

Open
@duaneellissd

Description

@duaneellissd

I am looking for a replacement for the depricated: 'telnet' module in python.
specifically we use the expect feature of that module.

Things pointed me to this package.

The specific thing i need is: espect like opertation from within Python for a device that talks TELNET.

One example is the common opensource tool: "openocd" - which has a "TELNET" port one can talk to to script commands and interact with openocd.

What is MISSING is an example of an expect like operation in the exscript documentation.

Thats not what I want. I do not want to write a EXSCRIPT, I want to do all of this with Python as the script language.

Reason: My scripts talk to numerus other things via sockets, specifically with the "SCPI" protocol via a python socket, ie: A power supply, an oscilloscope etc.

I need to:
First: (A) send commands to the target via "OPENOCD's telnet interface" -
Then (B) Setup the scope via a socket that speaks the SCPI protocol
Then (C) Start a calibration procedure (initiated via serial port commands to the DUT using PySerial)
Then (D) Capture wave forms via the scope/scpi interface
Then (D) Do some math - then Adjust a power supply - and loop over Adjust things on the power supply

That level of complexity is better done in Python - so I need/am-looking-for a API - and there is no API documentation for EXSCRIPT

Is this (EXSCRIPT) the right tool to do and use for this? If not I'll go elsewhere.
It seems the idea/concept of 'exscript' - is its own scripting language.
I see little to no API like documentation :-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions