Paramiko + gevent
A tiny wrapper around Paramiko's SSHClient
to enable running commands in parallel with gevent. Install with pip:
pip install paramiko-gevent
And use just like Paramiko with a different import:
from paramiko_gevent import SSHClient
client = SSHClient()
client.connect('localhost')
stdout, stderr = client.exec_command('cat /proc/stat')
Test
$ vagrant up
$ time python test.py
...
real 0m6.520s
$ time python test.py --serial
...
real 0m17.363s