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.
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.