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.
- property path: PurePath
Path to the Python3 executable.