+1 for RPyC, very powerful and very simple.

Regarding Pyro, I've used it a few years ago and it was incredibly complex
to set up and flakier than RPyC. Maybe that's changed, but I'm not sure.

On Thu, Jul 22, 2010 at 10:09 AM, Tal Einat <[email protected]> wrote:

> On Thu, Jul 22, 2010 at 9:47 AM, Amit Dor-Shifer <[email protected]>wrote:
>
>>  I wish to execute some python code on a remote host, accessed via SSH.
>> The module containing the code is available locally, but not on the remote
>> host. I can copy the code over to the remote host, and execute it there, but
>> I was wondering whether there's some programmatic alternative to that: E.G:
>>
>>    1. wrap the code in a method,
>>     2. extract the method via an object's __dict__
>>     3. Serialize the method over to the remote host
>>     4. execute result on a remote python interpreter.
>>
>> Or:
>>
>>    1. Somehow retrieve the source lines of the method.
>>    2. pass those to a remote "python -c" execution.
>>
>>
>> Are such options available in python?
>>
>
> Allow me to recommend the excellent RPyC library:
> http://rpyc.wikidot.com/
>
>
> _______________________________________________
> Python-il mailing list
> [email protected]
> http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il
>
>


-- 
Check out my blog: http://orip.org
_______________________________________________
Python-il mailing list
[email protected]
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il

לענות