Registry / devops / fab-classic

fab-classic

JSON →
library1.21.0pypypi✓ verified 85d ago

fab-classic is a maintained fork of the original Fabric 1.x line, providing a simple, Pythonic tool for remote execution and deployment via SSH. The current version is 1.21.0, with quarterly releases and support for Python 3.5+.

pip install fab-classic
INSTALL
IMPORT
SIG · FAB-CLASSIC
F
fab-classic
devopspythonv1.21.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

run
from fabric.api import run
from fabric import run
Fabric 2/3 uses 'from fabric import Connection'; classic uses fabric.api.

Minimal remote command execution using fabric.api.

from fabric.api import run, env, cd env.host_string = 'example.com' env.user = 'user' with cd('/var/www'): run('ls -la') run('uname -a')
fab --version
Debug
Known issues
breakingPython 2.7 support dropped in 1.20.0
fix
Upgrade to Python 3.5+ or pin fab-classic<1.20.0.
affects: <1.20.0
gotchaParallel mode may hang on macOS Python 3.8+ without explicit fork context. Use env.parallel = True with caution.
fix
Set multiprocessing context to 'fork': import multiprocessing as mp; mp.set_start_method('fork') before using --parallel.
affects: 1.20.0+
deprecatedparamiko-ng is no longer supported by default; use upstream paramiko.
fix
Ensure paramiko (not paramiko-ng) is installed.
affects: >=1.21.0
gotchalocal() capture behavior changed in 1.19.0; failing commands with capture=False no longer raise SystemExit.
fix
Check return code explicitly if using capture=False.
affects: >=1.19.0
Errors
Common errors & fixes
ImportError: No module named fabric.api
Installed Fabric 2+ (fabric3) instead of fab-classic.
fix
Uninstall fabric/fabric3 and install fab-classic: pip uninstall fabric; pip install fab-classic.
paramiko.ssh_exception.SSHException: Error reading protocol banner
Network issue or server drops connection early.
fix
Increase timeout or retry: env.timeout = 30; env.connection_attempts = 3.
TypeError: _pty_size() got an unexpected keyword argument 'height'
Incompatible with Python 3.14 (struct buffer size change).
fix
Upgrade to fab-classic>=1.20.2.
Upgrade
Version history
1.21.0latest on PyPI · released Mar 30, 2026
Audit
Dependencies
paramikorequiredCore SSH transport (upstream, not paramiko-ng)
Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
fab-classic — pip install fab-classic · libregistry