python_shell - Python Interactive Remote Shell
Python interactive shell.
Typical usage example in a TestSuite:
from framework.remote_session import PythonShell
python_shell = PythonShell(self.tg_node, timeout=5, privileged=True)
python_shell.send_command("print('Hello World')")
python_shell.close()
- class PythonShell
Bases:
InteractiveShell
Python interactive shell.
- path: ClassVar[PurePath] = PurePosixPath('python3')
The Python executable.