Prerun is a Python utility to run commands before another process starts, commonly used for environment setup, health checks, or dependency injection. Current version 1.1.3, released 2024, with occasional updates.
pip install prerunVerified import paths — ran on the pinned version, not inferred.
Basic usage: prerun.run() executes a command sequentially before continuing.
Use threading or subprocess.Popen for async execution.
Replace with subprocess.Popen(command, cwd=path) if you need a working directory.
Upgrade: pip install --upgrade prerun. Ensure you have v1.0.0+.
Use a full path or check that the command exists: prerun.run(['/usr/bin/echo', 'test']).
No dependency data recorded yet.