Better way of running a python script remotely

后端 未结 2 669
星月不相逢
星月不相逢 2021-01-13 16:02

I have a python script on a remote machine which I want to execute from my local machine. It takes in a few arguments and this is how I would run it if I were to run it on t

2条回答
  •  没有蜡笔的小新
    2021-01-13 16:31

    I recommend you look at the plumbum module for doing things like this.

    Its a pretty cool and easy way to run local commands and you can do the same with remote commands quite easily (with a context manager).

提交回复
热议问题