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

Craig Rodrigues rodrigc at FreeBSD.org
Fri Dec 18 18:35:37 EST 2015


Hi,

The maintainer of Fabric ( http://fabfile.org ) did not want to take these
Python3 patches
from Mathias Ertl:
https://github.com/fabric/fabric/issues/1378 because they broke
compatibility
with Python 2.5.
Mathias created this fork: https://github.com/mathiasertl/fabric/
<https://github.com/fabric/fabric/issues/1378>
which works with Python 2.7 and Python 3.x.  He also has started doing
releases
to Pypi.  The package can be intalled with:

pip install Fabric3

It's not ideal to have a fork, but the code does work, and I've been using
it.
--
Craig

On Sat, Oct 31, 2015 at 4:25 PM, Craig Rodrigues <rodrigc at freebsd.org>
wrote:

> 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
> <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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20151218/b173979b/attachment.html>


More information about the Baypiggies mailing list