$npx skillfedfor your agent

subprocrunner

A Python wrapper library for subprocess module.

With conditionsPyPI LibrariesReleased Apr 2024228.8K downloads / moMIT LicensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — subprocrunner-2.0.1-py3-none-any.whl
v2.0.1 · released 2024-04-06 · Python >=3.7 · 1 runtime deps: mbstrdecoder

Yes, if you frequently run external commands and want cleaner syntax than subprocess.Popen or subprocess.run. The low install friction, permissive license, and stable API make it a safe choice. The aging maintenance (860+ days since last release) is not a blocker for stable use cases, but verify compatibility with your Python version and consider whether you need active development support before adopting.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction install with a single runtime dependency (mbstrdecoder).
  • Maintenance status is aging—last release was in April 2024 and no updates in over 860 days—but the repository remains active and the package is marked Production/Stable.

License · maintenance · safety

MIT License (permissive) — MIT License (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2024-04-06 (860 days) · last repo commit 2025-11-24 · 24 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 228,762 downloads/mo, #9,144 on PyPI

Verify before relying

pip install subprocrunner

from subprocrunner import SubprocessRunner

runner = SubprocessRunner(["echo", "test"])
print(f"return code: {runner.run()}")
print(f"stdout: {runner.stdout}")
  • Whether the aging maintenance status (860+ days since last release) affects stability or compatibility with current Python versions.
  • Performance characteristics when running many commands or handling large output streams.
Same gist for agents: .md · .json

What it is and what it does

SubprocessRunner is a thin wrapper around Python's subprocess module that reduces boilerplate when executing external commands. It provides a simple object-oriented interface to run commands, automatically capture stdout and stderr, and access return codes without the ceremony of subprocess.Popen or subprocess.run. The package handles common patterns like retrying failed commands with exponential backoff, raising exceptions on non-zero exit codes, and dry-run mode for testing command sequences without actually executing them.

The library is useful when you need to shell out to external tools from Python code and want cleaner syntax than the standard library offers. It depends only on mbstrdecoder for string handling and supports Python 3.7 through 3.12. The package includes a utility class (Which) to check if a command exists on the system and locate its absolute path, and can optionally log activity via loguru if installed.

Use it for

  • Run shell commands from Python scripts and capture their output without writing subprocess boilerplate.
  • Implement retry logic for flaky external commands with configurable backoff and jitter.
  • Test command sequences in dry-run mode before actually executing them.
  • Build command-line tool wrappers that need to validate return codes and raise exceptions on failure.
  • Track execution history of all commands run during a session for debugging or auditing.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you frequently run external commands and want cleaner syntax than subprocess.Popen or subprocess.run.

The low install friction, permissive license, and stable API make it a safe choice. The aging maintenance (860+ days since last release) is not a blocker for stable use cases, but verify compatibility with your Python version and consider whether you need active development support before adopting.

Install

subprocrunner on PyPI

Before you install

Low friction install with a single runtime dependency (mbstrdecoder). Maintenance status is aging—last release was in April 2024 and no updates in over 860 days—but the repository remains active and the package is marked Production/Stable.

License in practice

MIT License (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install subprocrunner

from subprocrunner import SubprocessRunner

runner = SubprocessRunner(["echo", "test"])
print(f"return code: {runner.run()}")
print(f"stdout: {runner.stdout}")

Verify before relying

  • Whether the aging maintenance status (860+ days since last release) affects stability or compatibility with current Python versions.
  • Performance characteristics when running many commands or handling large output streams.

Package facts

LicenseMIT License permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
mbstrdecoder
MaintenanceAging 860 days since the last release
Last repo commit
First released
Downloads228,762 / month, #9,144 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: subprocrunner-2.0.1-py3-none-any.whl

Tags

Capabilities
subprocess wrapperrun external commands pythoncapture command outputsubprocess retry logiccommand execution helpershell command wrapperprocess return code handling
Topics
subprocess-wrappercommand-execution
PyPI keywords
librarysubprocess

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 › “run external commands python”

  • subprocrunnerWraps Python's subprocess module to simplify running external…
  • EasyProcessEasyProcess wraps Python's subprocess module to simplify running…
  • subprocess.runProvides a simplified interface to run shell commands and capture…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also EasyProcess · executor · runez · bash · runs · fancy-subprocess · delegator.py · subprocess-multitee · subprocess.run · shellescape