fab-classic is a simple, Pythonic tool for remote execution and deployment.
Project description
fab-classic is a Python (2.7 or 3.4+) library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.
fab-classic is forked from Fabric-1.14 and is intended to add only bug fixes and compatibility patches, for projects already using Fabric-1.x in some way. It includes python3 compatibility patches from Fabric3.
Upstream Fabric is now on version 2.x. Fabric-2.x is python3 compatible, and comes after Fabric3. Fabric-2.x has significant compatibility-breaking changes, in order to fix some long-standing limitations.
You probably should not use this for new projects, in that case you should consider Fabric-2.x - see http://www.fabfile.org/
fab-classic is on PyPI, so you can pip install fab-classic
Changelog: https://github.com/ploxiln/fab-classic/releases
API Documentation: http://docs.fabfile.org/en/1.14/
For a quick command reference, run fab --help
fab-classic 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')
If you save the above as fabfile.py (the default module that fab loads), you can run the tasks defined in it 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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for fab_classic-1.15.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d04af9a495d163ddc99b0b728e861f762f1a696d9cfacc5a75da0116a4f5e8c5 |
|
MD5 | 8345ffe36df206aa0326ba2d8daacd83 |
|
BLAKE2b-256 | 4a26cc1dbf28cf4bdbe27d61371ae6181470a72d33ed6f4fe9946df92a32bffa |
Hashes for fab_classic-1.15.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b386582ea916f3a9895a0e66d9ca74bb8031213e2c26d9048d0cc8aa7021a6fa |
|
MD5 | 1ab15a494da78753f918d47060bfdbcd |
|
BLAKE2b-256 | 607140dcec88af1f70a05551f376c1e0a4e4cfd1d44aa984f74b16f2bca1f9e2 |