runs
🏃 Run a block of text as a subprocess 🏃
Decision gist · record as of 2026-08-14
Yes, if you frequently run multiple subprocess commands in sequence and want cleaner syntax and UTF-8 defaults. The low install friction and permissive license make it a low-risk add. However, the aging maintenance status (192 days since last release) means it is stable but not actively developed—suitable for stable use cases, not for packages expecting ongoing feature work or rapid bug fixes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Note that shell features like pipes, redirection, and environment variable expansion do not work—only direct command execution.
- Low install friction with a single pure-Python dependency (xmod).
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, requiring only license and copyright notice retention.
last release 2026-02-03 (192 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,810,269 downloads/mo, #2,223 on PyPI
Alternatives
Verify before relying
import runs
runs('''
echo "hello"
ls -la
echo "done"
''')- Whether xmod dependency is actively maintained or has its own aging/stability concerns.
- Real-world performance characteristics when running hundreds or thousands of commands in sequence.
What it is and what it does
runs is a wrapper around Python's subprocess module that lets you execute multiple commands in a single call by passing a block of text. Instead of calling subprocess.run() once per command, you write your commands as a multi-line string (or list), and runs splits them, handles comments and line continuations, and returns results for each command. It provides drop-in replacements for subprocess.call(), check_call(), check_output(), and run(), all with UTF-8 encoding by default instead of bytes.
The main problem it solves is the friction of running sequential subprocess commands in Python: normally you either loop and call subprocess repeatedly, or manually split and parse command strings. runs handles the parsing, encoding defaults, and optional features like echo logging and exception handling in one place. It does not support shell features like pipes, redirection, or environment variable expansion—those still require shell=True and manual handling.
Use it for
- Run a sequence of shell commands from a Python script without looping subprocess calls.
- Execute build or deployment steps (compilation, copying files, cleanup) as a text block.
- Test harnesses that need to run multiple CLI tools and collect their output as strings.
- Batch system administration tasks (disk checks, log rotation, service restarts) from Python.
- Development scripts that chain multiple command-line tools and need UTF-8 output by default.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you frequently run multiple subprocess commands in sequence and want cleaner syntax and UTF-8 defaults.
The low install friction and permissive license make it a low-risk add. However, the aging maintenance status (192 days since last release) means it is stable but not actively developed—suitable for stable use cases, not for packages expecting ongoing feature work or rapid bug fixes.
Install
runs on PyPI
Before you install
Low install friction with a single pure-Python dependency (xmod). Maintenance status is aging—last release was 192 days ago—so expect no active development, though the package is stable for its current scope.
Requires Python 3.10 or later. Note that shell features like pipes, redirection, and environment variable expansion do not work—only direct command execution.
License in practice
MIT license permits commercial and private use with minimal restrictions, requiring only license and copyright notice retention.
Quickstart
import runs
runs('''
echo "hello"
ls -la
echo "done"
''')
Verify before relying
- Whether xmod dependency is actively maintained or has its own aging/stability concerns.
- Real-world performance characteristics when running hundreds or thousands of commands in sequence.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagexmod |
| Maintenance | Aging 192 days since the last release |
| First released | |
| Downloads | 4,810,269 / month, #2,223 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: runs-1.3.0-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 › “run multiple subprocess commands”
- runsRuns multiple subprocess commands from a text block or list, with…
- delegator.pyDelegator.py wraps subprocess execution with a simple API for running…
- EasyProcessEasyProcess wraps Python's subprocess module to simplify running…
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 fancy-subprocess · subprocess.run · subprocrunner · sarge · subprocess-tee · subprocess-multitee · sh · executor · EasyProcess · pytest-subprocess