--- id: fabric version: "3.2.3" license: BSD license_treatment: permissive maintenance: active --- # fabric — High level SSH command execution License: permissive · Maintenance: active · Downloads: 13.7M/mo ## What it is and what it does Fabric is a Python library for executing shell commands on remote servers over SSH. It wraps Invoke (for local command execution and CLI features) and Paramiko (for SSH protocol handling), providing a unified Python API to run commands remotely and capture their output as structured objects. It's designed for system administrators and developers who need to automate server administration, deployments, or multi-host orchestration tasks. The library sits at the intersection of local task automation and remote execution—you write Python code that reads like shell scripts but runs on remote machines, with results flowing back into your Python program. It handles SSH connection management, command execution, and result parsing, reducing boilerplate for common deployment and administration patterns. Use it for: - Automate multi-server deployments by running shell commands on remote hosts and capturing output in Python - Build system administration scripts that execute tasks across clusters of machines over SSH - Orchestrate application rollouts, configuration management, or maintenance routines on production servers - Execute ad-hoc remote commands and collect results programmatically instead of writing shell scripts - Integrate remote command execution into Python-based CI/CD pipelines or infrastructure-as-code workflows ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Fabric executes shell commands remotely over SSH and returns results as Python objects, building on Invoke for command execution and Paramiko for SSH protocol support. Yes. Fabric is a mature, actively maintained library (production-stable, 15487 stars, recent commits) with low install friction and no known vulnerabilities. It solves a real problem—bridging Python and remote SSH execution—and is well-suited for deployment automation, system administration, and infrastructure tasks. The permissive BSD license poses no obstacle. Install it if you need programmatic remote command execution. ## Install pip install fabric uv add fabric poetry add fabric ## Installing fabric Before you install: Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release 130 days ago and ongoing commits; the repository is well-established with 15487 stars. License in practice: BSD license is permissive, allowing commercial and private use with minimal restrictions—suitable for most deployment and automation workflows. Quickstart: pip install fabric from fabric import Connection conn = Connection('host') result = conn.run('ls -la') print(result.stdout) Verify before relying: - Whether version 3.2.3 maintains backward compatibility with code written for earlier Fabric releases - Specific performance characteristics or scalability limits for large-scale multi-host orchestration ## Package facts - License: BSD (permissive) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 13.7M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags remote command execution ssh, ssh automation python, execute shell commands remotely, fabric deployment automation, remote server administration, python ssh orchestration, paramiko high level wrapper, ssh-automation, deployment, systems-administration [View on SkillFed](https://skillfed.io/packages/fabric) · [View on PyPI](https://pypi.org/project/fabric/)