talira

Simple, Pythonic remote execution and deployment over SSH

open sourceBSD-2-Clauseself-hostablefree

Fabric is a high-level Python library for running shell commands on remote servers over SSH and getting back useful Python objects with their output and exit codes. It builds on Invoke, for local subprocess execution and command-line tasks, and Paramiko, for the SSH protocol, adding connections, groups of hosts, file transfer, sudo and a fab command that runs tasks from a fabfile. Teams use it to script deployments and server administration in plain Python.

Problems it solves

  • run the same shell commands on a list of servers from a Python script
  • script my app's deployment over SSH in Python instead of bash
  • get the output and exit code of a remote command back as a Python object
  • upload and download files to servers over SSH from Python
  • run sudo commands on remote machines from a script
  • a lightweight alternative to Ansible for simple SSH automation in Python
  • define deploy and maintenance tasks in a file and run them from the command line

Features

  • run shell commands remotely over SSH and get Python result objects
  • connections and groups of hosts
  • file upload and download
  • sudo support
  • fab command-line tool that runs tasks from a fabfile
  • built on Invoke and Paramiko

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Fabric does.

  1. Ansible A radically simple IT automation system

Compare Fabric with the top 3