Skip to main content

To find out what’s new in this version of Fabric, please see the changelog.

You can also install the in-development version using pip, with pip install fabric==dev.


https://secure.travis-ci.org/fabric/fabric.png?branch=master

Fabric is a Python (2.5 or higher) library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.

It provides a basic suite of operations for executing local or remote shell commands (normally or via sudo) and uploading/downloading files, as well as auxiliary functionality such as prompting the running user for input, or aborting execution.

Typical use involves creating a Python module containing one or more functions, then executing them via the fab command-line tool. Below is a small but complete “fabfile” containing a single task:

from fabric.api import run

def host_type():
    run('uname -s')

Once a task is defined, it may be run on one or more servers, like so:

$ fab -H localhost,linuxbox host_type
[localhost] run: uname -s
[localhost] out: Darwin
[linuxbox] run: uname -s
[linuxbox] out: Linux

Done.
Disconnecting from localhost... done.
Disconnecting from linuxbox... done.

In addition to use via the fab tool, Fabric’s components may be imported into other Python code, providing a Pythonic interface to the SSH protocol suite at a higher level than that provided by e.g. the Paramiko library (which Fabric itself uses.)


For more information, please see the Fabric website or execute fab --help.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Fabric-1.8.2.tar.gz (251.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Fabric-1.8.2-py2-none-any.whl (91.7 kB view details)

Uploaded Python 2

File details

Details for the file Fabric-1.8.2.tar.gz.

File metadata

  • Download URL: Fabric-1.8.2.tar.gz
  • Upload date:
  • Size: 251.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Fabric-1.8.2.tar.gz
Algorithm Hash digest
SHA256 ae810aee9114c5e7ef3ce7a0f6fb6293d1dfcfcfa846aa4e007f3ae42beaf62b
MD5 8666ee90d093cdb393f1b168cc0f5672
BLAKE2b-256 ab824cd6cbb2001431aece679c5c496bb49d2094f10e9cc98b9f94fa7261a935

See more details on using hashes here.

File details

Details for the file Fabric-1.8.2-py2-none-any.whl.

File metadata

File hashes

Hashes for Fabric-1.8.2-py2-none-any.whl
Algorithm Hash digest
SHA256 fa2105523756e5d8b294490812792a59b9837ca6039cf1072f17661940251a48
MD5 45bea574cd0548d85ebf81356777fbeb
BLAKE2b-256 a22a200981cca928656b84a1d4aee39bcfbd22170fe2baabecb76fc2aaf61d72

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page