4.1. sciexp2.exprun.spur
¶
Source: sciexp2/exprun/spur.py
Extensions to external spur
package.
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. |
with_signum |
Decorator to define a kill argument that takes the user’s signal number. |
4.1.5. 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.6. is_local_shell
¶
-
is_local_shell
(shell)¶ Whether the given shell is a
spur.LocalShell
or derivative.
4.1.7. is_ssh_shell
¶
-
is_ssh_shell
(shell)¶ Whether the given shell is a
spur.SshShell
or derivative.