Parallel-SSH Documentation

LicenseLatest Versionhttps://circleci.com/gh/ParallelSSH/parallel-ssh/tree/master.svg?style=svghttps://codecov.io/gh/ParallelSSH/parallel-ssh/branch/master/graph/badge.svghttps://img.shields.io/pypi/wheel/parallel-ssh.svgLatest documentation

parallel-ssh is a non-blocking parallel SSH client library.

It provides clients based on C libraries with an easy to use Python API providing native code levels of performance and stability.

In a nutshell

Client will attempt to use all available keys under~/.ssh as well as any keys in an SSH agent, if one is available.

frompssh.clientsimportParallelSSHClientclient=ParallelSSHClient(['localhost','localhost'])output=client.run_command('uname')forhost_outinoutput:forlineinhost_out.stdout:print(line)exit_code=host_out.exit_code
Output:
<Unameoutput><Unameoutput>

Single Host Client

Single host client is also available with similar API.

frompssh.clientsimportSSHClientclient=SSHClient('localhost')host_out=client.run_command('uname')forlineinhost_out.stdout:print(line)exit_code=host_out.exit_code
Output:
<Unameoutput>

Indices and tables