fabric2
High level SSH command execution
Decision gist · record as of 2026-08-14
Yes. Fabric is a mature, actively maintained library with no known vulnerabilities, low install friction, and a permissive license. It is the standard choice for Python-based SSH automation and remote command execution. Install it if you need to automate tasks across remote systems from Python code.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires SSH access to a remote host; the remote system must have a shell available for command execution.
- Low install friction with a pure-Python wheel distribution.
- The package is actively maintained with a recent commit history and carries four straightforward runtime dependencies (invoke, paramiko, decorator, deprecated), all of which are well-established libraries.
License · maintenance · safety
BSD (permissive) — Licensed under BSD (permissive), so you can use Fabric in commercial and proprietary projects without restriction, though you must include the license notice in distributions.
last release 2026-04-06 (130 days) · last repo commit 2026-04-10 · 15,487 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 98,314 downloads/mo, #13,094 on PyPI
Alternatives
Verify before relying
pip install fabric2
from fabric import Connection
conn = Connection('user@example.com')
result = conn.run('ls -la')
print(result.stdout)- Whether Python 2.7 support mentioned in the description excerpt is still active in version 3.2.3 or has been dropped.
- Specific performance characteristics or limits for concurrent remote command execution.
What it is and what it does
Fabric is a Python library for executing shell commands on remote systems over SSH. It wraps Invoke (for local subprocess and CLI features) and Paramiko (for SSH protocol) into a unified API that lets you write Python code to automate system administration, deployment, and orchestration tasks across multiple servers.
You define tasks in Python, connect to remote hosts via SSH, run commands, and capture their output as Python objects. This makes it natural to script complex multi-host operations, error handling, and conditional logic in Python rather than shell scripts. The library is actively maintained, has no known vulnerabilities, and supports modern Python versions across Linux, macOS, and Windows.
Use it for
- Deploy applications to production servers by running remote build, test, and install commands over SSH.
- Automate system administration tasks like user provisioning, log rotation, or service restarts across a fleet of servers.
- Orchestrate multi-step workflows that require conditional logic and error handling across multiple remote hosts.
- Run ad-hoc commands on remote systems and capture output for monitoring, auditing, or reporting.
- Build custom deployment pipelines that integrate with your Python codebase and CI/CD workflows.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Fabric is a mature, actively maintained library with no known vulnerabilities, low install friction, and a permissive license. It is the standard choice for Python-based SSH automation and remote command execution. Install it if you need to automate tasks across remote systems from Python code.
Install
fabric2 on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. The package is actively maintained with a recent commit history and carries four straightforward runtime dependencies (invoke, paramiko, decorator, deprecated), all of which are well-established libraries.
Requires SSH access to a remote host; the remote system must have a shell available for command execution.
License in practice
Licensed under BSD (permissive), so you can use Fabric in commercial and proprietary projects without restriction, though you must include the license notice in distributions.
Quickstart
pip install fabric2
from fabric import Connection
conn = Connection('user@example.com')
result = conn.run('ls -la')
print(result.stdout)
Verify before relying
- Whether Python 2.7 support mentioned in the description excerpt is still active in version 3.2.3 or has been dropped.
- Specific performance characteristics or limits for concurrent remote command execution.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesinvokeparamikodecoratordeprecated |
| Maintenance | Actively maintained 130 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 98,314 / month, #13,094 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: BSD LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: Software Development :: Build ToolsTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: ClusteringTopic :: System :: Software DistributionTopic :: System :: Systems Administration |
Evidence: fabric2-3.2.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ssh task runner”
- fabric2Fabric executes shell commands remotely over SSH and returns Python…
- executorWraps Python's subprocess module to simplify executing local…
- poethepoetA task runner that reads task definitions from pyproject.toml or…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also fabric · paramiko · invoke · Fabric3 · patchwork · aws · fab-classic · jumpssh · spur · proxmoxer