unicon.eal.backend package¶
Submodules¶
unicon.eal.backend.pty_backend module¶
- Module:
unicon.eal.backend.pty_backend
- Authors:
ATS TEAM (ats-dev@cisco.com, CSG(STEP) - India)
- Description:
Spawn class is used to invoke commands with which we need to interact. It provides methods for interacting with the spawned commands by using methods like send/expect. It is very similar in intent as Tcl/Expect’s spawn command.
- class unicon.eal.backend.pty_backend.Spawn(spawn_command, *args, **kwargs)¶
Bases:
SpawnThis class adds pty-specific spawn logic .
- close()¶
- is_alive()¶
Return whether this spawn has a usable PTY and live child.
The probe does not reap the child or invoke configured disconnect waits. Resource cleanup remains owned by
close()and terminal I/O failure handling.
- is_closed()¶
Return whether this PTY spawn cannot safely be used.
- is_readable(timeout=0.01)¶
- is_writable(timeout=0.01)¶