Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fabric vs pexpect

I've stumbled upon pexpect and my impression is that it looks roughly similar to fabric. I've tried to find some comparison, without success, so I'm asking here--in case someone has experience with both tools.

Is my impression (that they are roughly equivalent) correct, or it's just how it looks on the surface ?

like image 537
Tomasz Zieliński Avatar asked Nov 16 '10 23:11

Tomasz Zieliński


People also ask

What is a fabric file?

Product Overview. The Enterprise File Fabric platform is a data management and protection platform that unifies on-premises and on-cloud company storage assets. Users gain easy, secure, remote access to Amazon S3, Amazon FSx and other object and file storage through file-oriented interfaces and tools.

What is fabric in coding?

The term fabric is commonly used to describe data or storage area networks (SANs). Increasingly, however, vendors are using the term to describe the servers, high-speed connections and switches that make up a cloud computing platform.


2 Answers

I've used both. Fabric is more high level than pexpect, and IMHO a lot better. It depends what you're using it for, but if your use is deployment and configuration of software then Fabric is the right way to go.

like image 154
Jon Avatar answered Nov 16 '22 00:11

Jon


You can also combine them, to have the best of both worlds, fabrics remoting capabilities and pexpects handling of prompts. Have a look at these answers: https://stackoverflow.com/a/10007635/708221 and https://stackoverflow.com/a/9614913/708221

like image 36
Jasper van den Bosch Avatar answered Nov 15 '22 23:11

Jasper van den Bosch