4.1. sciexp2.exprun.spur¶
Source: sciexp2/exprun/spur.py
Functions
get_shell |
Get a new shell. |
is_local_shell |
Whether the given shell is a spur.LocalShell or derivative. |
is_ssh_shell |
Whether the given shell is a spur.SshShell or derivative. |
Classes
LocalShell |
An extended version of spur.LocalShell. |
SshShell |
An extended version of spur.SshShell. |
with_pid |
Decorator to define a kill argument that takes the process’ pid. |
4.1.4. get_shell¶
-
get_shell(server, user=None, password=None, port=22)¶ Get a new shell.
If server is a spur shell, return that instead.
Parameters: - server : str or object
- user : str, optional
- password : str, optional
- port : int, optional
4.1.5. is_local_shell¶
-
is_local_shell(shell)¶ Whether the given shell is a
spur.LocalShellor derivative.
4.1.6. is_ssh_shell¶
-
is_ssh_shell(shell)¶ Whether the given shell is a
spur.SshShellor derivative.