The object which connects to a SPEC session and runs macros in there. (Spec script source code)
In Pylatus Script editor the
spec object is already imported into Python interpreter, but if you
.py files, then you can import it as:
from auxygen_spec import PySpec spec = PySpec()
Important: unlike other objects,
spec does not create a sequence action but runs directly and immediately, i.e.
it changes the Pylatus script editor to a prompt, then the Python interpreter blocks until the spec command is
finished. If you need to run a
spec macro as a sequence action, consider using to_sequence
You can create a spec connection as:
s = spec('host:session')
Since creation of the connection is expensive and time-consuming operation, Pylatus puts them in a cache for future reuse.
spec command immediately and blocks until it is finished. You can abort the command at any moment.