mirakuru
Process executor (not only) for tests.
Decision gist · record as of 2026-08-14
Yes. Mirakuru is actively maintained, has no security vulnerabilities, low install friction, and solves a genuine testing problem—eliminating flaky tests caused by timing races with external services. It is well-suited for integration and functional test suites that depend on external processes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; the external process being orchestrated must be installed and on PATH.
- Low friction: pure Python wheel with a single runtime dependency (psutil).
- Active maintenance with recent release (2026-02-11) and no known vulnerabilities.
License · maintenance · safety
LGPL-3.0-or-later (copyleft) — LGPL-3.0-or-later (copyleft): you may use this in proprietary code, but modifications to mirakuru itself must be shared under the same license.
last release 2026-02-11 (184 days) · last repo commit 2026-08-13 · 90 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,635,138 downloads/mo, #2,550 on PyPI
Alternatives
Verify before relying
from mirakuru import TCPExecutor
redis = TCPExecutor('redis-server', host='localhost', port=6379)
redis.start()
# Redis is now ready
redis.stop()- Whether psutil is always available on all supported platforms or if there are OS-specific limitations.
- Timeout behavior and configurability when a process fails to reach readiness state.
What it is and what it does
Mirakuru is a process orchestration library for functional and integration tests. It solves the problem of coordinating startup of external services—databases, message queues, APIs, web servers—by starting them and blocking until they signal readiness (via TCP connection, HTTP response, output banner, Unix socket, or .pid file) before your test code runs. This eliminates race conditions where tests try to connect to a service that hasn't finished initializing.
The library provides seven executor classes for different readiness signals: SimpleExecutor (no wait), OutputExecutor (watches stdout for a marker), TCPExecutor (tries TCP connection), HTTPExecutor (checks HTTP status), UnixSocketExecutor (Unix socket readiness), PidExecutor (waits for .pid file), and a base Executor class. Each executor wraps a command string or list, starts the process, polls for readiness, and provides start() and stop() methods. Executors also work as context managers for cleaner test setup/teardown.
Use it for
- Start a PostgreSQL container in a test and wait until it accepts connections before running integration tests.
- Launch an HTTP API server and verify it responds to requests before running end-to-end tests.
- Orchestrate multiple services (Redis, Elasticsearch, a custom daemon) in a single test fixture with guaranteed startup order.
- Monitor a process's stdout for a 'ready' message and proceed only when that marker appears.
- Manage test cleanup by stopping all spawned processes in the correct order when tests complete.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Mirakuru is actively maintained, has no security vulnerabilities, low install friction, and solves a genuine testing problem—eliminating flaky tests caused by timing races with external services. It is well-suited for integration and functional test suites that depend on external processes.
Install
mirakuru on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency (psutil). Active maintenance with recent release (2026-02-11) and no known vulnerabilities.
Requires Python 3.10 or later; the external process being orchestrated must be installed and on PATH.
License in practice
LGPL-3.0-or-later (copyleft): you may use this in proprietary code, but modifications to mirakuru itself must be shared under the same license.
Quickstart
from mirakuru import TCPExecutor
redis = TCPExecutor('redis-server', host='localhost', port=6379)
redis.start()
# Redis is now ready
redis.stop()
Verify before relying
- Whether psutil is always available on all supported platforms or if there are OS-specific limitations.
- Timeout behavior and configurability when a process fails to reach readiness state.
Package facts
| License | LGPL-3.0-or-later copyleft |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepsutil |
| Maintenance | Actively maintained 184 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,635,138 / month, #2,550 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/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming 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.14Topic :: Software Development :: Libraries :: Python Modules |
Evidence: mirakuru-3.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 › “process orchestration testing”
- mirakuruMirakuru starts external processes (databases, services, APIs) and…
- colcon-corecolcon-core is a command-line tool that orchestrates building,…
- simpervisorProvides async methods to start, manage, and terminate child…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also simpervisor · loky · kantoku · taskiq · honcho · prefect-sqlalchemy · prefect-redis · spotinst-agent-2 · taskiq-redis · mozrunner