[Baypiggies] Alternatives to Python Fabric for SSH remote execution for Python 3?

Joshua Harlow harlowja at gmail.com
Sat Oct 31 20:46:41 EDT 2015


Or

https://pypi.python.org/pypi/plumbum

That is similar to fabric (imho it's better); may work for u...

On Saturday, October 31, 2015, David Berthelot <david.berthelot at gmail.com>
wrote:

> You can use python 2.7.x for fabfile.py since it's just a single file
> independent of the rest of your project.
>
> On Sat, Oct 31, 2015 at 4:38 PM, Tiejun Li via Baypiggies <
> baypiggies at python.org
> <javascript:_e(%7B%7D,'cvml','baypiggies at python.org');>> wrote:
>
>> There is none. Fabric is the best.
>>
>> Sent from Yahoo Mail on Android
>> <https://overview.mail.yahoo.com/mobile/?.src=Android>
>> ------------------------------
>> *From*:"Craig Rodrigues" <rodrigc at FreeBSD.org>
>> *Date*:Sat, Oct 31, 2015 at 4:25 PM
>> *Subject*:[Baypiggies] Alternatives to Python Fabric for SSH remote
>> execution for Python 3?
>>
>> Hi,
>>
>> I was recently doing QA work at a startup, and extensively used
>> Fabric ( http://fabfile.org ) for execute commands remotely over SSH.
>>
>> I used only a few functions from this library, such as
>> fabric.api.run() , fabric.api.cd(), fabric.api.put(), fabric.api.get().
>> This allowed me to run a remote command, change to a remote directory,
>> put a file, and get a file, all over SSH.
>>
>> For my uses, this worked out quite well.  I really liked this library a
>> lot.
>>
>> The only downside is the library does not work with Python 3.
>> I've tried this patch to add Python 3 support:
>> https://github.com/fabric/fabric/issues/1378
>> and it works.  However, the author of Fabric is not accepting this patch
>> because he does not want to drop support for Python 2.5.
>> The author is working on a rewrite called Pyinvoke (
>> http://www.pyinvoke.org/ )
>> which will support Python 3, but that is very early pre-alpha stuff.
>>
>> Can anyone recommend an alternate library for doing SSH remote
>> execution, which works on Python 2 and Python 3, and is simple to use?
>>
>> Since Fabric layers on top of the Paramiko ( http://paramiko.org ) SSH
>> library,
>> is using that directly the best way to go?
>>
>> --
>> Craig
>> _______________________________________________
>> Baypiggies mailing list
>> Baypiggies at python.org
>> To change your subscription options or unsubscribe:
>> https://mail.python.org/mailman/listinfo/baypiggies
>>
>> _______________________________________________
>> Baypiggies mailing list
>> Baypiggies at python.org
>> <javascript:_e(%7B%7D,'cvml','Baypiggies at python.org');>
>> To change your subscription options or unsubscribe:
>> https://mail.python.org/mailman/listinfo/baypiggies
>>
>
>

-- 
--
facebook.com/jshharlow <http://www.facebook.com/jshharlow>
flickr.com/jshharlow
YIM: jshharlow
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20151031/b6c4d779/attachment-0001.html>


More information about the Baypiggies mailing list