Fabric vs Invoke
Asked Answered
O

3

30

I have been using fabric and recently got told about invoke, so I took a look at it's documentation:

Like Ruby’s Rake tool and Invoke’s own predecessor Fabric 1.x, it provides a clean, high level API for running shell commands and defining/organizing task functions from a tasks.py file.

Unless I am missing something and noob at invoke, but I find fabric is way more powerful than invoke, which makes me think invoke isn't a replacement for fabric. I am a bit confused.

I did a google search 'fabric vs invoke' and got nothing, so asking here instead.

Orosco answered 20/2, 2014 at 1:19 Comment(0)
R
25

Notice that both projects are maintained and managed by the same person. Bitprophet is working on a Fabric 2.x line that will utilize Invoke to clear out a lot of the cruft around running shell commands that exists right now in Fabric 1.x. So it's not really meant to replace fabric, but to be something from which later versions will build off.

Rondi answered 26/2, 2014 at 16:26 Comment(4)
Fabric 2.0 (Python 3.x compatible) is vaporware, see Joel on Software - Things You Should Never Do, Part I. Despite many people offering contributions to make 1.x+1 Python 3 compatible (which would not impede 2.0 if it's simply branched), they're roundly refused.Myosin
@NickT mind linking to the refusals? I suspect that there are good reasons they were turned down.Rondi
@Rondi Searching for "Python 3" on the issue tracker brings up quite a lot. The closest to a reason that was given is saying that dropping 2.5 support is not an option. Everything else is just repeats of "Fabric 2 will support Py3, it's coming soon!".Temikatemp
For anyone coming to this late, Fabric 2.0 was released in May 2018. It did take awhile to get out the door but it's finally here, stable, and built on top of Invoke (as described). So yes, in essence Fabric extends Invoke to work with remote hosts via ssh.Unstep
A
3

Some helpful details are here: http://www.fabfile.org/roadmap.html#invoke-fabric-2-x-and-patchwork

As Fabric 2 is developed, Invoke will approach a 1.0 release, and will continue to grow & change to suit Fabric’s needs while remaining a high quality standalone task runner.

Acrogen answered 15/9, 2014 at 14:17 Comment(0)
S
0

I have used fabric3 for a long while as it was the same as fabric1. I think the time has come to use invoke, I tried a few years ago and it wasn't yet ready.

Sicanian answered 6/2, 2020 at 19:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.