This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
fabric /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Jul 02 20:28:08 -0700 2009 | |
| |
AUTHORS | Fri Jul 17 20:51:39 -0700 2009 | |
| |
FAQ | ||
| |
INSTALL | Tue May 05 16:42:54 -0700 2009 | |
| |
LICENSE | Sat Apr 18 12:54:51 -0700 2009 | |
| |
MANIFEST | Tue Jul 21 08:46:45 -0700 2009 | |
| |
README | Sun Aug 09 16:30:35 -0700 2009 | |
| |
docs/ | ||
| |
fabfile.py | Sun Jul 12 10:32:53 -0700 2009 | |
| |
fabric/ | ||
| |
requirements.txt | Fri Jul 17 20:47:46 -0700 2009 | |
| |
setup.py | Mon May 25 06:36:27 -0700 2009 | |
| |
tests/ |
README
Fabric is a Python library and command-line tool designed to streamline
deploying applications or performing system administration tasks via the SSH
protocol. It provides tools for running arbitrary shell commands (either as a
normal login user, or via ``sudo``), uploading and downloading files, and so
forth.
Typical use involves defining a "fabfile" (a Python module) containing one or
more functions or tasks which may then be executed by the ``fab`` command-line
tool. For example, here's a small (but complete) ``fabfile.py`` containing a
single task::
from fabric.api import run
def host_type():
"""
Prints host type (via ``uname -s``) for a remote host.
"""
run('uname -s')
Executing this on an arbitrary server or list of servers is simple (below,
we're using an ssh-agent, and so there are no password prompts)::
$ 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.
Fabric provides extra functionality related to this mode of use, such as
prompting for user input, ensuring certain variables are present in order for
tasks to run, and specifying which host or hosts a specific task connects to
by default.
Fabric may also be used as a standalone library, so that other Python programs
needing a simple but powerful API on top of SSH or SCP may import and utilize
specific pieces of functionality.








