plumbum
Plumbum: shell combinators library
Decision gist · record as of 2026-08-14
Yes. Plumbum is actively maintained, has no known vulnerabilities, installs with minimal friction, and carries a permissive MIT license. It is well-suited for anyone writing system administration scripts, build automation, or CLI tools who wants to avoid shell scripting or subprocess boilerplate. The library's maturity (first release 2012, currently 2.0.2) and broad Python version support (3.9–3.15) make it a reliable choice.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Remote SSH execution requires an OpenSSH-compatible client, PuTTY (Windows), or Paramiko installed separately.
- Low install friction with a single lightweight runtime dependency (typing-extensions).
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.
last release 2026-07-22 (23 days) · last repo commit 2026-08-13 · 3,053 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,547,051 downloads/mo, #1,890 on PyPI
Alternatives
Verify before relying
from plumbum import local
from plumbum.cmd import ls, grep
# Run a single command
local.cmd.ls()
# Pipe commands together
chain = ls["-a"] | grep["-v", r"\.py"]
print(chain())- Whether Paramiko is automatically installed or must be added separately for SSH support.
- Performance characteristics when chaining many commands or executing large batches of remote operations.
- Compatibility with non-POSIX shells on Windows beyond the documented PuTTY support.
What it is and what it does
Plumbum is a Python library that brings shell script syntax and semantics into a real programming language. It lets you compose and execute shell commands using Python operators—piping with `|`, redirection with `<` and `>`, and nesting with bracket notation—while staying cross-platform and Pythonic. The library handles both local command execution and remote execution over SSH, manages working directories and environment variables programmatically, and includes a decorator-based CLI framework for building command-line applications.
Instead of writing separate shell scripts or laboriously constructing subprocess calls, you write Python code that reads like shell commands. It supports foreground and background execution, command composition, and file-system paths as first-class objects. The library also provides color and style utilities for terminal output.
Use it for
- Build automation and task runners: chain compiler, linker, and build tool invocations with shell-like syntax.
- System administration scripts: execute local and remote commands over SSH with a unified Python API.
- CLI tool development: use the built-in Application framework to define flags, switches, and subcommands.
- Data pipeline orchestration: compose file operations, text processing, and command execution in a single script.
- Cross-platform scripting: write once, run on Windows, Linux, and macOS without rewriting shell logic.
- Log analysis and filtering: pipe commands like grep, awk, and sed equivalents directly in Python.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Plumbum is actively maintained, has no known vulnerabilities, installs with minimal friction, and carries a permissive MIT license. It is well-suited for anyone writing system administration scripts, build automation, or CLI tools who wants to avoid shell scripting or subprocess boilerplate. The library's maturity (first release 2012, currently 2.0.2) and broad Python version support (3.9–3.15) make it a reliable choice.
Install
plumbum on PyPI
Before you install
Low install friction with a single lightweight runtime dependency (typing-extensions). Active maintenance with a recent release (23 days old) and steady repository activity.
Requires Python 3.9 or later. Remote SSH execution requires an OpenSSH-compatible client, PuTTY (Windows), or Paramiko installed separately.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.
Quickstart
from plumbum import local
from plumbum.cmd import ls, grep
# Run a single command
local.cmd.ls()
# Pipe commands together
chain = ls["-a"] | grep["-v", r"\.py"]
print(chain())
Verify before relying
- Whether Paramiko is automatically installed or must be added separately for SSH support.
- Performance characteristics when chaining many commands or executing large batches of remote operations.
- Compatibility with non-POSIX shells on Windows beyond the documented PuTTY support.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetyping-extensions |
| Maintenance | Actively maintained 23 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,547,051 / month, #1,890 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/StableOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.9Topic :: Software Development :: Build ToolsTopic :: System :: Systems AdministrationTyping :: Typed |
Evidence: plumbum-2.0.2-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 › “command chaining library”
- plumbumPlumbum lets you write shell-script-like programs in Python with…
- delegator.pyDelegator.py wraps subprocess execution with a simple API for running…
- click-composeProvides composable callback utilities for Click CLI applications,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also bash · sarge · delegator.py · pypyp · pipe · subprocess.run · paramiko-expect · fabric2 · fabric · jumpssh