Better way of running a python script remotely

后端 未结 2 608
星月不相逢
星月不相逢 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).

    0 讨论(0)
  • 2021-01-13 16:47

    Have you considered using Fabric? It's really easy to use.

    0 讨论(0)
提交回复
热议问题