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.
Fabric is a tool for Python similar to Makefiles but with the ability to execute commands on a remote server.
The Fabric programming language is an extension of the Jif programming language [5], which is in turn a version of Java extended with security labels that govern the confidentiality and integrity of information used in the program, and ensure that information flows in the programs respect those security policies.
Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks. Typical usage involves creating a Python module containing one or more functions, then executing them via the fab command-line tool.
Invoke is a Python (2.7 and 3.4+) library for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks. It draws inspiration from various sources ( make / rake , Fabric 1. x, etc) to arrive at a powerful & clean feature set.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With