numtide / deploykit

Execute commands remote via ssh and locally in parallel with python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

running python code via ssh

pogobanane opened this issue · comments

Running many small commands via ssh on one host is slow, because of ssh-connection-buildup overheads per command. Also, i want to use python functions instead of bash e.g. to work on the filesystem.

Instead i want to send python code to the remote host and execute it there. Stdout should be handled just like DeployHost.run("echo foo") output.

I understand that this may be out of scope for this project.